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>Michael Bednarek
(attempt to have clearer examples; extend documentation for language links & italics (see talk page).)
Line 3: Line 3:
  
 
=== 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.
+
{{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 the template {{Tl|Noitalic}} is used.
 
 
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 ==
 
== Example ==
 
+
{| class=wikitable
;Edit
+
!width=50%|Wikicode!!width=50%|Resulting text
* <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>.
+
!colspan=2|Italics, language link
* Albert the Bear (<code><nowiki>{{Lang-de|Albrecht der Bär|links=no}}</nowiki></code>)
+
|-
 
+
|<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>
;Resulting text
+
|The Seafarers of Catan ({{lang-de|Die Seefahrer von Catan}}) is an expansion of the board game ''[[The Settlers of Catan]]''.
*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]]''.
+
!colspan=2|Italics, no language link
* Albert the Bear ({{Lang-de|Albrecht der Bär|links=no}})
+
|-
 +
|<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|{{Noitalic|Thüringen}}|links=no}}).</nowiki></code>
 +
|Weimar is located in the federal state of Thuringia ({{lang-de|{{Noitalic|Thüringen}}|links=no}}).
 +
|}
  
 
=== See also ===
 
=== See also ===
* {{tl|de icon}}
+
* {{Tl|de icon}}
 
* {{Tl|Lang}}
 
* {{Tl|Lang}}
  
Line 29: Line 35:
 
[[Category:Germanic multilingual support templates]]
 
[[Category:Germanic multilingual support templates]]
 
[[Category:Lang-x templates]]
 
[[Category:Lang-x templates]]
 
 
</includeonly>
 
</includeonly>

Revision as of 10:39, 20 August 2013

Usage

{{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 the template {{Noitalic}} is used.

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

Example

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|{{Noitalic|Thüringen}}|links=no}}). Weimar is located in the federal state of Thuringia (German: Thüringen).

See also