Template talk:newlabel

= Documentation =

About
This template is designed for use with any page in the Label: namespace, for instance Label:non-standard. It is an alternative to copying the code from another label, automatically filling the page with the correct text.

Use this template to create or recreate any Label: for use with and. Also be sure to create the corresponding template at the same name, for example Template:non-standard. See Help:Label templates for more information.

Syntax
Enter the following within a new Label: page, or completely replace the contents of an existing page. For the label in question, provide the correct category name, such as Non-standard.

If there are more categories corresponding to the label, enter just one at first and then modify the resultant code to add the others in a second edit. Extra categories can be added as additional parameters to.

If there is no category associated with the template, no name need be provided. Either of the following will work, but the second is slightly preferable:

'''Note that while Label: is only a pseudospace, the PAGENAME has to be passed as a null-name parameter. This restriction can be eased whenever Label: becomes a proper namespace.'''

Mechanics
The code in this template directly categorizes the label itself as a label template and any pages that include it within a specified category, sensitive to a lang= parameter. It also indirectly self-categorizes the label template within the categories included, and displays informative output text on the correct use, including an error message when the label text does not match the label name.

Since the code of this template must be substituted into the page, there should be no pages that include this template.

Inclusions


= Comments =