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/exists"
Jump to navigation
Jump to search
m (cat link, end noinclude) |
|||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
{{#ifexist:{{{2|{{DF:Current}}}}}:{{{1}}}/raw|1|0}}<noinclude> | {{#ifexist:{{{2|{{DF:Current}}}}}:{{{1}}}/raw|1|0}}<noinclude> | ||
− | + | ||
+ | A boolean used to determine if a creature exists. | ||
Usage: | Usage: | ||
Line 7: | Line 8: | ||
<pre>{{creature/exists|Aardvark}}</pre> | <pre>{{creature/exists|Aardvark}}</pre> | ||
Returns {{creature/exists|Aardvark}} | Returns {{creature/exists|Aardvark}} | ||
− | + | ||
<pre>{{creature/exists|Clown}}</pre> | <pre>{{creature/exists|Clown}}</pre> | ||
Returns {{creature/exists|Clown}} | Returns {{creature/exists|Clown}} | ||
[[Category:Creature macros]]</noinclude> | [[Category:Creature macros]]</noinclude> |
Latest revision as of 13:39, 7 November 2019
0
A boolean used to determine if a creature exists.
Usage:
{{creature/exists|name|namespace={{DF:Current}}}}
{{creature/exists|Aardvark}}
Returns 1
{{creature/exists|Clown}}
Returns 0