Template:Formatnum/doc: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
No edit summary
m (Protected "Template:Formatnum/doc": Robot: Protecting all pages from category templates (‎[edit=sysop] (indefinite) ‎[move=sysop] (indefinite)))
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
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 [[help:magic word|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 (:)
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 [[Help:magic word|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 [[mw:Help:Magic words#Formatting|at the MediaWiki site]], there is a big difference between these two statements:
In other words, as is explained in greater detail [[mw:Help:Magic words#Formatting|at the MediaWiki site]], there is a big difference between these two statements:
Line 8: Line 8:


This template can thus be used to inform a user that they've used the wrong format for their purpose.
This template can thus be used to inform a user that they've used the wrong format for their purpose.
<noinclude>[[category:template documentation|{{PAGENAME}}]]</noinclude>

Latest revision as of 01:51, 13 May 2013

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.