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"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(fix ethic link)
(Add support for inorganic material definition, interaction, item definition, item tokens)
Line 12: Line 12:
 
|e|ent|entity=Entity token
 
|e|ent|entity=Entity token
 
|et|eth|ethic|ethics=Ethic
 
|et|eth|ethic|ethics=Ethic
 +
|im|imat|imd|imdef|imatdef|inorganic|inorganic material|inorganic material definition=Inorganic material definition token
 +
|in|int|inter|interaction=Interaction token
 +
|id|idef|itdef|itemdef|item definition=Item definition token
 +
|i|it|item=Item token
 
|#default={{token/guess type|{{{1|}}}}}
 
|#default={{token/guess type|{{{1|}}}}}
 
}}#{{{1|}}}}}}|{{#if:{{{3|}}}||[}}{{{1}}}{{#if:{{{3|}}}|]]:{{{3}}}]|]]]}}</code><noinclude>
 
}}#{{{1|}}}}}}|{{#if:{{{3|}}}||[}}{{{1}}}{{#if:{{{3|}}}|]]:{{{3}}}]|]]]}}</code><noinclude>

Revision as of 19:37, 26 December 2014

[{{{1}}}]

To do

$('#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()

Examples