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 (fix namespace) |
m (actually fix namespace) |
||
Line 1: | Line 1: | ||
− | {{#switch:{{{2|}}}|1|2={{#rsplit:{{tagvalue|{{{ns|{{DF:Current}}}}}: | + | {{#switch:{{{2|}}}|1|2={{#rsplit:{{tagvalue|{{{{{ns|{{DF:Current}}}}}:{{{1|{{PAGENAME}}}}}/raw|}}|EGG_SIZE|notfound=0}}|:|{{#expr:{{{2}}}-1}}}} |
− | |#default={{tagvalue|{{{ns|{{DF:Current}}}}}: | + | |#default={{tagvalue|{{{{{ns|{{DF:Current}}}}}:{{{1|{{PAGENAME}}}}}/raw|}}|EGG_SIZE|notfound=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. |
Revision as of 20:49, 26 March 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 ":"