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

From blackwiki
Jump to navigation Jump to search
imported>DixonDBot
m (Migrating 7 interwiki links, now provided by Wikidata on d:Q5901420)
imported>Trappist the monk
m (sortkey;)
 
(13 intermediate revisions by 10 users not shown)
Line 1: Line 1:
 +
{{lowercase}}
 
{{Documentation subpage}}
 
{{Documentation subpage}}
 +
{{lua|Module:lang}}
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE -->
  
 
=== Usage ===
 
=== Usage ===
{{tl|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, that being the ''German language'' term or phrase.
+
{{#invoke:Lang/documentor tool|lang_xx_settings|template={{ROOTPAGENAME}}}}
 
+
{{tl|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 {{Tl|Noitalic}}.
It should generally be placed after the English translation of the German term or phrase, and contain the German term or phrase.
 
  
 
The parameter {{Para|links|no}} will prevent the language name from being linked.
 
The parameter {{Para|links|no}} will prevent the language name from being linked.
  
== Example ==
+
The parameter {{Para|lit|literal translation}} renders a literal translation of the term within single quotes.
 
 
;Edit
 
* <nowiki>Weimar is located in the federal state of Thuringia ({{lang-de|Thüringen}})</nowiki>
 
* <nowiki>The Seafarers of Catan ({{lang-de|Die Seefahrer von Catan}}) is an expansion of the board game ''[[The Settlers of Catan]]''</nowiki>.
 
* Albert the Bear (<code><nowiki>{{Lang-de|Albrecht der Bär|links=no}}</nowiki></code>)
 
 
 
;Resulting text
 
*Weimar is located in the federal state of Thuringia ({{lang-de|Thüringen}})
 
*The Seafarers of Catan ({{lang-de|Die Seefahrer von Catan}}) is an expansion of the board game ''[[The Settlers of Catan]]''.
 
* Albert the Bear ({{Lang-de|Albrecht der Bär|links=no}})
 
  
=== See also ===
+
== Parameters ==
* {{tl|de icon}}
+
{{#lst:Template:Lang-x/doc/parameters|lang_xx_parameters}}
* {{Tl|Lang}}
+
== Examples ==
 +
{| class=wikitable
 +
!width=50%|Wikicode!!width=50%|Resulting text
 +
|-
 +
!colspan=2|Italics, language link
 +
|-
 +
|<code><nowiki>''The Seafarers of Catan'' ({{lang-de|Die Seefahrer von Catan}}) is an expansion of the board game ''[[The Settlers of Catan]]''.</nowiki></code>
 +
|''The Seafarers of Catan'' ({{lang-de|Die Seefahrer von Catan}}) is an expansion of the board game ''[[The Settlers of Catan]]''.
 +
|-
 +
!colspan=2|Italics, no language link
 +
|-
 +
|<code><nowiki>Albert the Bear ({{lang-de|Albrecht der Bär|links=no}})</nowiki></code>
 +
|Albert the Bear ({{lang-de|Albrecht der Bär|links=no}})
 +
|-
 +
!colspan=2|No italics, no language link
 +
|-
 +
|<code><nowiki>Weimar is located in the federal state of Thuringia ({{lang-de|Thüringen|italic=no|links=no}}).</nowiki></code>
 +
|Weimar is located in the federal state of Thuringia ({{lang-de|Thüringen|italic=no|links=no}}).
 +
|-
 +
!colspan=2|Italics, no language link, with a literal translation
 +
|-
 +
|<code><nowiki>Slug, ({{lang-de|Nacktschnecke|links=no|lit=Naked Snail}}).</nowiki></code>
 +
|Slug, ({{lang-de|Nacktschnecke|links=no|lit=Naked Snail}}).
 +
|}
  
<includeonly>
+
== See also ==
 +
* {{Tl|lang}}<includeonly>{{Sandbox other||
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
<!-- CATEGORIES AND INTERWIKIS HERE, THANKS -->
 
[[Category:Germanic multilingual support templates]]
 
[[Category:Germanic multilingual support templates]]
[[Category:Lang-x templates]]
+
[[Category:Lang-x templates|de]]
 
+
}}</includeonly>
</includeonly>
 

Latest revision as of 23:58, 30 August 2020

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