Difference between revisions of "ItemInfobox"
(Updated template data) |
(Fixed maximum height of images to 400px) |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{InfoBox|title={{{title|}}}|infoBoxTable= | <includeonly>{{InfoBox|title={{{title|}}}|infoBoxTable= | ||
− | {{#if: {{{image|}}}| | + | {{#if: {{{image|}}}{{{flavourText|}}}| |
<tr> | <tr> | ||
− | <td class="infobox-image" style="padding: 10px;" colspan="2">[[File:{{{image}}}|frameless|center|375px]] | + | <td class="infobox-image" style="padding: 10px;text-align: center;" colspan="2">{{#if: {{{image|}}}|[[File:{{{image}}}|frameless|center|375px|x400px]]}}{{#if: {{{flavourText|}}}|<i>{{{flavourText}}}</i>}}</td> |
− | |||
− | |||
− | |||
− | |||
− | |||
</tr> | </tr> | ||
}} | }} | ||
Line 28: | Line 23: | ||
</tr> | </tr> | ||
}} | }} | ||
− | {{#if: {{{ | + | {{#if: {{{type|}}}| |
<tr> | <tr> | ||
− | <td class="infoboxtd1strow" style="padding: 10px;"><b> | + | <td class="infoboxtd1strow" style="padding: 10px;"><b>Item Type</b>:</td> |
− | <td>{{{ | + | <td>{{{type}}}</td> |
</tr> | </tr> | ||
}} | }} | ||
− | {{#if: {{{ | + | {{#if: {{{rarity|}}}| |
<tr> | <tr> | ||
− | <td class="infoboxtd1strow" style="padding: 10px;"><b>Item | + | <td class="infoboxtd1strow" style="padding: 10px;"><b>Item Rarity</b>:</td> |
− | <td>{{{ | + | <td>{{{rarity}}}</td> |
</tr> | </tr> | ||
}} | }} | ||
Line 43: | Line 38: | ||
<tr> | <tr> | ||
<td class="infoboxtd1strow" style="padding: 10px;"><b>Current Owner</b>:</td> | <td class="infoboxtd1strow" style="padding: 10px;"><b>Current Owner</b>:</td> | ||
− | <td>{{{owner}}}</td> | + | <td>[[{{{owner}}}]]</td> |
</tr> | </tr> | ||
}} | }} | ||
Line 49: | Line 44: | ||
<tr> | <tr> | ||
<td class="infoboxtd1strow" style="padding: 10px;"><b>Created by</b>:</td> | <td class="infoboxtd1strow" style="padding: 10px;"><b>Created by</b>:</td> | ||
− | <td>{{{createdBy}}}</td> | + | <td>[[{{{createdBy}}}]]</td> |
</tr> | </tr> | ||
}} | }} | ||
Line 55: | Line 50: | ||
<tr> | <tr> | ||
<td class="infoboxtd1strow" style="padding: 10px;"><b>Location Created</b>:</td> | <td class="infoboxtd1strow" style="padding: 10px;"><b>Location Created</b>:</td> | ||
− | <td>{{{createdAt}}}</td> | + | <td>[[{{{createdAt}}}]]</td> |
</tr> | </tr> | ||
}} | }} | ||
Line 61: | Line 56: | ||
<tr> | <tr> | ||
<td class="infoboxtd1strow" style="padding: 10px;"><b>Location Found</b>:</td> | <td class="infoboxtd1strow" style="padding: 10px;"><b>Location Found</b>:</td> | ||
− | <td>{{{foundAt}}}</td> | + | <td>[[{{{foundAt}}}]]</td> |
</tr> | </tr> | ||
}} | }} | ||
Line 70: | Line 65: | ||
</tr> | </tr> | ||
}} | }} | ||
− | + | }}</includeonly><noinclude> | |
− | |||
<noinclude> | <noinclude> | ||
+ | {{ItemInfobox|title=Test item|image=byAllah.jpg|flavourText=This item is the most powerful item in the land|magicalItem=No|attunement=No|type=Weapon|owner=Rydol Do'viir|foundAt=Tala Rane|requirements=Some bullshit requirement|createdAt=Tala Rane|createdBy=Rydol Do'viir|extraContent=Test extra content|customFieldContent=Extra field content|customFieldName=A custom field}} | ||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 153: | Line 148: | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
− | "customFieldName": {}, | + | "customFieldName": { |
− | "customFieldContent": {}, | + | "label": "Custom Field Name", |
− | "extraContent": {} | + | "description": "A custom field for you to write your own things", |
+ | "type": "string" | ||
+ | }, | ||
+ | "customFieldContent": { | ||
+ | "label": "Custom Field Content", | ||
+ | "description": "The content to be placed in the custom field", | ||
+ | "type": "content" | ||
+ | }, | ||
+ | "extraContent": { | ||
+ | "label": "Extra Content", | ||
+ | "description": "Any additional content you need", | ||
+ | "type": "unbalanced-wikitext" | ||
+ | }, | ||
+ | "rarity": { | ||
+ | "label": "Item Rarity", | ||
+ | "description": "How rare the item is. Common, Uncommon, Rare, Legendary, Artifact, Crafted", | ||
+ | "example": "Common", | ||
+ | "type": "string", | ||
+ | "default": "Common", | ||
+ | "autovalue": "Common", | ||
+ | "required": true | ||
+ | } | ||
} | } | ||
} | } | ||
− | </templatedata></noinclude> | + | </templatedata> |
+ | </noinclude> |
Latest revision as of 16:55, 30 August 2021
Test item | |
---|---|
This item is the most powerful item in the land | |
Magical?: | No |
Requires Attunement?: | No |
Usage Requirements: | Some bullshit requirement |
Item Type: | Weapon |
Current Owner: | Rydol Do'viir |
Created by: | Rydol Do'viir |
Location Created: | Tala Rane |
Location Found: | Tala Rane |
A custom field: | Extra field content |
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
Name | title | The name of the item
| String | required |
Image | image | A picture of the item | File | suggested |
Flavour Text | flavourText | A short line about the item, could be a notable quote about the item or just a quick description
| String | suggested |
Magical? | magicalItem | If the item is magical or not
| Boolean | required |
Requires Attunement? | attunement | If the item requires attunement
| Boolean | required |
Usage requirements | requirements | Any specific requirements to use the item
| String | optional |
Item Type | type | The type of item
| String | required |
Current Owner | owner | Who currently has the item in their possession
| Page | suggested |
Created by | createdBy | The character/faction that created the item
| Page | optional |
Created At | createdAt | When the item was created
| String | optional |
Location Found | foundAt | The location where the item was found
| Page | suggested |
Custom Field Name | customFieldName | A custom field for you to write your own things | String | optional |
Custom Field Content | customFieldContent | The content to be placed in the custom field | Content | optional |
Extra Content | extraContent | Any additional content you need | Unbalanced wikitext | optional |
Item Rarity | rarity | How rare the item is. Common, Uncommon, Rare, Legendary, Artifact, Crafted
| String | required |