Template:By/doc: Difference between revisions
More actions
m +parm |
m +link |
||
| Line 12: | Line 12: | ||
|shorthand = | |shorthand = | ||
|setscats = | |setscats = | ||
|seealso =Template:{{T|I18n/by}} | |seealso =Template:{{T|I18n/by}} and [[Template talk:I18n/by|Comparison table]] | ||
|type = | |type = | ||
|i18n-desc = | |i18n-desc = | ||
| Line 21: | Line 21: | ||
|print = | |print = | ||
|1 = 1 | |1 = 1 | ||
|1d = < | |1d = <span style="font-size:larger">This '''optional''' parameter can be used to specify a user.</span><br> | ||
The value of that parameter is used as an argument for the template {{T0|U}}<br> | The value of that parameter is used as an argument for the template {{T0|U}}<br> | ||
''except'' when it starts with either "&", "<", "[" or "{" — it will be used as-it-is<br> | ''except'' when it starts with either "&", "<", "[" or "{" — it will be used as-it-is<br> | ||
e.g. wikilinks; | e.g. wikilinks; other user name templates like {{t|Ut}}, {{T|Uw}}; or <tt>&#8202;</tt> | ||
---- | ---- | ||
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|Attrib}} | *{{t2|Attrib}} | ||
| Line 40: | Line 40: | ||
|1def = | |1def = | ||
|1stat=optional- | |1stat=optional- | ||
|2 | |2 = nl</code> ''or'' <code>br | ||
|2d | |2d = to force a final line feed; otherwise same line continuation ''may'' follow | ||
|2stat=optional- | |2stat=optional- | ||
}} | }} | ||
Revision as of 07:29, 21 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 | |
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)