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...")
 
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>''[[Spell:{{{1|}}}|{{LC:{{{1|}}}}}]]''</includeonly><noinclude>
+
<includeonly>''[[{{{1|}}} (spell)|{{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>
It will become this:
+
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>

Latest revision as of 19:30, 20 October 2019

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}}