Template:Distinguish: Difference between revisions
Appearance
e Tags: Recreated 2017 source edit |
f i n e, I'll try it properly |
||
| Line 1: | Line 1: | ||
e | == TemplateData == | ||
{{TemplateData header}} | |||
<templatedata> | |||
{ | |||
"params": { | |||
"1": { | |||
"label": "Name of article", | |||
"description": "Name of article that you want to link to", | |||
"type": "wiki-page-name", | |||
"suggested": true | |||
}, | |||
"2": { | |||
"label": "Optional additional article to link (2)", | |||
"description": "Optional additional article to link", | |||
"type": "wiki-page-name" | |||
}, | |||
"3": { | |||
"label": "Optional additional article to link (3)", | |||
"description": "Optional additional article to link", | |||
"type": "wiki-page-name" | |||
}, | |||
"4": { | |||
"label": "Optional additional article to link (4)", | |||
"description": "Optional additional article to link", | |||
"type": "wiki-page-name" | |||
}, | |||
"text": { | |||
"label": "Custom text", | |||
"description": "Custom message in wikitext; e.g. \"[[foo]] and [[Bar (computer science)|bar]]\" produces \"Not to be confused with [[foo]] and [[Bar (computer science)|bar]].\"", | |||
"type": "string" | |||
}, | |||
"selfref": { | |||
"label": "Self reference", | |||
"description": "If set, marks note as being a self reference, to not be shown when content is reused", | |||
"type": "boolean" | |||
} | |||
}, | |||
"description": "A hatnote used when there is an ambiguity in an article's title.", | |||
"paramOrder": [ | |||
"1", | |||
"2", | |||
"3", | |||
"4", | |||
"text", | |||
"selfref" | |||
], | |||
"format": "inline" | |||
} | |||
</templatedata> | |||
Revision as of 22:30, 1 November 2025
TemplateData
A hatnote used when there is an ambiguity in an article's title.
| Parameter | Description | Type | Status | |
|---|---|---|---|---|
| Name of article | 1 | Name of article that you want to link to | Page name | suggested |
| Optional additional article to link (2) | 2 | Optional additional article to link | Page name | optional |
| Optional additional article to link (3) | 3 | Optional additional article to link | Page name | optional |
| Optional additional article to link (4) | 4 | Optional additional article to link | Page name | optional |
| Custom text | text | Custom message in wikitext; e.g. "[[foo]] and [[Bar (computer science)|bar]]" produces "Not to be confused with [[foo]] and [[Bar (computer science)|bar]]." | String | optional |
| Self reference | selfref | If set, marks note as being a self reference, to not be shown when content is reused | Boolean | optional |