Template:Otheruses/doc: Difference between revisions
More actions
mNo edit summary |
mNo edit summary |
||
| Line 41: | Line 41: | ||
|placement=top | |placement=top | ||
|usage-notes= | |usage-notes= | ||
You | You can add several pairs (of description and link) for multiple other usages (currently up to 5 pairs). | ||
* Each provided description can be autotranslated using {{Tl|LangSwitch}}. | * Each provided description can be autotranslated using {{Tl|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”). | * 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 | ** For descriptions of the 2nd (or further) 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. | * 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. | ||
Revision as of 20:42, 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 can add several pairs (of description and link) for multiple other usages (currently up to 5 pairs).
- 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 further) 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)