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/eggs/0"
< Template:Creature | eggs
Jump to navigation
Jump to search
m (actually fix namespace) |
m (...and PET_EXOTIC) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | {{#switch:{{{2|}}}|1|2={{#rsplit:{{tagvalue|{{{{{ns|{{DF:Current}}}}}:{{{1|{{PAGENAME}}}}}/raw|}}| | + | {{#if:{{tag|{{{{{ns|{{DF:Current}}}}}:{{{1|{{PAGENAME}}}}}/raw|}}|PET}}{{tag|{{{{{ns|{{DF:Current}}}}}:{{{1|{{PAGENAME}}}}}/raw|}}|PET_EXOTIC}}|{{#switch:{{{2|}}}|1|2={{#rsplit:{{tagvalue|{{{{{ns|{{DF:Current}}}}}:{{{1|{{PAGENAME}}}}}/raw|}}|CLUTCH_SIZE|notfound=0}}|:|{{#expr:{{{2}}}-1}}}} |
− | |#default={{tagvalue|{{{{{ns|{{DF:Current}}}}}:{{{1|{{PAGENAME}}}}}/raw|}}| | + | |#default={{tagvalue|{{{{{ns|{{DF:Current}}}}}:{{{1|{{PAGENAME}}}}}/raw|}}|CLUTCH_SIZE|notfound=0:0}}}}|{{#switch:{{{2}}}|1|2=0|#default=0:0}}}}<noinclude> |
This template extracts the minimum and/or maximum egg clutch size from a creature's raws. | This template extracts the minimum and/or maximum egg clutch size from a creature's raws. |
Latest revision as of 22:15, 20 November 2013
0:0
This template extracts the minimum and/or maximum egg clutch size from a creature's raws.
Usage:
{{creature/eggs/0|Creature|n}}
"Creature" defaults to the page name.
"n" can be used to specify the first or second number. If any value other than "1" or "2" is passed, both values are returned, separated by ":"