VOOZH about

URL: https://commons.wikimedia.org/wiki/Template:By/doc

⇱ Template:By/doc - Wikimedia Commons


Jump to content
From Wikimedia Commons, the free media repository

This subpage contains documentation, categories, or other content that is not part of the template.
To view the template page itself, see Template:By.


العربية  asturianu  Boarisch  беларуская (тарашкевіца)  български  বাংলা  català  čeština  dansk  Deutsch  Zazaki  Ελληνικά  English  Esperanto  español  eesti  euskara  فارسی  suomi  français  galego  עברית  हिन्दी  hrvatski  magyar  Bahasa Indonesia  italiano  日本語  ქართული  한국어  кыргызча  Lëtzebuergesch  македонски  മലയാളം  ဘာသာမန်  Bahasa Melayu  Mirandés  မြန်မာဘာသာ  norsk bokmål  Plattdüütsch  Nederlands  norsk  polski  português  português do Brasil  русский  sicilianu  Scots  slovenščina  српски / srpski  svenska  ไทย  Türkçe  українська  اردو  oʻzbekcha / ўзбекча  Tiếng Việt  中文  中文(简体)  中文(繁體)  +/−

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.

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 0 "" is easy to type on most keyboards
  • →  by flattext 0 "" is easy to type on German-layout keyboards
  • →  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)