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.
Editing Template:Token
Jump to navigation
Jump to search
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | + | <code>{{#if:{{{3|}}}|[<nowiki/>}}[[{{{link|{{#switch:{{lc:{{#rreplace:{{{2|c}}}|\s|}}}} | |
− | |||
− | |||
− | |||
|am|ammo=Ammo token | |am|ammo=Ammo token | ||
|ar|armor=Armor token | |ar|armor=Armor token | ||
− | |||
|bi|biome=Biome token | |bi|biome=Biome token | ||
|bd|bdp|bodydetail|bodydetailplan=Body detail plan token | |bd|bdp|bodydetail|bodydetailplan=Body detail plan token | ||
Line 13: | Line 9: | ||
|cm|cman|creaturemannerism|cmannerism|manner|manners|mannerism=Creature mannerism token | |cm|cman|creaturemannerism|cmannerism|manner|manners|mannerism=Creature mannerism token | ||
|ct|tx|text|ctext|txt|ctxt|ctexture|creaturetexture|texture=Creature texture token | |ct|tx|text|ctext|txt|ctxt|ctexture|creaturetexture|texture=Creature texture token | ||
+ | |c|cr|creature=Creature token | ||
|cv|v|var|cvar|variation|cvariation|creaturevariation=Creature variation token | |cv|v|var|cvar|variation|cvariation|creaturevariation=Creature variation token | ||
+ | |e|ent|entity=Entity token | ||
|et|eth|ethic|ethics=Ethic | |et|eth|ethic|ethics=Ethic | ||
|im|imat|imd|imdef|imatdef|inorganic|inorganicmaterial|inorganicmaterialdefinition=Inorganic material definition token | |im|imat|imd|imdef|imatdef|inorganic|inorganicmaterial|inorganicmaterialdefinition=Inorganic material definition token | ||
Line 19: | Line 17: | ||
|id|idef|itdef|itemdef|item definition=Item definition token | |id|idef|itdef|itemdef|item definition=Item definition token | ||
|i|it|item=Item token | |i|it|item=Item token | ||
− | |||
|lb|labor=Labor token | |lb|labor=Labor token | ||
|la|language=Language token | |la|language=Language token | ||
Line 29: | Line 26: | ||
|r|react|reaction=Reaction | |r|react|reaction=Reaction | ||
|s|sk|skill=Skill token | |s|sk|skill=Skill token | ||
− | |||
|td|tdef|tissue|tdefintion|tissuedefinition=Tissue definition token | |td|tdef|tissue|tdefintion|tissuedefinition=Tissue definition token | ||
|to|tool=Tool token | |to|tool=Tool token | ||
Line 36: | Line 32: | ||
|wp|weapon=Weapon token | |wp|weapon=Weapon token | ||
|wo|world=Advanced world generation | |wo|world=Advanced world generation | ||
− | |||
|#default={{token/guess type|{{{1|}}}}} | |#default={{token/guess type|{{{1|}}}}} | ||
− | }}# | + | }}#{{{1|}}}}}}|{{#if:{{{3|}}}||[}}{{{1}}}{{#if:{{{3|}}}|]]:{{{3}}}]|]]]}}</code><noinclude> |
− | {{ | + | {{documentation}} |
+ | ==To do== | ||
+ | * Add {{tl|text anchor}} to token tables (JS): | ||
+ | :<pre style="white-space:pre-wrap">$('#wpTextbox1').val($('#wpTextbox1').val().replace(/\|-\s*\n\|\s*([A-Z_]+)\s*\n/g, function(m, a){return '|-\n| {{text anchor|'+a+'}}\n'}));</pre> | ||
+ | :To check for missed rows: | ||
+ | :<pre>$('#wikiPreview tr').has('.text-anchor').hide()</pre> | ||
+ | |||
+ | ==Examples== | ||
+ | *{{token|ATTACK|am}} (ammo) | ||
+ | *{{token|ARMORLEVEL|ar}} (armor) | ||
+ | *{{token|SPEED|c}} (creature) | ||
+ | *{{token|NAME|c|cat:cats:cat}} | ||
+ | </noinclude> |