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/basename"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m (try adding spaces to see if it fixes "Giant mantis" problem)
m (Reverted edits by Shinji Akari (talk) to last revision by Lethosor)
Tag: Rollback
 
(2 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{ucfirst:{{#mreplace:{{{1}}}|Giant || man||Large ||Gigantic ||}}|}}<noinclude>
+
{{Creature/basename/0|{{lc:{{{1|}}}}}}}<noinclude>
 
Strips a creature name of "man", "Giant", "Large", and "Gigantic" - essentially, gives the name of the basic creature
 
Strips a creature name of "man", "Giant", "Large", and "Gigantic" - essentially, gives the name of the basic creature
 +
 +
'''New''': no longer case-sensitive
 +
 +
<!-- when updating, make sure no spaces appear between the names in the preview. -->
 +
-{{creature/basename|Lion}}--{{creature/basename|Lion}}--{{creature/basename|gigantic panda}}--{{creature/basename|large rat}}--{{creature/basename|AaRdVaRk man}}-
 
</noinclude>
 
</noinclude>

Latest revision as of 22:37, 29 November 2023

Strips a creature name of "man", "Giant", "Large", and "Gigantic" - essentially, gives the name of the basic creature

New: no longer case-sensitive

-Lion--Lion--Panda--Rat--Aardvark-