Difference between revisions of "User:Rasarr/Infobox Test"
Jump to navigation
Jump to search
(Replaced content with "Bleh.") |
|||
Line 1: | Line 1: | ||
'''To [[Template:Tag]]''' |
|||
Bleh. |
|||
The '''tag''' template links to a page, and adds the page it's on to a category. |
|||
=== Template === |
|||
<pre class=mw-code> |
|||
{{tag |
|||
|{{1}} |
|||
|cat= |
|||
|text= |
|||
}} |
|||
</pre> |
|||
=== Parameters === |
|||
Highlighted lines indicate '''mandatory''' parameters. Positional parameters are indicated with <nowiki>{{N}}</nowiki> in their name. For example, <nowiki>{{1}}</nowiki> means "the first template parameter". |
|||
{{docs|title={{t|Tag}} Parameters}} |
|||
<!-- ------------- --> |
|||
<!-- ROW: {{1}} --> |
|||
<!-- ------------- --> |
|||
{{docs/row/required |
|||
|param=<nowiki>{{1}}</nowiki> |
|||
|desc= Use this to create a link and add the page to a category with the same name. |
|||
|eg= |
|||
<code><nowiki>|Diagram</nowiki></code> |
|||
}} |
|||
<!-- -------- --> |
|||
<!-- ROW: cat --> |
|||
<!-- -------- --> |
|||
{{docs/row/optional |
|||
|param=cat |
|||
|desc=Use this template to add this page to a category named differently than <nowiki>{{1}}</nowiki>; if <code>cat</code> is used, <nowiki>{{1}}</nowiki> serves only as a page link. |
|||
|eg= |
|||
<code><nowiki>|cat=Diagram</nowiki></code> |
|||
}} |
|||
<!-- -------- --> |
|||
<!-- ROW: text --> |
|||
<!-- -------- --> |
|||
{{docs/row/optional |
|||
|param=text |
|||
|desc=Use this template to change how the tag is displayed on the page. |
|||
|eg= |
|||
<code><nowiki>|text=Patriots</nowiki></code> |
|||
}} |
|||
|} |
|||
=== Categories & Tags === |
|||
Pages that make use of the ''{{t|tag}}'' template will be added to the category indicated by the tag. |
Revision as of 02:44, 8 December 2019
To Template:Tag
The tag template links to a page, and adds the page it's on to a category.
Template
{{tag |{{1}} |cat= |text= }}
Parameters
Highlighted lines indicate mandatory parameters. Positional parameters are indicated with {{N}} in their name. For example, {{1}} means "the first template parameter".
Parameter | Description | Examples |
---|---|---|
{{1}}
|
Use this to create a link and add the page to a category with the same name. |
|
cat
|
Use this template to add this page to a category named differently than {{1}}; if cat is used, {{1}} serves only as a page link.
|
|
text
|
Use this template to change how the tag is displayed on the page. |
|
Categories & Tags
Pages that make use of the {{tag}}
template will be added to the category indicated by the tag.