Template:Formatnum: Difference between revisions
From Tardis Wiki, the free Doctor Who reference
(Created page with "<strong class="error">Use the colon (<tt>:</tt>) to invoke the magic word directly instead of the pipe (<tt>|</tt>) which invokes the template.</strong><n...") |
m (Protected "Template:Formatnum": If you'd like to suggest changes to this template, please do so at forum:Panopticon. This template is being protected because it impacts many other pages and templates. ([edit=sysop] (indefinite) [move=sysop] (indef) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<strong class="error">Use the colon (<tt>:</tt>) to invoke the [[mw:Help:Magic words|magic word]] directly instead of the pipe (<tt>|</tt>) which invokes the template.</strong><noinclude> | <strong class="error">Use the colon (<tt>:</tt>) to invoke the [[mw:Help:Magic words|magic word]] directly instead of the pipe (<tt>|</tt>) which invokes the template.</strong><noinclude> | ||
[[ | [[Category:coding utility templates]] | ||
{{documentation|content= | {{documentation|content= | ||
Error message for when people attempt to invoke [[mw:Help:Magic words#Formatting]] and informing them of the difference between templates and magic words. | Error message for when people attempt to invoke [[mw:Help:Magic words#Formatting]] and informing them of the difference between templates and magic words. | ||
}} | }} | ||
</noinclude> | </noinclude> |
Latest revision as of 05:20, 15 May 2012
Use the colon (:) to invoke the magic word directly instead of the pipe (|) which invokes the template.
Instructions for {{Formatnum}}
This template doesn't do an awful lot on its own. It's basically just an error message. It displays when people accidentally invoke a magic word that has the same name as a template. It explains that magic words are called when a straight line (|) is used after the name, whereas a template requires a colon (:)
In other words, as is explained in greater detail at the MediaWiki site, there is a big difference between these two statements:
{{DEFAULTSORT:Last name, First name}} <-- template {{DEFAULTSORT|Last name, First name}} <-- magic word
This template can thus be used to inform a user that they've used the wrong format for their purpose.