Difference between revisions of "Template:Lang-de/doc"

From blackwiki
Jump to navigation Jump to search
imported>Trappist the monk
m (lua doc;)
imported>Daviddwd
(Template Data)
Line 46: Line 46:
 
[[Category:Lang-x templates]]
 
[[Category:Lang-x templates]]
 
</includeonly>
 
</includeonly>
 +
<templatedata>
 +
{
 +
"params": {
 +
"1": {
 +
"label": "German text",
 +
"description": "text in the German language",
 +
"example": "Jahr",
 +
"type": "line",
 +
"suggested": true
 +
},
 +
"label": {
 +
"label": "Label",
 +
"description": "If \"none\", suppresses \"German: \"",
 +
"example": "none",
 +
"type": "string"
 +
},
 +
"link": {
 +
"label": "Link \"German\"?",
 +
"description": "If 'no', does not link the article [[German]]. Overridden if \"labels\" = \"none\".",
 +
"example": "no",
 +
"type": "string"
 +
}
 +
},
 +
"description": "Marks text in the German language.",
 +
"format": "inline"
 +
}
 +
</templatedata>

Revision as of 19:27, 19 January 2019

Usage

settings
code de
style: italic

{{lang-de}} is a template usually used to indicate to readers that the previous term or phrase is translated from a foreign language; one parameter is necessary: the German language term or phrase. It should generally be placed after the English translation of the German term or phrase. That German term is shown in italics unless it's wrapped inside {{Noitalic}}.

The parameter |links=no will prevent the language name from being linked.

The parameter |lit=literal translation renders a literal translation of the term within single quotes.

Parameters

{{#lst:Template:Lang-x/doc/parameters|lang_xx_parameters}}

Examples

Wikicode Resulting text
Italics, language link
''The Seafarers of Catan'' ({{lang-de|Die Seefahrer von Catan}}) is an expansion of the board game ''[[The Settlers of Catan]]''. The Seafarers of Catan (German: Die Seefahrer von Catan) is an expansion of the board game The Settlers of Catan.
Italics, no language link
Albert the Bear ({{lang-de|Albrecht der Bär|links=no}}) Albert the Bear (German: Albrecht der Bär)
No italics, no language link
Weimar is located in the federal state of Thuringia ({{lang-de|Thüringen|italic=no|links=no}}). Weimar is located in the federal state of Thuringia (German: Thüringen).
Italics, no language link, with a literal translation
Slug, ({{lang-de|Nacktschnecke|links=no|lit=Naked Snail}}). Slug, (German: Nacktschnecke, lit. 'Naked Snail').

See also

Marks text in the German language.

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
German text1

text in the German language

Example
Jahr
Linesuggested
Labellabel

If "none", suppresses "German: "

Example
none
Stringoptional
Link "German"?link

If 'no', does not link the article [[German]]. Overridden if "labels" = "none".

Example
no
Stringoptional