Difference between revisions of "Template:About/doc"
(9 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | ||
+ | {{High-use|101,000+}} | ||
{{ombox|type=content|text=This template should not be used unless other topics exist with names very similar to the name of the article it is being used on (which, for most articles, is not the case).}} | {{ombox|type=content|text=This template should not be used unless other topics exist with names very similar to the name of the article it is being used on (which, for most articles, is not the case).}} | ||
− | {{Tlc|About}} is a commonly used [[WP:Hatnote|hatnote template]] on Wikipedia, and should be placed at the top of an article, linking the reader to other articles with similar | + | {{Lua|Module:About}} |
+ | {{Tlc|About}} 1-800-723-4210 is a commonly used [[WP:Hatnote|hatnote template]] on Wikipedia, and should be placed at the top of an article, linking the reader to other articles with similar titles or concepts that they may have been seeking instead. The template has several formats, including: | ||
*{{Tlx|About|USE1}} → {{About|USE1}} | *{{Tlx|About|USE1}} → {{About|USE1}} | ||
*{{Tlx|About|USE1|<nowiki/>|PAGE2}} → {{About|USE1||PAGE2}} | *{{Tlx|About|USE1|<nowiki/>|PAGE2}} → {{About|USE1||PAGE2}} | ||
*{{Tlx|About|USE1|USE2|PAGE2}} → {{About|USE1|USE2|PAGE2}} | *{{Tlx|About|USE1|USE2|PAGE2}} → {{About|USE1|USE2|PAGE2}} | ||
*{{Tlx|About|USE1|USE2|PAGE2|'''and'''|PAGE3}} → {{About|USE1|USE2|PAGE2|and|PAGE3}} | *{{Tlx|About|USE1|USE2|PAGE2|'''and'''|PAGE3}} → {{About|USE1|USE2|PAGE2|and|PAGE3}} | ||
+ | *{{Tlx|About|USE1|USE2|PAGE2|other uses}} → {{About|USE1|USE2|PAGE2|other uses}} | ||
Alternately, a <code>section=yes</code> parameter can be added to the {{Tlc|About}} template for use at the top of a section. When using this parameter, the wording in the template changes to specify that it is being used in a section: | Alternately, a <code>section=yes</code> parameter can be added to the {{Tlc|About}} template for use at the top of a section. When using this parameter, the wording in the template changes to specify that it is being used in a section: | ||
Line 12: | Line 15: | ||
*{{Tlx|About|USE1|USE2|PAGE2|<nowiki>section=yes</nowiki>}} → {{About|USE1|USE2|PAGE2|section=yes}} | *{{Tlx|About|USE1|USE2|PAGE2|<nowiki>section=yes</nowiki>}} → {{About|USE1|USE2|PAGE2|section=yes}} | ||
*{{Tlx|About|USE1|USE2|PAGE2|'''and'''|PAGE3|<nowiki>section=yes</nowiki>}} → {{About|USE1|USE2|PAGE2|and|PAGE3|section=yes}} | *{{Tlx|About|USE1|USE2|PAGE2|'''and'''|PAGE3|<nowiki>section=yes</nowiki>}} → {{About|USE1|USE2|PAGE2|and|PAGE3|section=yes}} | ||
+ | *{{Tlx|About|USE1|USE2|PAGE2|other uses|<nowiki>section=yes</nowiki>}} → {{About|USE1|USE2|PAGE2|other uses|section=yes}} | ||
For more options, find "{{Tlf|About}}" in the text below. | For more options, find "{{Tlf|About}}" in the text below. | ||
− | For reference, see [[Wikipedia: | + | For reference, see [[Wikipedia:hatnote]] and documentation below. |
− | {{Hatnote templates | + | {{Hatnote templates}} |
==TemplateData== | ==TemplateData== | ||
Line 44: | Line 48: | ||
"label": "Other page 2 description", | "label": "Other page 2 description", | ||
"type": "string", | "type": "string", | ||
− | "description": "What the second other page is about | + | "description": "What the second other page is about." |
}, | }, | ||
"5": { | "5": { | ||
"label": "Other page 2 title", | "label": "Other page 2 title", | ||
"type": "wiki-page-name", | "type": "wiki-page-name", | ||
− | "description": "The title of the second other page. If unused, defaults to \"[page title] (disambiguation)\"." | + | "description": "The title of the second other page. If unused or blank and parameter 4 exists, defaults to \"[page title] (disambiguation)\"." |
}, | }, | ||
"6": { | "6": { | ||
"label": "Other page 3 description", | "label": "Other page 3 description", | ||
"type": "string", | "type": "string", | ||
− | "description": "What the third other page is about | + | "description": "What the third other page is about." |
}, | }, | ||
"7": { | "7": { | ||
"label": "Other page 3 title", | "label": "Other page 3 title", | ||
"type": "wiki-page-name", | "type": "wiki-page-name", | ||
− | "description": "The title of the third other page. If unused, defaults to \"[page title] (disambiguation)\"." | + | "description": "The title of the third other page. If unused or blank and parameter 6 exists, defaults to \"[page title] (disambiguation)\"." |
}, | }, | ||
"8": { | "8": { | ||
"label": "Other page 4 description", | "label": "Other page 4 description", | ||
"type": "string", | "type": "string", | ||
− | "description": "What the fourth other page is about | + | "description": "What the fourth other page is about." |
}, | }, | ||
"9": { | "9": { | ||
"label": "Other page 4 title", | "label": "Other page 4 title", | ||
"type": "wiki-page-name", | "type": "wiki-page-name", | ||
− | "description": "The title of the fourth other page. If unused, defaults to \"[page title] (disambiguation)\"." | + | "description": "The title of the fourth other page. If unused or blank and parameter 8 exists, defaults to \"[page title] (disambiguation)\"." |
}, | }, | ||
"section": { | "section": { | ||
"type": "string", | "type": "string", | ||
− | "description": "Pass \"yes\" in this parameter to get wording appropriate for use at the top of a section", | + | "description": "Pass \"yes\" in this parameter to get wording appropriate for use at the top of a section.", |
"autovalue": "yes" | "autovalue": "yes" | ||
} | } |
Revision as of 05:07, 9 August 2016
Template:High-use
Script error: No such module "Message box".
Script error: No such module "Lua banner".
{{About}}
1-800-723-4210 is a commonly used hatnote template on Wikipedia, and should be placed at the top of an article, linking the reader to other articles with similar titles or concepts that they may have been seeking instead. The template has several formats, including:
{{About|USE1}}
→ Script error: No such module "about".{{About|USE1||PAGE2}}
→ Script error: No such module "about".{{About|USE1|USE2|PAGE2}}
→ Script error: No such module "about".{{About|USE1|USE2|PAGE2|and|PAGE3}}
→ Script error: No such module "about".{{About|USE1|USE2|PAGE2|other uses}}
→ Script error: No such module "about".
Alternately, a section=yes
parameter can be added to the {{About}}
template for use at the top of a section. When using this parameter, the wording in the template changes to specify that it is being used in a section:
{{About|USE1|section=yes}}
→ Script error: No such module "about".{{About|USE1||PAGE2|section=yes}}
→ Script error: No such module "about".{{About|USE1|USE2|PAGE2|section=yes}}
→ Script error: No such module "about".{{About|USE1|USE2|PAGE2|and|PAGE3|section=yes}}
→ Script error: No such module "about".{{About|USE1|USE2|PAGE2|other uses|section=yes}}
→ Script error: No such module "about".
For more options, find "{{About}}" in the text below.
For reference, see Wikipedia:hatnote and documentation below. Script error: No such module "Navbox".
TemplateData
See the monthly error report for this template.
TemplateData for About
<templatedata> { "description": "This template is a hatnote in the format \"This page is about … For other uses …\".", "params": { "1": { "label": "Page description", "type": "string", "required": true, "description": "What the page this template is placed on is about (\"This page is about …\")" }, "2": { "label": "Other page 1 description", "type": "string", "description": "What the first other page is about. If unused or blank, defaults to \"For other uses\"." }, "3": { "label": "Other page 1 title", "type": "wiki-page-name", "description": "The title of the first other page. If unused, defaults to \"[page title] (disambiguation)\"." }, "4": { "label": "Other page 2 description", "type": "string", "description": "What the second other page is about." }, "5": { "label": "Other page 2 title", "type": "wiki-page-name", "description": "The title of the second other page. If unused or blank and parameter 4 exists, defaults to \"[page title] (disambiguation)\"." }, "6": { "label": "Other page 3 description", "type": "string", "description": "What the third other page is about." }, "7": { "label": "Other page 3 title", "type": "wiki-page-name", "description": "The title of the third other page. If unused or blank and parameter 6 exists, defaults to \"[page title] (disambiguation)\"." }, "8": { "label": "Other page 4 description", "type": "string", "description": "What the fourth other page is about." }, "9": { "label": "Other page 4 title", "type": "wiki-page-name", "description": "The title of the fourth other page. If unused or blank and parameter 8 exists, defaults to \"[page title] (disambiguation)\"." }, "section": { "type": "string", "description": "Pass \"yes\" in this parameter to get wording appropriate for use at the top of a section.", "autovalue": "yes" } } } </templatedata>