Template:About: Difference between revisions
m (fix) |
(update) |
||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{ | {{Documentation/sandbox|doc = | ||
{{ | This is a commonly used [[wikipedia:Hatnote|hatnote template]], and should be placed at the top of an article or a section, linking the reader to other articles with similar titles or concepts that they may have been seeking instead. | ||
[[Category: | |||
</noinclude><includeonly> | ==Usage== | ||
The template has several formats, including: | |||
*{{Tlx|About|Use1}} | |||
{{About|Use1}} <!-- This template is about Use1. For other uses, see About/doc (disambiguation). --> | |||
*{{Tlx|About|Use1|Article2}} | |||
{{About|Use1|Article2}} <!-- This template is about Use1. For other uses, see Article2. --> | |||
*{{Tlx|About|Use1|Use2|Article2}} | |||
{{About|Use1|Use2|Article2}} <!-- This template is about Use1. For Use2, see Article2. --> | |||
*{{Tlx|About|Use1|Use2|Article2|Use3|Article3}} | |||
{{About|Use1|Use2|Article2|Use3|Article3}} <!-- This template is about Use1. For Use2, see Article2. For Use3, see Article3. --> | |||
*{{Tlx|About|Use1|Use2|Article2|other uses}} | |||
{{About|Use1|Use2|Article2|other uses}} <!-- This template is about Use1. For Use2, see Article2. For other uses, see About/doc (disambiguation). --> | |||
{{Translation guide|<syntaxhighlight lang="html"> | |||
{{#if: {{{1|}}} | |||
| This {{#if: {{{2|}}} | |||
| section | |||
| {{#switch: {{NAMESPACENUMBER}} | |||
| 0 = article | |||
| 14 = category | |||
| page | |||
}} | |||
}} is about {{{1}}}. | |||
| [[Category:Incorrect template usage]] | |||
}} | |||
</syntaxhighlight>}} | |||
==See also== | |||
*{{ll|Template:Main}} | |||
*{{ll|Template:See}} | |||
}} | |||
{{ll|Category:Templates}} | |||
</noinclude><includeonly>:[[File:PlushSpiffo.png|32px|link=]]''{{#if: {{{1|}}} | |||
| {{tt | |||
| name = About | |||
| default = This {{#if: {{{section|}}} | |||
| section | |||
| {{#switch: {{NAMESPACENUMBER}} | |||
| 0 = article | |||
| 14 = category | |||
| #default = page | |||
}} is about {{{1}}}. | |||
}} | |||
| arg1 = {{{1}}} | |||
| arg2 = {{{section|}}} | |||
}} | }} | ||
}}{{#if:{{{2|}}} | }}{{#if:{{{2|}}} | ||
| {{About/core|{{{2|}}}|{{{3|}}}}} | |||
}}{{#if: {{{4|}}} | }}{{#if: {{{4|}}} | ||
| {{About/core|{{{4|}}}|{{{5|}}}}} | |||
}}''</includeonly> | }}''</includeonly> |
Revision as of 09:46, 28 December 2023
This is a commonly used hatnote template, and should be placed at the top of an article or a section, linking the reader to other articles with similar titles or concepts that they may have been seeking instead.
Usage
The template has several formats, including:
{{About|Use1}}
- This page is about Use1.
{{About|Use1|Article2}}
- This page is about Use1. For Article2, see Template:About (disambiguation).
{{About|Use1|Use2|Article2}}
- This page is about Use1. For Use2, see Article2.
{{About|Use1|Use2|Article2|Use3|Article3}}
{{About|Use1|Use2|Article2|other uses}}
- This page is about Use1. For Use2, see Article2. For other uses, see Template:About (disambiguation).
How to translate
This template is translatable.
Template code
Paste the following code into the <includeonly>
tag of the translated template and translate the text after each =
sign (except for #default =
).
{{#if: {{{1|}}}
| This {{#if: {{{2|}}}
| section
| {{#switch: {{NAMESPACENUMBER}}
| 0 = article
| 14 = category
| page
}}
}} is about {{{1}}}.
| [[Category:Incorrect template usage]]
}}
Template documentation
Copy the code wrapped in the <noinclude>
tag in this template and translate the text after doc =
in the {{Documentation}}
template.
{{Translation guide}}
template should be removed from the translated documentation.