Difference between revisions of "Template:S"
From Legends of Hyrule
Jump to navigationJump to search (Created page with "<includeonly>''[[Spell:{{{1|}}}|{{LC:{{{1|}}}}}]]''</includeonly><noinclude> ==Usage== When this is entered: <pre>{{S|Magic Missile}}</pre> It will become this: <pre>''Spell...") |
(automatic categorization of creatures) |
||
Line 1: | Line 1: | ||
− | <includeonly>''[[Spell:{{{1|}}}|{{LC:{{{1|}}}}}]]''</includeonly><noinclude> | + | <includeonly>''[[Spell:{{{1|}}}|{{LC:{{{1|}}}}}]]''{{#ifeq:{{{2|}}}|nocat| | {{#if:{{{nocat|}}}| |{{#ifeq:{{NAMESPACE}}|Creature|[[Category:Creatures able to cast {{LC:{{{1|}}}}}]]}}}}}}</includeonly><noinclude> |
==Usage== | ==Usage== | ||
When this is entered: | When this is entered: | ||
<pre>{{S|Magic Missile}}</pre> | <pre>{{S|Magic Missile}}</pre> | ||
− | + | The template will normally become this: | |
<pre>''[[Spell:Magic Missile|magic missile]]''</pre> | <pre>''[[Spell:Magic Missile|magic missile]]''</pre> | ||
+ | On a page belonging to the Creature namespace, the template will instead become this: | ||
+ | <pre>''[[Spell:Magic Missile|magic missile]][[Category:Creatures able to cast magic missile]]</pre> | ||
+ | To prevent the page from being automatically categorized, use the following format instead: | ||
+ | <pre>{{S|Magic Missile|nocat}}</pre> | ||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Revision as of 05:25, 3 June 2016
Usage
When this is entered:
{{S|Magic Missile}}
The template will normally become this:
''[[Spell:Magic Missile|magic missile]]''
On a page belonging to the Creature namespace, the template will instead become this:
''[[Spell:Magic Missile|magic missile]][[Category:Creatures able to cast magic missile]]
To prevent the page from being automatically categorized, use the following format instead:
{{S|Magic Missile|nocat}}