Difference between revisions of "Template:Languages/Lang"

From Second Life Wiki
Jump to navigation Jump to search
(Needed by Template:langauges)
 
m (Undo revision 866752 by Mako Nozaki (Talk))
 
(28 intermediate revisions by 7 users not shown)
Line 1: Line 1:
<includeonly>{{#ifexist: {{#if: {{{2|}}} | {{{2}}} | {{#if: {{NAMESPACE}} | {{NAMESPACE}}:}}{{BASEPAGENAME}}}}/{{{1}}} | &nbsp;&bull;&nbsp;<span lang="{{{1}}}">{{#if: {{{2|}}}|[[{{{2}}}/{{{1}}}|{{#language:{{{1}}}}}]]| [[:{{NAMESPACE}}:{{BASEPAGENAME}}/{{{1}}}|{{#language:{{{1}}}}}]]}}</span>|<span></span>}}</includeonly><noinclude>
<includeonly>{{#ifexist:{{{2}}}/{{{1}}}|[[{{{1}}}:{{{2}}}]]{{#ifeq:{{FULLPAGENAME}}|{{{2}}}|[[Category:Pages with translation/{{{1}}}]]}}|<span style="display:none;">{{#if:{{#var:lang}}||[[Template:Needs Translation{{#var:ml-cat}}/{{{1|}}}]][[Category:Needs Translation{{#var:ml-cat}}/{{{1|}}}]]}}</span>}}</includeonly><noinclude>
== Template ==
== Template ==
''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.''
Line 5: Line 5:
== Usage ==
== Usage ==


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:
This template is designed to be used exclusively with [[Template:Multi-lang]], it should never be included in a user page. The parameters are:


* '''Language code''' (e.g. fr)
* '''Language code''' (e.g. fr)
* (optional) '''Page name''' - if not supplied the page is automatically worked out based on where the language template is included.
* '''Page name'''
* '''Language name''' (e.g. Français)


This template should not be used anywhere except in the Languages template.
This template should not be used anywhere except in the Languages template.

Latest revision as of 02:47, 16 April 2010

Template

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

Usage

This template is designed to be used exclusively with Template:Multi-lang, it should never be included in a user page. The parameters are:

  • Language code (e.g. fr)
  • Page name
  • Language name (e.g. Français)

This template should not be used anywhere except in the Languages template.

Origin

This template is originally taken from the MediaWiki web site.