Difference between revisions of "Template:CH"

From blackwiki
Jump to navigation Jump to search
imported>ZH8000
m (correct ISO number)
imported>ZH8000
(Docu template)
Line 1: Line 1:
 
<includeonly><span style="display:none;">{{{1|}}}</span>[[File:Wappen {{CH/canton|{{{1|}}}|de<!-- All cantonal flag files follow a German naming convention! -->}} matt.svg|20px|]]  [[Canton of {{CH/canton|{{{1|}}}<!-- in order to get a direct link to the article, use the default for the third argument -->}}|{{CH/canton|{{{1|}}}|{{{2|en}}}}}]]
 
<includeonly><span style="display:none;">{{{1|}}}</span>[[File:Wappen {{CH/canton|{{{1|}}}|de<!-- All cantonal flag files follow a German naming convention! -->}} matt.svg|20px|]]  [[Canton of {{CH/canton|{{{1|}}}<!-- in order to get a direct link to the article, use the default for the third argument -->}}|{{CH/canton|{{{1|}}}|{{{2|en}}}}}]]
</includeonly><noinclude>
+
</includeonly>
  
Convert cantonal code to coat of arms plus link:
+
<noinclude>
 
+
{{Documentation}}
Use <code><nowiki>{{CH|LU}}</nowiki></code> to get: {{CH|LU}}
+
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
 
 
Use <code><nowiki>{{CH|LU|<language: ISO 639-1:2002, optional>}}</nowiki></code> to get the spelling in a different language, here Italian <code><nowiki>{{CH|LU|it}}</nowiki></code>: {{CH|LU|it}}
 
 
 
Third argument is optional. Valid third arguments currently are, either, <code>de</code>, <code>fr</code>, <code>it</code>, <code>rm</code>, or <code>en</code>; default is <code>en</code>.
 
 
 
 
 
<code>lo</code> for local primary spelling is also a valid third argument, for example:
 
 
 
*use <code><nowiki>{{CH|LU|lo}}</nowiki></code> to get {{CH|LU|lo}}
 
*use <code><nowiki>{{CH|GE|lo}}</nowiki></code> to get {{CH|GE|lo}}
 
*use <code><nowiki>{{CH|ZH|lo}}</nowiki></code> to get {{CH|ZH|lo}}
 
*use <code><nowiki>{{CH|GR|lo}}</nowiki></code> to get {{CH|GR|lo}}
 
*use <code><nowiki>{{CH|GR|rm}}</nowiki></code> to get {{CH|GR|rm}}
 
 
 
;See also
 
*[[Cantons of Switzerland]]
 
*{{tl|CHE}}
 
 
 
[[Category:Switzerland templates]]
 
 
</noinclude>
 
</noinclude>

Revision as of 10:35, 10 April 2018


50px Template documentation[view] [edit] [history] [purge]

Usage

Convert cantonal code to coat of arms plus link:

Use {{CH|LU}} to get: LUFile:Wappen Luzern matt.svg Lucerne



Use {{CH|LU|<language: ISO 639-1:2002, optional>}} to get the spelling in a different language, here Italian {{CH|LU|it}}: LUFile:Wappen Luzern matt.svg Lucerna



Third argument is optional. Valid third arguments currently are, either, de, fr, it, rm, or en; default is en.


lo for local primary spelling is also a valid third argument, for example:







See also