The Wiki for Tale 4 is in read-only mode and is available for archival and reference purposes only. Please visit the current Tale 11 Wiki in the meantime.
If you have any issues with this Wiki, please post in #wiki-editing on Discord or contact Brad in-game.
Difference between revisions of "Template:ItemInfo"
Khatzepsut (talk | contribs) |
m |
||
(21 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
− | <div class="iteminfo"> | + | __NOTOC__ |
+ | <div class="iteminfo" style="align:right; float:right; margin: 5px 0px 5px 5px; border-width:1px; border-style:solid;"> | ||
{| | {| | ||
− | | | + | ! colspan="2"|[[Image:{{{image|PinkBox.png}}}]] |
|- | |- | ||
− | |Weight || {{{weight}}} | + | |Bulk || [[bulk::{{{bulk}}}]] |
+ | |- | ||
+ | |Weight || [[weight::{{{weight}}}]] | ||
|} | |} | ||
− | </div> | + | </div>[[description::{{{description}}}| ]]<noinclude> |
− | |||
− | |||
− | <noinclude> | ||
==Usage== | ==Usage== | ||
<code> | <code> | ||
− | <nowiki>{{Template:ItemInfo|weight=1|bulk=1}}</nowiki> | + | <nowiki>{{Template:ItemInfo|weight=1|bulk=1|image=PinkBox.png|description=A pink box}}</nowiki> |
</code> | </code> | ||
+ | |||
+ | The description is stored as semantic markup, and displayed on listing pages that include the item. | ||
+ | |||
+ | In order to keep the automatically generated lists on item and skill/technology pages up-to-date, annotate the first usage of each item, skill or technology with 'requires' as appropriate. For example: <br> <br> <br> <br> <br> | ||
+ | |||
+ | <nowiki> | ||
+ | Boards are made from [[requires::Wood]] on a [[requires::Wood Plane]] | ||
+ | or a [[requires::Carpentry Shop]]. | ||
+ | This requires the [[requires::Carpentry]] skill. | ||
+ | </nowiki> | ||
+ | |||
+ | To have an auto-generated list of anything that requires this item added to the bottom of the item page, include the <nowiki>{{RequiredBy}}</nowiki> template. To have an auto-generated list of anything that produces this item, include the <nowiki>{{ProducedBy}}</nowiki> template. | ||
+ | [[Category: Template]] {{DEFAULTSORT:ItemInfo}} | ||
</noinclude> | </noinclude> |
Latest revision as of 10:40, 6 March 2009
Usage
{{Template:ItemInfo|weight=1|bulk=1|image=PinkBox.png|description=A pink box}}
The description is stored as semantic markup, and displayed on listing pages that include the item.
In order to keep the automatically generated lists on item and skill/technology pages up-to-date, annotate the first usage of each item, skill or technology with 'requires' as appropriate. For example:
Boards are made from [[requires::Wood]] on a [[requires::Wood Plane]] or a [[requires::Carpentry Shop]]. This requires the [[requires::Carpentry]] skill.
To have an auto-generated list of anything that requires this item added to the bottom of the item page, include the {{RequiredBy}} template. To have an auto-generated list of anything that produces this item, include the {{ProducedBy}} template.