Template:Formatnum/doc: Difference between revisions

From Tardis Wiki, the free Doctor Who reference
(Created page with "This template doesn't do an awful lot on its own. It's invoked by {{tl|nts}} to warn people when they attempt to invoke mw:Help:Magic words#Formatting. It informs them of t...")
 
No edit summary
Line 1: Line 1:
This template doesn't do an awful lot on its own.  It's invoked by {{tl|nts}} to warn people when they attempt to invoke [[mw:Help:Magic words#Formatting]].  It informs them of the difference between templates and [[help:magic word|magic word]]s.
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:
<pre>
{{DEFAULTSORT:Last name, First name}}
{{DEFAULTSORT|Last name, First name}}
</pre>
 
This template can thus be used to inform a user that they've used the wrong format for their purpose.

Revision as of 17:33, 28 December 2011

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}}
{{DEFAULTSORT|Last name, First name}}

This template can thus be used to inform a user that they've used the wrong format for their purpose.