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"

From A Tale in the Desert
Jump to navigationJump to search
m
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
__NOTOC__
 
<div class="iteminfo" style="align:right; float:right; margin: 5px 0px 5px 5px; border-width:1px; border-style:solid;">
 
<div class="iteminfo" style="align:right; float:right; margin: 5px 0px 5px 5px; border-width:1px; border-style:solid;">
 
{|
 
{|
Line 7: Line 8:
 
|Weight || [[weight::{{{weight}}}]]
 
|Weight || [[weight::{{{weight}}}]]
 
|}
 
|}
</div>
+
</div>[[description::{{{description}}}| ]]<noinclude>
 
 
[[description::{{{description}}}| ]]
 
 
 
<noinclude>
 
 
==Usage==
 
==Usage==
 
<code>
 
<code>
Line 19: Line 16:
 
The description is stored as semantic markup, and displayed on listing pages that include the item.
 
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:
+
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>
 
  <nowiki>
   Boards are made from [[requires::Wood]] on a [[requires::Wood Plane]] or a [[requires::Carpentry Shop]].
+
   Boards are made from [[requires::Wood]] on a [[requires::Wood Plane]]
 +
or a [[requires::Carpentry Shop]].
 
   This requires the [[requires::Carpentry]] skill.
 
   This requires the [[requires::Carpentry]] skill.
 
  </nowiki>
 
  </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.
 
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

PinkBox.png
Bulk {{{bulk}}}
Weight {{{weight}}}

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.