Template:By/doc: Difference between revisions
More actions
m +link |
m +parm |
||
| Line 46: | Line 46: | ||
|1def = | |1def = | ||
|1stat=optional- | |1stat=optional- | ||
|2 = nl</code> ''or'' <code>br | |2 = 2 | ||
|2d = <code>nl</code> ''or'' <code>br</code><br>to force a final line feed; otherwise same line continuation ''may'' follow | |||
|2def = nothing | |2def = nothing | ||
|2stat=optional- | |2stat=optional- | ||
|3 = | |3 = 3 | ||
|3d = "no space" - suppress leading space | |3d = <code>ns</code>"no space" - suppress leading space<br>may also set as the 2{{exp|nd}} parameter | ||
|3def = space | |3def = space | ||
|3stat=optional- | |3stat=optional- | ||
|4 = | |4 = 4 | ||
|4d = | |4d = with <code>+</code> ''or'' <code>-</code> the namespace <tt>user:</tt> is written<br>may also set as the 2{{exp|nd}} or 3{{exp|rd}} parameter | ||
|4stat=optional- | |4stat=optional- | ||
|5 = mc= | |||
|5d = set to <code>mc=y</code> if used for [[#Meta categories]] | |||
|5stat=optional- | |||
}} | }} | ||
See also the explanations in the [[Template talk:I18n/by|Comparison table]]. | See also the explanations in the [[Template talk:I18n/by|Comparison table]]. | ||
Revision as of 18:07, 3 June 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 | |
2 | nl or brto force a final line feed; otherwise same line continuation may follow | nothing | optional | |
3 | ns"no space" - suppress leading spacemay also set as the 2nd parameter | space | optional | |
4 | with + or - the namespace user: is writtenmay also set as the 2nd or 3rd parameter | 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 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)