Template:About: Difference between revisions

From PZwiki
m (fix)
(update)
Line 1: Line 1:
<noinclude>
<noinclude>
{{Languages}}
{{Documentation/sandbox|doc =
{{Documentation}}
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:Templates]]
 
</noinclude><includeonly>::[[File:PlushSpiffo.png|32px|link=]]''{{#if: {{{1|}}}
==Usage==
  | {{Template translation
The template has several formats, including:
    | name = About
*{{Tlx|About|Use1}}
    | default = This {{#if:{{{section|}}}|section|{{#switch:{{NAMESPACENUMBER}}|0=article|14=category|page}} is about {{{1}}}.}}
{{About|Use1}} <!-- This template is about Use1. For other uses, see About/doc (disambiguation). -->
    | arg1 = {{{1|}}}
*{{Tlx|About|Use1|Article2}}
    | arg2 = {{{section|}}}
{{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|}}}
  | &nbsp;{{About/core|{{{2|}}}|{{{3|}}}}}
| &nbsp;{{About/core|{{{2|}}}|{{{3|}}}}}
}}{{#if: {{{4|}}}
}}{{#if: {{{4|}}}
  | &nbsp;{{About/core|{{{4|}}}|{{{5|}}}}}
| &nbsp;{{About/core|{{{4|}}}|{{{5|}}}}}
}}''</includeonly>
}}''</includeonly>

Revision as of 09:46, 28 December 2023

Notebook.pngTemplate Documentation

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:

PlushSpiffo.pngThis page is about Use1.
PlushSpiffo.pngThis page is about Use1. For Article2, see Template:About (disambiguation).
  • {{About|Use1|Use2|Article2}}
PlushSpiffo.pngThis page is about Use1. For Use2, see Article2.
  • {{About|Use1|Use2|Article2|Use3|Article3}}
PlushSpiffo.pngThis page is about Use1. For Use2, see Article2. For Use3, see Article3.
  • {{About|Use1|Use2|Article2|other uses}}
PlushSpiffo.pngThis 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.

See also

Editors can experiment in this template's sandbox.