Template:Article tag

From Young Composers
Jump to: navigation, search
{{{1}}}
Note: This documentation has been transcluded from the /doc subpage of this template at Template:Article tag/doc. All documentation, categories, etc. should go there.

This template is a skeleton of tag templates such as {{cleanup}}, {{delete}} and {{foreign}}, and should be used to generate these types of templates. Specifically, these tag templates are self-referential meta-tags - they are used at the top of articles or sections to indicate issues with the article or section, rather than as part of the content itself.

Not all tag templates currently use this skeleton template. This skeleton template was adapted from {{cleanup}}.

Syntax

The simplest syntax for this template is:

{{article tag|This is the tag's main text.}}

Result:


This is the tag's main text.

However, you can also add a second line (small font) and third line (small font and italic).

{{article tag|
This is the tag's main text.
|This is the second line of text, maybe an explanation or invitation to improve the article.
|This is the third line of text, maybe a specific reason/explanation passed by the article using your tag template.}}

Result:


This is the tag's main text.
This is the second line of text, maybe an explanation or invitation to improve the article.
This is the third line of text, maybe a specific reason/explanation passed by the article using your tag template.

You can also add an image - usually a small icon - and category links.

{{article tag|Main text.|Second line|Third line|image=Broom.png|imagesize=40|category=[[Category:Articles needing X]]}}

Result:


Broom.png Main text.
Second line
Third line

Note: The category parameter was omitted from the result example above, because we don't want this documentation page to clutter up any categories.

Note that you do not need to include all three lines of text. You can omit any of the lines, and they will not appear (as empty space or otherwise) in the template. You can also leave them blank to achieve the same effect (e.g. if you want to make a tag template that takes an optional argument, which is displayed as one of the lines).

This is acceptable, for example:

{{article tag|Main text.|image=Broom.png}}

Parameters

Parameters 1, 2, 3 (unnamed)
First, second, and third line of text (respectively). See examples above.
image
Optional, but recommended. The file name of an image uploaded on the wiki. Typically a small icon used to illustrate the problem the tag is pointing out. Example: Broom.png
imagesize
Required if image is given. The width at which the image should be displayed, in pixels (without units). Example: 40
category
Optional. Category links. You have to make the link yourself; you can also include multiple categories. Example: [[Category:Some Category]].
  • Note that this parameter is coded in such a way that it will NOT add articles to categories if the article is in the Template: namespace. This is to allow documentation to use live examples of templates (by actually calling the template) without inadvertently adding the documentation and template page to the category.