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:Inorganicname"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
(new template)
 
(do lowercase AFTER replacing, not before, so it handles DIAMOND_FY properly)
 
Line 1: Line 1:
<includeonly>{{#mreplace:{{lc:{{{1}}}}}|DIAMOND_FY|faint yellow diamond|_|&#32;}}</includeonly><noinclude>
+
<includeonly>{{lc:{{#mreplace:{{{1}}}|DIAMOND_FY|faint yellow diamond|_|&#32;}}}}</includeonly><noinclude>
 
Transforms an inorganic material ID into its most likely name. Used in situations where we don't actually have the material's raws handy (specifically, when dealing with ENVIRONMENT_SPEC, METAL_ORE, and THREAD_METAL tokens)
 
Transforms an inorganic material ID into its most likely name. Used in situations where we don't actually have the material's raws handy (specifically, when dealing with ENVIRONMENT_SPEC, METAL_ORE, and THREAD_METAL tokens)
 
[[Category:raw templates]]</noinclude>
 
[[Category:raw templates]]</noinclude>

Latest revision as of 19:09, 9 April 2011

Transforms an inorganic material ID into its most likely name. Used in situations where we don't actually have the material's raws handy (specifically, when dealing with ENVIRONMENT_SPEC, METAL_ORE, and THREAD_METAL tokens)