Content deleted Content added
Line 516:
Magic words can sometimes behave weirdly when [[WP:SUBST|substituted]] or nested. Here are some examples of how this works:
{| class="wikitable plainrowheaders"
! scope=col | {{idkc}}
! scope=col | Code
! scope=col | Output
|-
|{{nayc}}
|<syntaxhighlight lang="wikitext" inline>{{PAGESIZE}}</syntaxhighlight>
| {{suppress categories|{{PAGESIZE}}}}<!--To suppress the category "Pages which use a template in place of a magic word" generated by this erroneous usage-->
|-
|{{yeac}}
|<syntaxhighlight lang="wikitext" inline>{{PAGESIZE:Help:Magic words}}</syntaxhighlight>
|{{PAGESIZE:Help:Magic words}}
|-
|{{yeac}}
|<syntaxhighlight lang="wikitext" inline>{{subst:PAGESIZE:Help:Magic words}}</syntaxhighlight>
|{{PAGESIZE:Help:Magic words}}
|-
|{{yeac}}
|<syntaxhighlight lang="wikitext" inline>{{PAGESIZE:{{FULLPAGENAME}}}}</syntaxhighlight>
|{{PAGESIZE:{{FULLPAGENAME}}}}
|-
|{{nayc}}
|<syntaxhighlight lang="wikitext" inline>{{subst:PAGESIZE:{{FULLPAGENAME}}}}</syntaxhighlight>
|0
|-
|{{yeac}}
|<syntaxhighlight lang="wikitext" inline>{{PAGESIZE:{{subst:FULLPAGENAME}}}}</syntaxhighlight>
|{{PAGESIZE:Help:Magic words}}
|-
|{{yeac}}
|<syntaxhighlight lang="wikitext" inline>{{subst:PAGESIZE:{{subst:FULLPAGENAME}}}}</syntaxhighlight>
|{{PAGESIZE:{{FULLPAGENAME}}}}
|