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
(to do)
m (fix)
Line 5: Line 5:
 
* Add codes for all pages in [[:Category:DF2012:Tokens]] (that have a list of tokens)
 
* Add codes for all pages in [[:Category:DF2012:Tokens]] (that have a list of tokens)
 
* Add {{tl|text anchor}} to token tables (JS):
 
* Add {{tl|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'}));
+
  $('#wpTextbox1').val($('#wpTextbox1').val().replace(/\|-\s*\n\|\s*([A-Z_]+)\s*\n/g, function(m, a){return '|-\n| {{text anchor|'+a+'}}\n'}));
 
</noinclude>
 
</noinclude>

Revision as of 02:22, 28 October 2013

[{{{1}}}]

To do

$('#wpTextbox1').val($('#wpTextbox1').val().replace(/\|-\s*\n\|\s*([A-Z_]+)\s*\n/g, function(m, a){return '|-\n| '+a+'\n'}));