Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:By: Difference between revisions

Template page
m +parm
Improve Persian/Farsi translation
 
(44 intermediate revisions by 20 users not shown)
Line 1: Line 1:
{{#if:{{{1|}}}| }}{{LangSwitch| {{#if:{{{lang|}}}|lang|}} = {{{lang|}}}
{{#if:{{{1|}}}|{{#switch:ns|{{{2}}}|{{{3}}}=| }}}}{{LangSwitch
| ar = بواسطة
| {{#if:{{{lang|}}}|lang|}} = {{{lang|}}}
| de = durch
| bn = {{#if:{{{1|}}}|{{#switch:{{padleft:|1|{{{1}}}}}|&|<|[|{={{{1}}}|{{u|{{{1}}}}}}} }}
| en = by
| default = ~
| eo = de
}}{{LangSwitch|lang={{{lang|}}}
| es = por
| ar = بواسطة
| fa = توسط
| be-tarask = ад
| fr = par
| bg = из
| it = di
| bn = {{#if:{{{1|}}}|কর্তৃক|{{#if:{{{mc|}}}|অনুযায়ী|কর্তৃক}}}}
| ja = 〜によって
| ca = {{#if:{{{1|}}}|de|per}}
| no = av
| cs = {{#if:{{{1|}}}|od|{{#if:{{{mc|}}}|podle|od}}}}
| nl = door
| da = fra
| pl = przez
| de = {{#if:{{{1|}}}|von|{{#if:{{{mc|}}}|nach|durch}}}}
| pt = de
| en = by
| ru = от
| eo = {{#if:{{{1|}}}|de|{{#if:{{{mc|}}}|laŭ|per}}}}
| sv = av
| es = {{#if:{{{1|}}}|de|por}}
| ta = மூலம்
| et = {{#if:{{{1|}}}|autor}}
| uk = по
| fa = از
| zh = 通过
| fr = {{#if:{{{1|}}}|de|par}}
| default
| gl = de
}}{{#if:{{{1|}}}|&nbsp;{{#switch:{{padleft:|1|{{{1}}}}}|&#38;|&#60;|&#91;|&#123;={{{1}}}|{{u|{{{1}}}}}}}}}{{#switch:{{{2|{{{1}}}}}}|br|nl=<br>}}<noinclude>
| he = על ידי
| ia = de
| id = oleh
| io = de
| it = di
| ja = {{#if:{{{mc|}}}|別の|次のものによる:}}
| ko = 다음에 의함:
| mk = од
| no = av
| nl = {{#if:{{{1|}}}|van|{{#if:{{{mc|}}}|naar|door}}}}
| pl = {{#if:{{{1|}}}|przez|{{#if:{{{mc|}}}|według|przez}}}}
| pt = {{#if:{{{1|}}}|de|por}}
| ro = de
| ru = от
| sk = od
| sl = od
| sv = av
| ta = மூலம்
| th = โดย
| uk = від
|vec = de
| zh-hans = 通过
| zh-hant = 通過
}}{{LangSwitch
| lang = {{{lang|}}}
| bn = ~
| default = {{#if:{{{1|}}}|&nbsp;{{#switch:{{padleft:|1|{{{1}}}}}|&|(|.|<|[|&#123;={{#switch:{{padleft:|2|{{{1}}}}}<!--
  -->|&&|((|&#40;&#41;|&#46;&#46;|&#60;&#60;|&#60;&#62;|&#91;&#93;|&#123;&#125;={{#invoke:Color2dec|remprf|{{{1}}}}}<!--
-->|{{{1}}}}}|{{U{{#if:{{{m|{{{u|}}}}}}|{{{m|{{{u}}}}}}<!--
  -->|{{#switch:c|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}=c<!--
  -->|{{#switch:t|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}=t<!--
    -->|{{#switch:w|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}=w<!--
    -->|{{#switch:wt|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}=wt}}}}}}}}}}|{{{1}}}<!--
-->|2={{#switch:+|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}=+|{{#switch:-|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}=-}}}}}}}}<!--
-->|~}}}}{{#switch:{{{2|{{{1}}}}}}|br|nl=<br>}}<noinclude>
{{documentation}}
{{documentation}}
</noinclude>
</noinclude>

Latest revision as of 10:53, 20 August 2025

by

Template documentation[ view · edit · history · purge ]
This documentation is transcluded from Template:By/doc.

Returns the word "by" in the language setting of the user's interface.

Usage

{{By}}

Template parameters

ParameterDescriptionDefaultStatus
1This optional parameter can be used to specify a user.

The value of that parameter is used as an argument for the template U
except when it starts with either "&", "<", "[" or "{" — it will be used as-it-is
e.g. wikilinks; other user name templates like {{Ut}}, {{Uw}}; or &#8202;
whith userlist the correctly translated conjunction will be displayed.


This option is useful for other templates displaying file names, e.g.

emptyoptional
2nl or br
to force a final line feed; otherwise same line continuation may follow
nothingoptional
3ns"no space" - suppress leading space
may also set as the 2nd parameter
spaceoptional
4with + or - the namespace user: is written
may also set as the 2nd or 3rd parameter
emptyoptional
mc=set to mc=y if used for #Meta categoriesemptyoptional

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.

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 0 ".." is easy to type on most keyboards
  • {{By|<<flattext}} →  by flattext 0 "<<" is easy to type on German-layout keyboards
  • {{By|<>flattext}} →  by flattext
  • {{By|[]flattext}} →  by flattext 0 "[]" 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.

Deutsch: Je nach der Bedeutung muss "by" in von (jemandem), durch (etwas bzw. jemanden) oder nach (einem Kriterium) übersetzt werden.

Die Vorlage differenziert in

  • "durch" (Standard)
  • "von" (wenn ein Benutzername folgt)
  • "nach" (wenn der Parameter mc= [für "Metakategorie"] gesetzt ist)
Cookies help us deliver our services. By using our services, you agree to our use of cookies.