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"

From ATITD5
Jump to navigationJump to search
m (Undo revision 7865 by Kasiya (talk). Never mind. Metals template was simpler than expected.)
(Quick test on box template - revert afterwards)
Line 1: Line 1:
__NOTOC__
+
<noinclude>''Creates a box suitable for warnings and notices at the top centre of the page''
<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 || {{#switch: {{{where}}} | [[where::Outside]] = Outside  | [[where::Compound]] = Compound | [[where::Both]] = Outside/Compound | {{{where}}} }}
 
  
|}
+
Usage: '''<NOWIKI>{{Box|Title|Content|Width}}</NOWIKI>'''
</div>
 
  
[[description::{{{description}}}| ]]
+
Example: <NOWIKI>{{Box|This is the Title|This is my content}}</NOWIKI> produces
{{#switch: {{{where}}} | [[where::Outside]] = [[Category:Outside]]  | [[where::Compound]] = [[Category:Compound]] | [[where::Both]] = [[Category:Inside]][[Category:Compound]] | }}
+
{{KasTest|This is the Title|This is my content}}
  
<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.
+
</noinclude><includeonly>
 
+
{| style = 'width: {{{3|40}}}em; margin: 1em auto; border-left: 1px solid black; border-right: 1px solid black; border-spacing: 0'  |
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
+
|-
 
+
| colspan='3' style = 'padding: 0' |
<nowiki>
+
<div style='overflow: hidden; width: {{{3|40}}}.5em; white-space: nowrap; line-height: 9px; height: 10px; margin-top: -1px'><div style='width: 0px'>[[Image:Delimiter_Large.png|block|link=]]</div></div>
  Brick racks are built from 4 [[requires::boards]].
+
|-
+
| style = 'width: 0.25em; background-color: {{DColor|{{{1|None}}}}}; border-right: 1px solid #888' |
  == Uses ==
+
|
    * Turn 3 [[Mud]], 2 [[Straw]] and 1 [[Sand]] into 6 [[produces::Bricks]].
+
{| style = 'width: 100%' |
    * Turn 5 [[Silt]] and 1 [[Sand]] into 6 [[produces:Firebricks]].
+
! colspan = '2' style = 'font-size: 150%; padding: 0.5em' | {{{1|}}}
</nowiki>
+
|-
 
+
{{{2|}}}
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>
+
| style = 'width: 0.25em; background-color: {{DColor|{{{1|None}}}}}; border-left: 1px solid #888' |
 +
|-
 +
| colspan='3' style = 'padding: 0' |
 +
<div style='overflow: hidden; width: {{{3|40}}}.5em; white-space: nowrap; line-height: 9px; height: 10px; margin-top: -1px'><div style='width: 0px'>[[Image:Delimiter_Large.png|link=]]</div></div>
 +
|}
 +
</includeonly>

Revision as of 04:54, 20 August 2010

Creates a box suitable for warnings and notices at the top centre of the page

Usage: {{Box|Title|Content|Width}}

Example: {{Box|This is the Title|This is my content}} produces

block
This is my content
This is the Title
Delimiter Large.png