Template:By/doc: Difference between revisions
More actions
m +link |
m +link |
||
| Line 2: | Line 2: | ||
|name =By | |name =By | ||
|desc =Returns the word "by" in the language setting of the user's interface. | |desc =Returns the word "by" in the language setting of the user's interface. | ||
|desc-fr =Ce modèle renvoie le mot "par" dans la langue de l'utilisateur. | |desc-fr =Ce modèle renvoie le mot "par" ou "de" dans la langue de l'utilisateur. | ||
|desc-de =Die Vorlage übersetzt in ''durch'', ''von'' oder ''nach'' wenn die Benutzersprache ''deutsch'' ist. | |||
|namespace =all | |namespace =all | ||
|usergroup =all | |usergroup =all | ||
| Line 29: | Line 30: | ||
*{{t2|F}} | *{{t2|F}} | ||
*{{t2|Attrib}} | *{{t2|Attrib}} | ||
*{{t2|Original}} | |||
*{{t2|Own based}} | *{{t2|Own based}} | ||
*{{t2|Derivative}} | *{{t2|Derivative}} | ||
| Line 43: | Line 45: | ||
|2d = to force a final line feed; otherwise same line continuation ''may'' follow | |2d = to force a final line feed; otherwise same line continuation ''may'' follow | ||
|2stat=optional- | |2stat=optional- | ||
|3 = mc= | |||
|3d = set to <code>mc=y</code> if used for [[#Meta categories]] | |||
|3stat=optional- | |||
}} | |||
See also the explanations in the [[Template talk:I18n/by|Comparison table]]. | |||
== Meta categories == | |||
It's a problem that the English "by" has different translation depending on the semantics. | |||
{{de|1=Je nach der Bedeutung muss "by" in '''von''' (jemandem), '''durch''' (jemanden) oder '''nach''' (einem Kriterium) übersetzt werden. | |||
Die Vorlage differenziert in | |||
* "durch" (Standard) | |||
* "von" (wenn ein Benutzername folgt) | |||
* "nach" (wenn der Parameter <code>mc=</code> [für "Metakategorie"] gesetzt ist) | |||
}} | }} | ||
Revision as of 11:54, 23 February 2018
Returns the word "by" in the language setting of the user's interface.
Usage
{{By}}
Template parameters
| Parameter | Description | Default | Status | |
|---|---|---|---|---|
1 | This optional parameter can be used to specify a user. The value of that parameter is used as an argument for the template U This option is useful for other templates who display file names, e.g.
| empty | optional | |
nl or br | to force a final line feed; otherwise same line continuation may follow | empty | optional | |
mc= | set to mc=y if used for #Meta categories | empty | 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
See also
Template:{{I18n/by}} and Comparison table
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)
See also the explanations in the Comparison table.
Meta categories
It's a problem that the English "by" has different translation depending on the semantics.
Die Vorlage differenziert in
- "durch" (Standard)
- "von" (wenn ein Benutzername folgt)
- "nach" (wenn der Parameter
mc=[für "Metakategorie"] gesetzt ist)