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"
Jump to navigation
Jump to search
Doorkeeper (talk | contribs) (add rest of token list pages: bodygloss, labor, language, material, material def, personality, position, reaction, skill, tissue def, tool, trap, unit, weapon, world) |
(add special token types from 23a/40d) |
||
(23 intermediate revisions by 6 users not shown) | |||
Line 1: | Line 1: | ||
− | <code>{{#if:{{{3|}}}|[<nowiki/>}}[[{{{link|{{#switch:{{lc | + | <includeonly><code>{{#if:{{{3|}}}|[<nowiki/>}}[[{{{link|{{#switch:{{lc:{{{2}}}}} |
+ | |<!-- frequently used pages are placed on top for better performance | ||
+ | -->c|cr|creature=Creature token | ||
+ | |e|ent|entity=Entity token | ||
|am|ammo=Ammo token | |am|ammo=Ammo token | ||
|ar|armor=Armor token | |ar|armor=Armor token | ||
+ | |au|audio=Audio | ||
|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 9: | Line 13: | ||
|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 | ||
− | |||
|cv|v|var|cvar|variation|cvariation|creaturevariation=Creature variation token | |cv|v|var|cvar|variation|cvariation|creaturevariation=Creature variation token | ||
− | |||
|et|eth|ethic|ethics=Ethic | |et|eth|ethic|ethics=Ethic | ||
+ | |ge|gem=Gem token | ||
|im|imat|imd|imdef|imatdef|inorganic|inorganicmaterial|inorganicmaterialdefinition=Inorganic material definition token | |im|imat|imd|imdef|imatdef|inorganic|inorganicmaterial|inorganicmaterialdefinition=Inorganic material definition token | ||
|in|int|inter|interaction=Interaction token | |in|int|inter|interaction=Interaction token | ||
|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 | ||
+ | |ins|instrument=Instrument token | ||
|lb|labor=Labor token | |lb|labor=Labor token | ||
|la|language=Language token | |la|language=Language token | ||
|m|mat|material=Material token | |m|mat|material=Material token | ||
|md|mdef|matdef|mdefinition|materialdefinition=Material definition token | |md|mdef|matdef|mdefinition|materialdefinition=Material definition token | ||
+ | |mi|modinfo=Mod info token | ||
+ | |mt|metal=Metal token | ||
|p|pl|plant=Plant token | |p|pl|plant=Plant token | ||
− | |pt|personality|trait|personalitytrait| | + | |pt|personality|trait|personalitytrait|pf|facet|personalityfacet=Personality facet |
+ | |pv|v|vl|value|values|bf|belief|beliefs=Personality value | ||
+ | |pg|goal=Personality goal | ||
|po|position=Position token | |po|position=Position token | ||
|r|react|reaction=Reaction | |r|react|reaction=Reaction | ||
|s|sk|skill=Skill token | |s|sk|skill=Skill token | ||
+ | |st|stone=Stone token | ||
+ | |sy|syndrome=Syndrome | ||
|td|tdef|tissue|tdefintion|tissuedefinition=Tissue definition token | |td|tdef|tissue|tdefintion|tissuedefinition=Tissue definition token | ||
|to|tool=Tool token | |to|tool=Tool token | ||
|tc|trap|trapcomponent=Trap component token | |tc|trap|trapcomponent=Trap component token | ||
+ | |ts|textset|text|speech=Speech file | ||
|ut|unit|unittype=Unit type token | |ut|unit|unittype=Unit type token | ||
+ | |wd|wood=Wood token | ||
|wp|weapon=Weapon token | |wp|weapon=Weapon token | ||
|wo|world=Advanced world generation | |wo|world=Advanced world generation | ||
+ | |g|gr|graphics=Graphics token | ||
|#default={{token/guess type|{{{1|}}}}} | |#default={{token/guess type|{{{1|}}}}} | ||
− | }}#{{{1|}}}}}}|{{#if:{{{3|}}}||[}}{{{1}}}{{#if:{{{3|}}}|]]:{{{3}}}]|]]]}}</code>< | + | }}#{{uc:{{{1|}}}}}}}}|{{#if:{{{3|}}}||[}}{{uc:{{{1}}}}}{{#if:{{{3|}}}|]]:{{{3}}}]|]]]}}</code></includeonly><noinclude> |
− | + | {{documentation}}</noinclude> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | </noinclude> |
Latest revision as of 22:42, 23 June 2025
(view - edit - history - purge) Documentation
Usage
{{token| TOKEN (required) | token type | arguments (optional) }}
List of token types
Values | Page |
---|---|
am, ammo | Ammo token |
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 |
ge, gem | Gem token (23a) |
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 |
mt, metal | Metal token (40d) |
mi, modinfo | Mod info token |
p, pl, plant | Plant token |
pg, goal | Personality goal |
pt, personality, trait, personalitytrait, pf, facet, personalityfacet | Personality facet |
pv, v, vl, value, values, bf, belief, beliefs | Personality value |
po, position | Position token |
r, react, reaction | Reaction |
s, sk, skill | Skill token |
st, stone | Stone token (40d) |
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 |
wd, wood | Wood token (40d) |
wo, world | Advanced world generation |
Examples
*{{token|ATTACK|am}} *{{token|ARMORLEVEL|ar}} *{{token|SPEED|c}} *{{token|MANNERISM_EYES}} *{{token|NAME|c|cat:cats:cat}} *{{token|}}
[ATTACK]
(ammo)[ARMORLEVEL]
(armor)[SPEED]
(creature)[MANNERISM_EYES]
(token type not defined, guesses mannerism)[NAME:cat:cats:cat]
[]
To do
- Add {{text anchor}} to token tables (JS):
$('#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()