The Wiki for Tale 5 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:KasTest"
m (Still testing) |
|||
Line 1: | Line 1: | ||
− | + | __NOTOC__ | |
+ | <div class="buildinginfo" style="align:right; float:right; margin: 5px 0px 5px 5px; border-width:1px; border-style:solid;"> | ||
+ | {| | ||
+ | ! colspan="2"|[[Image:{{{image|PinkBox.png}}}]] | ||
|- | |- | ||
− | | | + | |Size || {{#ifexist: {{{size}}} | a [[size::{{{size}}}]] | N/A }} |
− | |||
|- | |- | ||
− | | | + | |Where || {{{where}}} |
− | |||
− | |||
− | |||
− | | | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
+ | </div> | ||
+ | |||
+ | [[description::{{{description}}}| ]] | ||
+ | |||
+ | {{#ifeq: {{{where}}} | Inside | [[Category:Inside]] | }} | ||
+ | {{#ifeq: {{{where}}} | Compound | [[Category:Compound]] | }} | ||
+ | {{#ifeq: {{{where}}} | Both | [[Category:Inside]][[Category:Compound]] | }} | ||
+ | |||
+ | |||
+ | <noinclude> | ||
+ | ==Usage== | ||
+ | <code> | ||
+ | <nowiki>{{Template:BuildingInfo|image=PinkBox.png|size=1x1|where=[[where::Compound]]|description=Some building}}</nowiki> | ||
+ | </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' or 'produces', as appropriate. For example | ||
+ | |||
+ | <nowiki> | ||
+ | Brick racks are built from 4 [[requires::boards]]. | ||
+ | |||
+ | == Uses == | ||
+ | * Turn 3 [[Mud]], 2 [[Straw]] and 1 [[Sand]] into 6 [[produces::Bricks]]. | ||
+ | * Turn 5 [[Silt]] and 1 [[Sand]] into 6 [[produces:Firebricks]]. | ||
+ | </nowiki> | ||
+ | |||
+ | Note that the brick rack 'requires' boards for its construction, but it does NOT 'require' Mud, Straw or Sand, since they are used to produce bricks, not the brick rack itself. | ||
+ | [[Category: Template]] {{DEFAULTSORT:B}} | ||
+ | </noinclude> |
Revision as of 13:27, 16 August 2010
Usage
{{Template:BuildingInfo|image=PinkBox.png|size=1x1|where=[[where::Compound]]|description=Some building}}
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' or 'produces', as appropriate. For example
Brick racks are built from 4 [[requires::boards]]. == Uses == * Turn 3 [[Mud]], 2 [[Straw]] and 1 [[Sand]] into 6 [[produces::Bricks]]. * Turn 5 [[Silt]] and 1 [[Sand]] into 6 [[produces:Firebricks]].
Note that the brick rack 'requires' boards for its construction, but it does NOT 'require' Mud, Straw or Sand, since they are used to produce bricks, not the brick rack itself.