Template:About: Difference between revisions
m (added missing period) |
m (Automated {{Languages}} removal.) Tag: Manual revert |
||
(14 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
< | <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. | |||
==Usage== | |||
===Parameters=== | |||
;<code>1</code> | |||
:Info about this article/section. | |||
;<code>2</code> | |||
:Info about the first article. | |||
;<code>3</code> | |||
:The first artcle name. If not specified but <code>2</code> is not empty, will link to the current page's disambiguation page named with the format <code>{{PAGENAME}} (disambiguation)</code>. | |||
;<code>4</code> | |||
:Info about the second article. | |||
;<code>5</code> | |||
:The second artcle name. Same as <code>3</code>. | |||
;<code>section</code> | |||
:If set to <code>true</code>, will display "section" instead of "article" in the first sentence. | |||
==Examples== | |||
*{{tll|About|Use1}} | |||
{{About|Use1}} | |||
*{{tll|About|Use1|Article2}} | |||
{{About|Use1|Article2}} | |||
*{{tll|About|Use1|Use2|Article2}} | |||
{{About|Use1|Use2|Article2}} | |||
*{{tll|About|Use1|Use2|Article2|Use3|Article3}} | |||
{{About|Use1|Use2|Article2|Use3|Article3}} | |||
*{{tll|About|Use1|Use2|Article2|other uses}} | |||
{{About|Use1|Use2|Article2|other uses}} | |||
{{Translation guide|<syntaxhighlight lang="html"> | |||
{{#if: {{{1|}}} | |||
| This {{{2}}} is about {{{1}}}. | |||
| [[Category:Incorrect template usage]] | |||
}} | |||
</syntaxhighlight>}} | |||
==See also== | |||
*{{ll|Template:Main}} | |||
*{{ll|Template:See}} | |||
*{{ll|Template:About/core}} | |||
*[[Wikipedia:Template:About]] | |||
}} | |||
{{ll|Category:Templates}} | |||
</noinclude><includeonly>:[[File:PlushSpiffo.png|32px|link=]]''{{#if: {{{1|}}} | |||
| {{tt|name=About | |||
| default = This {{Page ns|{{{section|}}}}} is about {{{1}}}. | |||
| arg1 = {{{1}}} | |||
| arg2 = {{Page ns|{{{section|}}}}} | |||
}} | |||
}}{{#if:{{{2|}}} | |||
| {{About/core|{{{2|}}}|{{{3|}}}}} | |||
}}{{#if: {{{4|}}} | |||
| {{About/core|{{{4|}}}|{{{5|}}}}} | |||
}}''</includeonly> |
Revision as of 14:01, 3 March 2024
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
Parameters
1
- Info about this article/section.
2
- Info about the first article.
3
- The first artcle name. If not specified but
2
is not empty, will link to the current page's disambiguation page named with the formatAbout (disambiguation)
. 4
- Info about the second article.
5
- The second artcle name. Same as
3
. section
- If set to
true
, will display "section" instead of "article" in the first sentence.
Examples
{{About|Use1}}
- This template is about Use1.
{{About|Use1|Article2}}
- This template is about Use1. For Article2, see Template:About (disambiguation).
{{About|Use1|Use2|Article2}}
- This template is about Use1. For Use2, see Article2.
{{About|Use1|Use2|Article2|Use3|Article3}}
{{About|Use1|Use2|Article2|other uses}}
- This template 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 {{{2}}} 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.