Template:Otheruses/doc: Difference between revisions
More actions
mNo edit summary |
mNo edit summary |
||
| Line 52: | Line 52: | ||
{{Otheruses}} | {{Otheruses}} | ||
=== Translating the descriptions === | |||
<pre><nowiki>{{Otheruses|the insect group|the automobile|Volkswagen Beetle}}</nowiki></pre> | <pre><nowiki>{{Otheruses|the insect group|the automobile|Volkswagen Beetle}}</nowiki></pre> | ||
Gives: | Gives: | ||
{{Otheruses|the insect group|the automobile|Volkswagen Beetle}} | {{Otheruses|the insect group|the automobile|Volkswagen Beetle}} | ||
However the descriptions themselves will not be correct, even if the template translates fixed parts. You can autotranslate the provided descriptions for example with {{Tl|LangSwitch}}: | |||
You can autotranslate the provided descriptions | |||
<pre><nowiki>{{Otheruses | <pre><nowiki>{{Otheruses | ||
| {{LangSwitch |en=the insect group |fr=le groupe d’insectes }} | | {{LangSwitch |en=the insect group |fr=le groupe d’insectes }} | ||
| Line 69: | Line 68: | ||
=== Linking to disambiguation categories or files === | === Linking to disambiguation categories or files === | ||
You also may direct to categories (a leading ":", normally needed for links to categories or files may be specified, but it is now detected and supplied automatically) | You also may direct to categories (a leading ":", normally needed for links to categories or files may be specified, but it is now detected and supplied automatically): | ||
<pre><nowiki>{{Otheruses | <pre><nowiki>{{Otheruses | ||
| {{LangSwitch |en=wells for water supply |fr=les puits fournissant de l’eau }} | | {{LangSwitch |en=wells for water supply |fr=les puits fournissant de l’eau }} | ||
Revision as of 20:36, 25 August 2021
Template is used for linking the reader to articles with similar titles or concepts that they may have been seeking instead.
Usage
{{Otheruses |1= |2= |3= }}
You also add several other pairs (of description and link) for multiple other usages.
- Each provided description can be autotranslated using {{LangSwitch}}.
- If you do not give the description for the first link, it will display “other uses” by default – you may specify description (without leading “for” and ending “see”).
- For descriptions of the 2nd (or firther) other usage, you must supply this distinctive description.
- If you do not give the name of the other page, it automatically targets a disambiguation page, i.e. the full name of the current page with an appended “ (disambiguation)” suffix. You should specify the explicit name of each other page except one of them.
Basic usage
{{Otheruses}}
Gives:
Translating the descriptions
{{Otheruses|the insect group|the automobile|Volkswagen Beetle}}
Gives:
However the descriptions themselves will not be correct, even if the template translates fixed parts. You can autotranslate the provided descriptions for example with {{LangSwitch}}:
{{Otheruses
| {{LangSwitch |en=the insect group |fr=le groupe d’insectes }}
| {{LangSwitch |en=the automobile |fr=l’automobile }} | Volkswagen Beetle
}}
Gives:
Linking to disambiguation categories or files
You also may direct to categories (a leading ":", normally needed for links to categories or files may be specified, but it is now detected and supplied automatically):
{{Otheruses
| {{LangSwitch |en=wells for water supply |fr=les puits fournissant de l’eau }}
| {{LangSwitch |en=the town in England |fr=la petite ville en Angleterre }} | Category:Wells
}}
Gives:
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | Description of this page | empty | optional | |
2 | Description of the other page | other uses | optional | |
3 | Name (link) of the other page | {{PAGENAME}} (disambiguation) | optional | |
Additional information
The template is intended to be used in the following namespaces: all namespaces
The template is intended to be used by the following user groups: all users
Placement: At the top of the page
Localization
To add your language to the list of languages supported by this template, please edit the template and add a row to the "{{LangSwitch|}}" construct. It takes the form "|xx= Your translation " (xx being the code of your language)