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:Creature/variation links/0"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m (rm namespace from existence checks)
m (pipe trick doesn't work)
 
(10 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[{{{ns}}}:{{{1}}}|{{{1}}}]] {{#ifexist:{{{1}}} man|{{{sep|-}}} [[{{{ns}}}:{{{1}}} man|{{{1}}} man]]}} {{#ifexist:Large {{lcfirst:{{{1}}}}}|{{{sep|-}}} [[{{{ns}}}:Large {{lcfirst:{{{1}}}}}|Large {{lcfirst:{{{1}}}}}]] {{#ifexist:Giant {{lcfirst:{{{1}}}}}|{{{sep|-}}} [[{{{ns}}}:Giant {{lcfirst:{{{1}}}}}|Giant {{lcfirst:{{{1}}}}}]] {{#ifexist:Gigantic {{lcfirst:{{{1}}}}}|{{{sep|-}}} [[{{{ns}}}:Gigantic {{lcfirst:{{{1}}}}}|Gigantic {{lcfirst:{{{1}}}}}]]}}
+
{{#ifexist:{{{ns}}}:{{{1}}}|[[{{{ns}}}:{{{1}}}|{{{1}}}]]}}<nowiki></nowiki> {{#ifexist:{{{ns}}}:{{{1}}} man/raw|{{{sep|-}}} [[{{{ns}}}:{{{1}}} man|{{{1}}} man]]}} {{#ifexist:{{{ns}}}:Large {{lcfirst:{{{1}}}}}/raw|{{{sep|-}}} [[{{{ns}}}:Large {{lcfirst:{{{1}}}}}|Large {{lcfirst:{{{1}}}}}]]}} {{#ifexist:{{{ns}}}:Giant {{lcfirst:{{{1}}}}}/raw|{{{sep|-}}} [[{{{ns}}}:Giant {{lcfirst:{{{1}}}}}|Giant {{lcfirst:{{{1}}}}}]]}} {{#ifexist:{{{ns}}}:Gigantic {{lcfirst:{{{1}}}}}/raw|{{{sep|-}}} [[{{{ns}}}:Gigantic {{lcfirst:{{{1}}}}}|Gigantic {{lcfirst:{{{1}}}}}]]}}<noinclude>
 +
This does the "work" - the parent template just makes it look pretty.
 +
 
 +
Tests:
 +
{{creature/variation links/0|Aardvark|ns=DF2012}}
 +
 
 +
{{creature/variation links/0|Fire|ns=DF2012}}
 +
 
 +
</noinclude>

Latest revision as of 13:43, 13 April 2013

This does the "work" - the parent template just makes it look pretty.

Tests: Aardvark - Aardvark man - Giant aardvark

Fire - Fire man