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.
Template:Token/doc
< Template:Token
Jump to navigation
Jump to search
Revision as of 11:56, 10 October 2021 by Doorkeeper (talk | contribs) (moved non-template stuff to doc, corrected argument in ex. text)
Usage
{{token| TOKEN | token type | arguments (optional) }}
Examples
*{{token|ATTACK|am}} (ammo) *{{token|ARMORLEVEL|ar}} (armor) *{{token|SPEED|c}} (creature) *{{token|MANNERISM_EYE}} (token type not defined, guesses mannerism) *{{token|NAME|c|cat:cats:cat}}
[ATTACK]
(ammo)[ARMORLEVEL]
(armor)[SPEED]
(creature)[MANNERISM_EYE]
(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()