Template:About: Difference between revisions
(update) |
m (Automated {{Languages}} removal.) Tag: Manual revert |
||
(7 intermediate revisions by 3 users not shown) | |||
Line 4: | Line 4: | ||
==Usage== | ==Usage== | ||
The | ===Parameters=== | ||
*{{ | ;<code>1</code> | ||
{{About|Use1}} | :Info about this article/section. | ||
*{{ | ;<code>2</code> | ||
{{About|Use1|Article2}} | :Info about the first article. | ||
*{{ | ;<code>3</code> | ||
{{About|Use1|Use2|Article2}} | :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> | ||
{{About|Use1|Use2|Article2|Use3|Article3}} | :Info about the second article. | ||
*{{ | ;<code>5</code> | ||
{{About|Use1|Use2|Article2|other uses}} | :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"> | {{Translation guide|<syntaxhighlight lang="html"> | ||
{{#if: {{{1|}}} | {{#if: {{{1|}}} | ||
| This | | This {{{2}}} is about {{{1}}}. | ||
| [[Category:Incorrect template usage]] | | [[Category:Incorrect template usage]] | ||
}} | }} | ||
Line 33: | Line 40: | ||
*{{ll|Template:Main}} | *{{ll|Template:Main}} | ||
*{{ll|Template:See}} | *{{ll|Template:See}} | ||
*{{ll|Template:About/core}} | |||
*[[Wikipedia:Template:About]] | |||
}} | }} | ||
{{ll|Category:Templates}} | {{ll|Category:Templates}} | ||
</noinclude><includeonly>:[[File:PlushSpiffo.png|32px|link=]]''{{#if: {{{1|}}} | </noinclude><includeonly>:[[File:PlushSpiffo.png|32px|link=]]''{{#if: {{{1|}}} | ||
| {{tt | | {{tt|name=About | ||
| default = This {{Page ns|{{{section|}}}}} is about {{{1}}}. | |||
| default = This {{ | |||
| arg1 = {{{1}}} | | arg1 = {{{1}}} | ||
| arg2 = {{{section|}}} | | arg2 = {{Page ns|{{{section|}}}}} | ||
}} | }} | ||
}}{{#if:{{{2|}}} | }}{{#if:{{{2|}}} |
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.