Difference between revisions of "Template:Languages/Lang"
From Veloopti Help
(Attempt to simplify Template:Languages) |
m (Attempt to allow placement on separate lines without blank lines appearing...) |
||
Line 1: | Line 1: | ||
− | <onlyinclude>{{#ifexist: {{{1|{{NAMESPACE}}:{{BASEPAGENAME}}}}}/{{{2}}} | <span lang="{{{2|unknown}}}">[[{{{1|{{NAMESPACE}}:{{BASEPAGENAME}}}}}/{{{2}}}|{{#language:{{{2}}}}}]]</span> • }}</onlyinclude> | + | <onlyinclude>{{#ifexist: {{{1|{{NAMESPACE}}:{{BASEPAGENAME}}}}}/{{{2}}} | <span lang="{{{2|unknown}}}">[[{{{1|{{NAMESPACE}}:{{BASEPAGENAME}}}}}/{{{2}}}|{{#language:{{{2}}}}}]]</span> • |<span></span>}}</onlyinclude> |
== Usage == | == Usage == | ||
Revision as of 16:44, 2 December 2006
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:
- 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.
This template should not be used anywhere except in the Languages template.