Difference between revisions of "Template:Languages/Lang"

From CTWUG Wiki
Jump to: navigation, search
m (Cat)
 
(Usage)
 
(One intermediate revision by one other user not shown)
Line 3: Line 3:
 
''This sub-template doesn't display properly when not included.  Please see [[Template:Languages]] for the complete version.''
 
''This sub-template doesn't display properly when not included.  Please see [[Template:Languages]] for the complete version.''
  
== Usage ==
+
2 High Sites
  
This template is designed to simplify [[Template:Languages]], by allowing a simpler syntax for adding new languages. Each language is included by calling this template with the following parameters:
+
  2.1 TFyre
 
+
  2.2 Ironman
* '''Language code''' (e.g. fr)
+
  2.3 Wetkit
* (optional) '''Page name''' - if not supplied the page is automatically worked out based on where the language template is included.
+
  2.4 Landyman
 
+
  2.5 Dribbel
This template should not be used anywhere except in the Languages template.
+
  2.6 Saturn-Kuilsrivier
[[Category:Language templates]]
+
  2.7 Tc_Drum
/noinclude
+
  2.8 Niemies

Latest revision as of 19:43, 18 June 2012

includeonly{{#ifexist: {{#if: | {{{2}}} | {{#if: Template | Template:}}Languages/Lang}}/{{{1}}} | nbsp;bull;nbsp;span lang={{{1}}}{{#if: |[[{{{2}}}/{{{1}}}|{{{1}}}]]| [[:Template:Languages/Lang/{{{1}}}|{{{1}}}]]}}/span|span/span}}/includeonlynoinclude

Template

This sub-template doesn't display properly when not included. Please see Template:Languages for the complete version.

2 High Sites

 2.1 TFyre
 2.2 Ironman
 2.3 Wetkit
 2.4 Landyman
 2.5 Dribbel
 2.6 Saturn-Kuilsrivier
 2.7 Tc_Drum
 2.8 Niemies