Difference between revisions of "ItemInfobox"
(Added infobox for items) |
(Fixed maximum height of images to 400px) |
||
(12 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>{{{ | + | <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> | ||
+ | { | ||
+ | "params": { | ||
+ | "title": { | ||
+ | "label": "Name", | ||
+ | "description": "The name of the item", | ||
+ | "example": "The Outer Blade", | ||
+ | "type": "string", | ||
+ | "required": true | ||
+ | }, | ||
+ | "image": { | ||
+ | "label": "Image", | ||
+ | "description": "A picture of the item", | ||
+ | "type": "wiki-file-name", | ||
+ | "suggested": true | ||
+ | }, | ||
+ | "flavourText": { | ||
+ | "label": "Flavour Text", | ||
+ | "description": "A short line about the item, could be a notable quote about the item or just a quick description", | ||
+ | "example": "Someday, someone will best me. But it won’t be today, and it won’t be you", | ||
+ | "type": "string", | ||
+ | "suggested": true | ||
+ | }, | ||
+ | "magicalItem": { | ||
+ | "label": "Magical?", | ||
+ | "description": "If the item is magical or not", | ||
+ | "type": "boolean", | ||
+ | "default": "No", | ||
+ | "autovalue": "No", | ||
+ | "required": true | ||
+ | }, | ||
+ | "attunement": { | ||
+ | "label": "Requires Attunement?", | ||
+ | "description": "If the item requires attunement", | ||
+ | "example": "Yes", | ||
+ | "type": "boolean", | ||
+ | "default": "No", | ||
+ | "autovalue": "No", | ||
+ | "required": true | ||
+ | }, | ||
+ | "requirements": { | ||
+ | "label": "Usage requirements", | ||
+ | "description": "Any specific requirements to use the item", | ||
+ | "example": "Requires attunment by a lawful evil character", | ||
+ | "type": "string", | ||
+ | "autovalue": "" | ||
+ | }, | ||
+ | "type": { | ||
+ | "label": "Item Type", | ||
+ | "description": "The type of item", | ||
+ | "example": "Weapon, Artifact. We can’t limit this to the usual choices, because I give people things like hip-flasks and shit", | ||
+ | "type": "string", | ||
+ | "required": true | ||
+ | }, | ||
+ | "owner": { | ||
+ | "label": "Current Owner", | ||
+ | "description": "Who currently has the item in their possession ", | ||
+ | "example": "Rydol", | ||
+ | "type": "wiki-page-name", | ||
+ | "suggested": true | ||
+ | }, | ||
+ | "createdBy": { | ||
+ | "label": "Created by", | ||
+ | "description": "The character/faction that created the item", | ||
+ | "example": "Templars", | ||
+ | "type": "wiki-page-name" | ||
+ | }, | ||
+ | "createdAt": { | ||
+ | "label": "Created At", | ||
+ | "description": "When the item was created", | ||
+ | "example": "4-2490", | ||
+ | "type": "string" | ||
+ | }, | ||
+ | "foundAt": { | ||
+ | "label": "Location Found", | ||
+ | "description": "The location where the item was found", | ||
+ | "example": "Tala Rane", | ||
+ | "type": "wiki-page-name", | ||
+ | "suggested": true | ||
+ | }, | ||
+ | "customFieldName": { | ||
+ | "label": "Custom Field Name", | ||
+ | "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> | </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 |