Template:Lang-x/doc: Difference between revisions

[checked revision][checked revision]
Content deleted Content added
No edit summary
No edit summary
 
(3 intermediate revisions by the same user not shown)
Line 3:
{{No subst}}
<noinclude>{{Lua|Module:Lang/documentor tool}}</noinclude>
{{Commons Import}}
{{#if:{{#invoke:Lang/documentor tool|uses_module|template={{ROOTPAGENAME}}}}|{{Lua|Module:Lang}}}}
 
== Usage ==
{{#invoke:Lang/documentor tool|lang_xx_settings|template={{ROOTPAGENAME}}}}
The language template {{Tlf|'''{{lcfirst:{{BASEPAGENAME}}}}'''|nolink=yes}} identifies {{#ifeq:{{FULLPAGENAME}}|Template:Lang-x/doc|foreign language|Wikipedia:{{#invoke:Lang|name_from_tag|link=yes|{{#invoke:String|sub|{{ROOTPAGENAME}}|6}}}}}} text. The term or phrase is the only mandatory parameter. The text is formatted according to recommendations in {{section link|Wikipedia:Manual of Style/Text formatting#Foreign terms}}; italics for languages that use the [[Wikipedia:Latin alphabet|Latin alphabet]]<!-- Not the same thing as Romance languages and Latinate languages-->, normal for others.
 
The template should generally be placed after the English translation of the foreign term or phrase.
Line 13 ⟶ 14:
The parameter <!--Not implemented in all templates yet! {{Para|link|no}} (or {{Para|links|no}})--> {{Para|links|no}} prevents the language name from being linked.
 
The parameter {{Para|translit}} allows for a [[Wikipedia:Romanization|Romanization]] to be identified. The templates that have this parameter are <span class="plainlinks">[//en.wikipedia.org/w/index.php?title=Special:WhatLinksHere/Template:Language_with_name_and_transliteration&namespace=10&limit=500&hidelinks=1 listed here]</span>. (This parameter is not supported by <code>lang-{{var|x}}</code> templates for languages that are already written in Latin script.)
 
The parameter {{Para|lit}} enables a literal translation (in English) to be given. It [[Wikipedia:Template talk:Language with name#Suggestion: An optional literal translation|is being rolled out]] to these templates and so may be available for {{Tlf|{{lcfirst:{{BASEPAGENAME}}}}|nolink=yes}}.
{{#if:{{#invoke:Lang/documentor tool|uses_module|template={{ROOTPAGENAME}}}}|
== Parameters ==
Line 26 ⟶ 27:
'''Edit'''
* Weimar is located in the federal state of Thuringia (<code><nowiki>{{Lang-de|Thüringen}}</nowiki></code>).
* The Seafarers of Catan (<code><nowiki>{{Lang-de|Die Seefahrer von Catan}}</nowiki></code>) is an expansion of the board game ''[[Wikipedia:The Settlers of Catan|The Settlers of Catan]]''.
* Albert the Bear (<code><nowiki>{{Lang-de|Albrecht der Bär|links=no}}</nowiki></code>)
*''All Quiet on the Western Front'' (<code><nowiki>{{Lang-de|Im Westen nichts Neues|lit=In the West Nothing New}}</nowiki></code>) is a novel by [[Wikipedia:Erich Maria Remarque|Erich Maria Remarque]].
 
'''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 ''[[Wikipedia:The Settlers of Catan|The Settlers of Catan]]''.
* Albert the Bear ({{Lang-de|Albrecht der Bär|links=no}})
* ''All Quiet on the Western Front'' ({{Lang-de|Im Westen nichts Neues|lit=In the West Nothing New}}) is a novel by [[Wikipedia:Erich Maria Remarque|Erich Maria Remarque]].
{{#if:{{{category|}}}{{{tracking-category|}}}|
== Category ==
Line 99 ⟶ 100:
* {{Tl|Lang}}
* {{Tl|Language with name/for}}
* [[Wikipedia:List of ISO 639-1 codes|List of ISO 639-1 codes]] (language codes)
 
<includeonly>{{Sandbox other||