v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "Template:Test"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(testing Template:Token)
Line 1: Line 1:
 
<noinclude>{{sandbox}}
 
<noinclude>{{sandbox}}
</noinclude><includeonly><code>{{#if:{{{1|}}}|{{#if:{{{3|}}}|[<nowiki/>}}[[{{{link|{{#switch:{{lc:{{#rreplace:{{{2}}}|\s|}}}}
+
</noinclude><includeonly>
|<!-- frequently used pages are placed on top for better performance
+
{| class="collapsible {{{state|autocollapse}}} infobox" style="margin: 0 auto -1px; border: 1px solid #aaa; font-size: 90%; padding: 2px; width: 60%; {{{bodystyle|}}}"<!--
-->c|cr|creature=Creature token
 
|e|ent|entity=Entity token
 
|am|ammo=Ammo token
 
|ar|armor=Armor token
 
|bi|biome=Biome token
 
|bd|bdp|bodydetail|bodydetailplan=Body detail plan token
 
|bo|bod|body=Body token
 
|bg|bdg|bodygloss=Bodygloss
 
|b|bd|bld|build|building=Building token
 
|cm|cman|creaturemannerism|cmannerism|manner|manners|mannerism=Creature mannerism token
 
|ct|tx|text|ctext|txt|ctxt|ctexture|creaturetexture|texture=Creature texture token
 
|cv|v|var|cvar|variation|cvariation|creaturevariation=Creature variation token
 
|et|eth|ethic|ethics=Ethic
 
|im|imat|imd|imdef|imatdef|inorganic|inorganicmaterial|inorganicmaterialdefinition=Inorganic material definition token
 
|in|int|inter|interaction=Interaction token
 
|id|idef|itdef|itemdef|item definition=Item definition token
 
|i|it|item=Item token
 
|lb|labor=Labor token
 
|la|language=Language token
 
|m|mat|material=Material token
 
|md|mdef|matdef|mdefinition|materialdefinition=Material definition token
 
|p|pl|plant=Plant token
 
|pt|personality|trait|personalitytrait|bf|belief|beliefs|v|vl|value|values=Personality trait
 
|po|position=Position token
 
|r|react|reaction=Reaction
 
|s|sk|skill=Skill token
 
|sy|syndrome=Syndrome
 
|td|tdef|tissue|tdefintion|tissuedefinition=Tissue definition token
 
|to|tool=Tool token
 
|tc|trap|trapcomponent=Trap component token
 
|ut|unit|unittype=Unit type token
 
|wp|weapon=Weapon token
 
|wo|world=Advanced world generation
 
|#default={{token/guess type|{{{1}}}}}
 
}}#{{uc:{{{1}}}}}}}}{{!}}{{#if:{{{3|}}}|{{uc:{{{1}}}}}]]:{{{3}}}]|[{{uc:{{{1}}}}}]]]}}|{{error|Error: TOKEN is not defined}}}}</code></includeonly><noinclude>
 
  
* {{test|ATTACK|am}}
 
* {{test|ARMORLEVEL|ar}}
 
* {{test|SPEED|c}}
 
* {{test|MANNERISM_EYES}}
 
* {{test|NAME|c|cat:cats:cat}}
 
* {{test|}}
 
  
 +
title -->
 +
! colspan="2" style="border: 1px solid #aaa; padding: 0.2em 0.5em; line-height: 1.5em; background: #bbbbdb; {{{titlestyle|}}}" {{!}} {{#if:{{{name|}}}|{{#switch:{{{navbar}}}|off=|#default=<div class="plainlinks" style="float: left; padding-left: 0.4em; font-size: 80%; font-weight: normal; white-space: nowrap;">[[Template:{{PAGENAME:{{{name}}}}}|V]]<span style="font-weight: bold; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;">&nbsp;·&nbsp;</span>[[Template talk:{{PAGENAME:{{{name}}}}}|T]]<span style="font-weight: bold; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none;">&nbsp;·&nbsp;</span>[https://dwarffortresswiki.org/index.php?title=Template:{{urlencode:{{PAGENAME:{{{name}}}}}|WIKI}}&action=edit E]</div>}}|}}<div style="font-size: 114%; margin: 0 6em;">{{{title}}}</div>
 +
{{!}}-|}}<!--
 +
 +
 +
above -->
 +
{{#if:{{{above|}}}|{{!}} colspan="2" style="border: 1px solid #aaa; padding: 0.2em 0.5em; background: #cdcde5; text-align: center; {{{basestyle|}}}; {{{abovestyle|}}}" {{!}} {{{above}}}
 +
{{!}}-|}}<!--
 +
 +
 +
 +
 +
list1, group1 -->
 +
{{#if:{{{list1|}}}|
 +
{{#if:{{{group1|}}}|! style="border: 1px solid #aaa; padding: 0.25em 1em; width: 1%; background: #cdcde5; white-space: nowrap; {{{basestyle|}}}; {{{groupstyle|}}}" {{!}} {{{group1}}}|}}
 +
{{!}}{{#if:{{{group1|}}}|| colspan="2"}} style="background:{{#switch:{{{evenodd}}}|swap=&#35;f7f7f7|off|#default=transparent}}; text-align: {{#if:{{{group1|}}}|left|center}}; padding:0.2em 0.5em; {{{liststyle|}}}" {{!}} {{{list1}}}
 +
{{!}}-|}}<!--
 +
 +
list2, group2 -->
 +
{{#if:{{{list2|}}}|
 +
{{#if:{{{group2|}}}|! style="border: 1px solid #aaa; padding: 0.25em 1em; width: 1%; background: #cdcde5; white-space: nowrap; {{{basestyle|}}}; {{{groupstyle|}}}" {{!}} {{{group2}}}|}}
 +
{{!}}{{#if:{{{group2|}}}|| colspan="2"}} style="background:{{#switch:{{{evenodd}}}|off|swap=transparent|#default=&#35;f7f7f7}}; text-align: {{#if:{{{group2|}}}|left|center}}; padding:0.2em 0.5em; {{{liststyle|}}}" {{!}} {{{list2}}}
 +
{{!}}-|}}<!--
 +
 +
list3, group3 -->
 +
{{#if:{{{list3|}}}|
 +
{{#if:{{{group3|}}}|! style="border: 1px solid #aaa; padding: 0.25em 1em; width: 1%; background: #cdcde5; white-space: nowrap; {{{basestyle|}}}; {{{groupstyle|}}}" {{!}} {{{group3}}}|}}
 +
{{!}}{{#if:{{{group3|}}}|| colspan="2"}} style="background:{{#switch:{{{evenodd}}}|swap=&#35;f7f7f7|off|#default=transparent}}; text-align: {{#if:{{{group3|}}}|left|center}}; padding:0.2em 0.5em; {{{liststyle|}}}" {{!}} {{{list3}}}
 +
{{!}}-|}}<!--
 +
 +
list4, group4 -->
 +
{{#if:{{{list4|}}}|
 +
{{#if:{{{group4|}}}|! style="border: 1px solid #aaa; padding: 0.25em 1em; width: 1%; background: #cdcde5; white-space: nowrap; {{{basestyle|}}}; {{{groupstyle|}}}" {{!}} {{{group4}}}|}}
 +
{{!}}{{#if:{{{group4|}}}|| colspan="2"}} style="background:{{#switch:{{{evenodd}}}|off|swap=transparent|#default=&#35;f7f7f7}}; text-align: {{#if:{{{group4|}}}|left|center}}; padding:0.2em 0.5em; {{{liststyle|}}}" {{!}} {{{list4}}}
 +
{{!}}-|}}<!--
 +
 +
list5, group5 -->
 +
{{#if:{{{list5|}}}|
 +
{{#if:{{{group5|}}}|! style="border: 1px solid #aaa; padding: 0.25em 1em; width: 1%; background: #cdcde5; white-space: nowrap; {{{basestyle|}}}; {{{groupstyle|}}}" {{!}} {{{group5}}}|}}
 +
{{!}}{{#if:{{{group5|}}}|| colspan="2"}} style="background:{{#switch:{{{evenodd}}}|swap=&#35;f7f7f7|off|#default=transparent}}; text-align: {{#if:{{{group5|}}}|left|center}}; padding:0.2em 0.5em; {{{liststyle|}}}" {{!}} {{{list5}}}
 +
{{!}}-|}}<!--
 +
 +
list6, group6 -->
 +
{{#if:{{{list6|}}}|
 +
{{#if:{{{group6|}}}|! style="border: 1px solid #aaa; padding: 0.25em 1em; width: 1%; background: #cdcde5; white-space: nowrap; {{{basestyle|}}}; {{{groupstyle|}}}" {{!}} {{{group6}}}|}}
 +
{{!}}{{#if:{{{group6|}}}|| colspan="2"}} style="background:{{#switch:{{{evenodd}}}|off|swap=transparent|#default=&#35;f7f7f7}}; text-align: {{#if:{{{group6|}}}|left|center}}; padding:0.2em 0.5em; {{{liststyle|}}}" {{!}} {{{list6}}}
 +
{{!}}-|}}<!--
 +
 +
list7, group7 -->
 +
{{#if:{{{list7|}}}|
 +
{{#if:{{{group7|}}}|! style="border: 1px solid #aaa; padding: 0.25em 1em; width: 1%; background: #cdcde5; white-space: nowrap; {{{basestyle|}}}; {{{groupstyle|}}}" {{!}} {{{group7}}}|}}
 +
{{!}}{{#if:{{{group7|}}}|| colspan="2"}} style="background:{{#switch:{{{evenodd}}}|swap=&#35;f7f7f7|off|#default=transparent}}; text-align: {{#if:{{{group7|}}}|left|center}}; padding:0.2em 0.5em; {{{liststyle|}}}" {{!}} {{{list7}}}
 +
{{!}}-|}}<!--
 +
 +
list8, group8 -->
 +
{{#if:{{{list8|}}}|
 +
{{#if:{{{group8|}}}|! style="border: 1px solid #aaa; padding: 0.25em 1em; width: 1%; background: #cdcde5; white-space: nowrap; {{{basestyle|}}}; {{{groupstyle|}}}" {{!}} {{{group8}}}|}}
 +
{{!}}{{#if:{{{group8|}}}|| colspan="2"}} style="background:{{#switch:{{{evenodd}}}|off|swap=transparent|#default=&#35;f7f7f7}}; text-align: {{#if:{{{group8|}}}|left|center}}; padding:0.2em 0.5em; {{{liststyle|}}}" {{!}} {{{list8}}}
 +
{{!}}-|}}<!--
 +
 +
list9, group9 -->
 +
{{#if:{{{list9|}}}|
 +
{{#if:{{{group9|}}}|! style="border: 1px solid #aaa; padding: 0.25em 1em; width: 1%; background: #cdcde5; white-space: nowrap; {{{basestyle|}}}; {{{groupstyle|}}}" {{!}} {{{group9}}}|}}
 +
{{!}}{{#if:{{{group9|}}}|| colspan="2"}} style="background:{{#switch:{{{evenodd}}}|swap=&#35;f7f7f7|off|#default=transparent}}; text-align: {{#if:{{{group9|}}}|left|center}}; padding:0.2em 0.5em; {{{liststyle|}}}" {{!}} {{{list9}}}
 +
{{!}}-|}}<!--
 +
 +
list10, group10 -->
 +
{{#if:{{{list10|}}}|
 +
{{#if:{{{group10|}}}|! style="border: 1px solid #aaa; padding: 0.25em 1em; width: 1%; background: #cdcde5; white-space: nowrap; {{{basestyle|}}}; {{{groupstyle|}}}" {{!}} {{{group10}}}|}}
 +
{{!}}{{#if:{{{group10|}}}|| colspan="2"}} style="background:{{#switch:{{{evenodd}}}|off|swap=transparent|#default=&#35;f7f7f7}}; text-align: {{#if:{{{group10|}}}|left|center}}; padding:0.2em 0.5em; {{{liststyle|}}}" {{!}} {{{list10}}}
 +
{{!}}-|}}<!--
 +
 +
list11, group11 -->
 +
{{#if:{{{list11|}}}|
 +
{{#if:{{{group11|}}}|! style="border: 1px solid #aaa; padding: 0.25em 1em; width: 1%; background: #cdcde5; white-space: nowrap; {{{basestyle|}}}; {{{groupstyle|}}}" {{!}} {{{group11}}}|}}
 +
{{!}}{{#if:{{{group11|}}}|| colspan="2"}} style="background:{{#switch:{{{evenodd}}}|swap=&#35;f7f7f7|off|#default=transparent}}; text-align: {{#if:{{{group11|}}}|left|center}}; padding:0.2em 0.5em; {{{liststyle|}}}" {{!}} {{{list11}}}
 +
{{!}}-|}}<!--
 +
 +
list12, group12 -->
 +
{{#if:{{{list12|}}}|
 +
{{#if:{{{group12|}}}|! style="border: 1px solid #aaa; padding: 0.25em 1em; width: 1%; background: #cdcde5; white-space: nowrap; {{{basestyle|}}}; {{{groupstyle|}}}" {{!}} {{{group12}}}|}}
 +
{{!}}{{#if:{{{group12|}}}|| colspan="2"}} style="background:{{#switch:{{{evenodd}}}|off|swap=transparent|#default=&#35;f7f7f7}}; text-align: {{#if:{{{group12|}}}|left|center}}; padding:0.2em 0.5em; {{{liststyle|}}}" {{!}} {{{list12}}}
 +
{{!}}-|}}<!--
 +
 +
list13, group13 -->
 +
{{#if:{{{list13|}}}|
 +
{{#if:{{{group13|}}}|! style="border: 1px solid #aaa; padding: 0.25em 1em; width: 1%; background: #cdcde5; white-space: nowrap; {{{basestyle|}}}; {{{groupstyle|}}}" {{!}} {{{group13}}}|}}
 +
{{!}}{{#if:{{{group13|}}}|| colspan="2"}} style="background:{{#switch:{{{evenodd}}}|swap=&#35;f7f7f7|off|#default=transparent}}; text-align: {{#if:{{{group13|}}}|left|center}}; padding:0.2em 0.5em; {{{liststyle|}}}" {{!}} {{{list13}}}
 +
{{!}}-|}}<!--
 +
 +
list14, group14 -->
 +
{{#if:{{{list14|}}}|
 +
{{#if:{{{group14|}}}|! style="border: 1px solid #aaa; padding: 0.25em 1em; width: 1%; background: #cdcde5; white-space: nowrap; {{{basestyle|}}}; {{{groupstyle|}}}" {{!}} {{{group14}}}|}}
 +
{{!}}{{#if:{{{group14|}}}|| colspan="2"}} style="background:{{#switch:{{{evenodd}}}|off|swap=transparent|#default=&#35;f7f7f7}}; text-align: {{#if:{{{group14|}}}|left|center}}; padding:0.2em 0.5em; {{{liststyle|}}}" {{!}} {{{list14}}}
 +
{{!}}-|}}<!--
 +
 +
list15, group15 -->
 +
{{#if:{{{list15|}}}|
 +
{{#if:{{{group15|}}}|! style="border: 1px solid #aaa; padding: 0.25em 1em; width: 1%; background: #cdcde5; white-space: nowrap; {{{basestyle|}}}; {{{groupstyle|}}}" {{!}} {{{group15}}}|}}
 +
{{!}}{{#if:{{{group15|}}}|| colspan="2"}} style="background:{{#switch:{{{evenodd}}}|swap=&#35;f7f7f7|off|#default=transparent}}; text-align: {{#if:{{{group15|}}}|left|center}}; padding:0.2em 0.5em; {{{liststyle|}}}" {{!}} {{{list15}}}
 +
{{!}}-|}}<!--
 +
 +
list16, group16 -->
 +
{{#if:{{{list16|}}}|
 +
{{#if:{{{group16|}}}|! style="border: 1px solid #aaa; padding: 0.25em 1em; width: 1%; background: #cdcde5; white-space: nowrap; {{{basestyle|}}}; {{{groupstyle|}}}" {{!}} {{{group16}}}|}}
 +
{{!}}{{#if:{{{group16|}}}|| colspan="2"}} style="background:{{#switch:{{{evenodd}}}|off|swap=transparent|#default=&#35;f7f7f7}}; text-align: {{#if:{{{group16|}}}|left|center}}; padding:0.2em 0.5em; {{{liststyle|}}}" {{!}} {{{list16}}}
 +
{{!}}-|}}<!--
 +
 +
list17, group17 -->
 +
{{#if:{{{list17|}}}|
 +
{{#if:{{{group17|}}}|! style="border: 1px solid #aaa; padding: 0.25em 1em; width: 1%; background: #cdcde5; white-space: nowrap; {{{basestyle|}}}; {{{groupstyle|}}}" {{!}} {{{group17}}}|}}
 +
{{!}}{{#if:{{{group17|}}}|| colspan="2"}} style="background:{{#switch:{{{evenodd}}}|swap=&#35;f7f7f7|off|#default=transparent}}; text-align: {{#if:{{{group17|}}}|left|center}}; padding:0.2em 0.5em; {{{liststyle|}}}" {{!}} {{{list17}}}
 +
{{!}}-|}}<!--
 +
 +
list18, group18 -->
 +
{{#if:{{{list18|}}}|
 +
{{#if:{{{group18|}}}|! style="border: 1px solid #aaa; padding: 0.25em 1em; width: 1%; background: #cdcde5; white-space: nowrap; {{{basestyle|}}}; {{{groupstyle|}}}" {{!}} {{{group18}}}|}}
 +
{{!}}{{#if:{{{group18|}}}|| colspan="2"}} style="background:{{#switch:{{{evenodd}}}|off|swap=transparent|#default=&#35;f7f7f7}}; text-align: {{#if:{{{group18|}}}|left|center}}; padding:0.2em 0.5em; {{{liststyle|}}}" {{!}} {{{list18}}}
 +
{{!}}-|}}<!--
 +
 +
list19, group19 -->
 +
{{#if:{{{list19|}}}|
 +
{{#if:{{{group19|}}}|! style="border: 1px solid #aaa; padding: 0.25em 1em; width: 1%; background: #cdcde5; white-space: nowrap; {{{basestyle|}}}; {{{groupstyle|}}}" {{!}} {{{group19}}}|}}
 +
{{!}}{{#if:{{{group19|}}}|| colspan="2"}} style="background:{{#switch:{{{evenodd}}}|swap=&#35;f7f7f7|off|#default=transparent}}; text-align: {{#if:{{{group19|}}}|left|center}}; padding:0.2em 0.5em; {{{liststyle|}}}" {{!}} {{{list19}}}
 +
{{!}}-|}}<!--
 +
 +
list20, group20 (add more if necessary) -->
 +
{{#if:{{{list10|}}}|
 +
{{#if:{{{group10|}}}|! style="border: 1px solid #aaa; padding: 0.25em 1em; width: 1%; background: #cdcde5; white-space: nowrap; {{{basestyle|}}}; {{{groupstyle|}}}" {{!}} {{{group10}}}|}}
 +
{{!}}{{#if:{{{group10|}}}|| colspan="2"}} style="background:{{#switch:{{{evenodd}}}|off|swap=transparent|#default=&#35;f7f7f7}}; text-align: {{#if:{{{group10|}}}|left|center}}; padding:0.2em 0.5em; {{{liststyle|}}}" {{!}} {{{list10}}}
 +
{{!}}-|}}<!--
 +
 +
 +
 +
below -->
 +
{{#if:{{{below|}}}|{{!}} colspan="2" style="border: 1px solid #aaa; padding: 0.2em 0.5em; background: #cdcde5; text-align: center; {{{basestyle|}}}; {{{belowstyle|}}}" {{!}} {{{below}}}|}}
 +
|}</includeonly><noinclude>
 +
 +
{{Test|
 +
| name = DF2014 soil
 +
| state = expanded
 +
| title = title
 +
 +
| above = above
 +
| below = below
 +
 +
| group1 = group
 +
| list1 = list
 +
| group2 = group
 +
| list2 = list
 +
| group3 = group
 +
| list3 = list
 +
| group4 = group
 +
| list4 = list
 +
| group5 = group
 +
| list5 = list
 +
| group6 = group
 +
| list6 = list
 +
| group7 = group
 +
| list7 = list
 +
| group8 = group
 +
| list8 = list
 +
| group9 = group
 +
| list9 = list
 +
| group10 = group
 +
| list10 = list
 +
| group11 = group
 +
| list11 = list
 +
| group12 = group
 +
| list12 = list
 +
| group13 = group
 +
| list13 = list
 +
| group14 = group
 +
| list14 = list
 +
| group15 = group
 +
| list15 = list
 +
| group16 = group
 +
| list16 = list
 +
| group17 = group
 +
| list17 = list
 +
| group18 = group
 +
| list18 = list
 +
| group19 = group
 +
| list19 = list
 +
| group20 = group
 +
| list20 = list
 +
}}
 +
{{Test|
 +
| name = DF2014 stones
 +
| navbar = off
 +
| title = title
 +
 +
| list1 = list
 +
| group2 = group
 +
| list2 = list
 +
| list3 = list
 +
| group4 = should not appear
 +
| list15 = list
 +
}}
 
</noinclude>
 
</noinclude>

Revision as of 21:30, 9 January 2022



title
above
group list
group list
group list
group list
group list
group list
group list
group list
group list
group list
group list
group list
group list
group list
group list
group list
group list
group list
group list
group list
below
title
list
group list
list
list