Template:By/doc: Difference between revisions
More actions
m expansion |
m +link |
||
| Line 13: | Line 13: | ||
|shorthand = | |shorthand = | ||
|setscats = | |setscats = | ||
|seealso =Template:{{T|I18n/by}} and [[Template talk:I18n/by|Comparison table]] | |seealso =Template:{{T|I18n/by}} and the [[Template talk:I18n/by|Comparison table]] | ||
|type = | |type = | ||
|i18n-desc = | |i18n-desc = | ||
| Line 29: | Line 29: | ||
This option is useful for other templates who display ''file names'', e.g.<tt> | This option is useful for other templates who display ''file names'', e.g.<tt> | ||
*{{t2|F}} | *{{t2|F}} | ||
*{{t2|Igen}} | |||
*{{t2|Attrib}} | *{{t2|Attrib}} | ||
*{{t2|Attribs}} | *{{t2|Attribs}} | ||
Revision as of 09:59, 17 February 2019
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 | nothing | optional | |
ns | "no space" - suppress leading space | space | 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 the 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)