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:Token/doc"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(moved non-template stuff to doc, corrected argument in ex. text)
m
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
== Usage ==
 
== Usage ==
  {{<nowiki/>token| TOKEN | token type | ''arguments (optional)'' }}
+
  {{<nowiki/>token| TOKEN (required) | token type | ''arguments (optional)'' }}
  
==Examples==
+
=== List of token types ===
 +
 
 +
{| class="wikitable"
 +
! Values !! Page
 +
|-
 +
| ar, armor || [[Armor token]]
 +
|-
 +
| au, audio || [[Audio|Audio 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]]
 +
|-
 +
| c, cr, creature || [[Creature token]]
 +
|-
 +
| cv, v, var, cvar, variation, cvariation, creaturevariation || [[Creature variation token]]
 +
|-
 +
| e, ent, entity || [[Entity token]]
 +
|-
 +
| et, eth, ethic, ethics || [[Ethic]]
 +
|-
 +
| g, gr, graphics || [[Graphics token]]
 +
|-
 +
| 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]]
 +
|-
 +
| ins, instrument || [[Instrument 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 traits, values, and dreams]]
 +
|-
 +
| 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]]
 +
|-
 +
| ts, textset, text, speech || [[Speech file]]
 +
|-
 +
| ut, unit, unittype || [[Unit type token]]
 +
|-
 +
| wp, weapon || [[Weapon token]]
 +
|-
 +
| wo, world || [[Advanced world generation]]
 +
|}
 +
 
 +
== Examples ==
 
<pre>
 
<pre>
*{{token|ATTACK|am}} (ammo)
+
*{{token|ATTACK|am}}
*{{token|ARMORLEVEL|ar}} (armor)
+
*{{token|ARMORLEVEL|ar}}
*{{token|SPEED|c}} (creature)
+
*{{token|SPEED|c}}
*{{token|MANNERISM_EYE}} (token type not defined, guesses mannerism)
+
*{{token|MANNERISM_EYES}}
 
*{{token|NAME|c|cat:cats:cat}}
 
*{{token|NAME|c|cat:cats:cat}}
 +
*{{token|}}
 
</pre>
 
</pre>
  
Line 14: Line 93:
 
*{{token|ARMORLEVEL|ar}} (armor)
 
*{{token|ARMORLEVEL|ar}} (armor)
 
*{{token|SPEED|c}} (creature)
 
*{{token|SPEED|c}} (creature)
*{{token|MANNERISM_EYE}} (token type not defined, guesses mannerism)
+
*{{token|MANNERISM_EYES}} (token type not defined, guesses mannerism)
 
*{{token|NAME|c|cat:cats:cat}}
 
*{{token|NAME|c|cat:cats:cat}}
 +
*{{token|}}
  
 
==To do==
 
==To do==

Latest revision as of 22:28, 21 December 2024

Usage[edit]

{{token| TOKEN (required) | token type | arguments (optional) }}

List of token types[edit]

Values Page
ar, armor Armor token
au, audio Audio 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
c, cr, creature Creature token
cv, v, var, cvar, variation, cvariation, creaturevariation Creature variation token
e, ent, entity Entity token
et, eth, ethic, ethics Ethic
g, gr, graphics Graphics token
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
ins, instrument Instrument 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 traits, values, and dreams
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
ts, textset, text, speech Speech file
ut, unit, unittype Unit type token
wp, weapon Weapon token
wo, world Advanced world generation

Examples[edit]

*{{token|ATTACK|am}}
*{{token|ARMORLEVEL|ar}}
*{{token|SPEED|c}}
*{{token|MANNERISM_EYES}}
*{{token|NAME|c|cat:cats:cat}}
*{{token|}}

To do[edit]

$('#wpTextbox1').val($('#wpTextbox1').val().replace(/\|-\s*\n\|\s*([A-Z_]+)\s*\n/g, function(m, a){return '|-\n| {{text anchor|'+a+'}}\n'}));
To check for missed rows:
$('#wikiPreview tr').has('.text-anchor').hide()