Template:By: Difference between revisions
More actions
+sl |
Improve Persian/Farsi translation |
||
| (5 intermediate revisions by 4 users not shown) | |||
| Line 9: | Line 9: | ||
| bn = {{#if:{{{1|}}}|কর্তৃক|{{#if:{{{mc|}}}|অনুযায়ী|কর্তৃক}}}} | | bn = {{#if:{{{1|}}}|কর্তৃক|{{#if:{{{mc|}}}|অনুযায়ী|কর্তৃক}}}} | ||
| ca = {{#if:{{{1|}}}|de|per}} | | ca = {{#if:{{{1|}}}|de|per}} | ||
| cs = od | | cs = {{#if:{{{1|}}}|od|{{#if:{{{mc|}}}|podle|od}}}} | ||
| da = fra | | da = fra | ||
| de = {{#if:{{{1|}}}|von|{{#if:{{{mc|}}}|nach|durch}}}} | | de = {{#if:{{{1|}}}|von|{{#if:{{{mc|}}}|nach|durch}}}} | ||
| en = by | | en = by | ||
| eo = de | | eo = {{#if:{{{1|}}}|de|{{#if:{{{mc|}}}|laŭ|per}}}} | ||
| es = {{#if:{{{1|}}}|de|por}} | | es = {{#if:{{{1|}}}|de|por}} | ||
| et = {{#if:{{{1|}}}|autor}} | | et = {{#if:{{{1|}}}|autor}} | ||
| fa = | | fa = از | ||
| fr = {{#if:{{{1|}}}|de|par}} | | fr = {{#if:{{{1|}}}|de|par}} | ||
| gl = de | | gl = de | ||
| Line 24: | Line 24: | ||
| io = de | | io = de | ||
| it = di | | it = di | ||
| ja = 次のものによる: | | ja = {{#if:{{{mc|}}}|別の|次のものによる:}} | ||
| ko = 다음에 의함: | | ko = 다음에 의함: | ||
| mk = од | | mk = од | ||
| no = av | | no = av | ||
| nl = {{#if:{{{1|}}}|van|{{#if:{{{mc|}}}|naar|door}}}} | | nl = {{#if:{{{1|}}}|van|{{#if:{{{mc|}}}|naar|door}}}} | ||
| pl = przez | | pl = {{#if:{{{1|}}}|przez|{{#if:{{{mc|}}}|według|przez}}}} | ||
| pt = {{#if:{{{1|}}}|de|por}} | | pt = {{#if:{{{1|}}}|de|por}} | ||
| ro = de | | ro = de | ||
Latest revision as of 10:53, 20 August 2025
by
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 displaying 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.
Link or textual
Normally the argument of the By template is a user name, and a link to the user page occurs using Template:U.
Sometimes this automatism is not desired; when e.g. no user page exists and the link should be e.g. to the user talk page.
In such cases the complete link can be coded as the argument, e.g. |by={{U|user}}, |by={{Ut|user}}, |by={{Uw|user}}, |by={{Uwt|user}}.
The first character either "&" (Unicode), "<" (e.g. a table as from {{Creator}}), "[" or "{" (a link) will be recognized by the template,
and the parameter is passed without treating it as an argument for the Template:U.
Instead of a single user id, a userlist can specify a number of users; for formatting options, see Template:Userlist.
Another possibility can be that flat text should be used as the argument. This can be signalled to the template with special prefixes,
as either one of
the doubles &&, ((, .., << or the pairs (), <>, [], {}.
Such two-character prefixes are removed from the argument before it is passed.
- Nolink examples:
- {{By|&&flattext}} → by flattext
- {{By|((flattext}} → by flattext
- {{By|..flattext}} → by flattext ".." is easy to type on most keyboards
- {{By|<<flattext}} → by flattext "<<" is easy to type on German-layout keyboards
- {{By|<>flattext}} → by flattext
- {{By|[]flattext}} → by flattext "[]" is easy to type on American-layout keyboards
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)