Difference between revisions of "Template:Multi-lang"

From Second Life Wiki
Jump to navigation Jump to search
m (article-lang-root isn't needed)
m (testing style fix)
Line 1: Line 1:
<includeonly><div style="white-space:normal;{{#ifeq:{{{1}}}}|||{{{1}}}">Other languages:{{#ifeq:{{#var:article-lang}}|spa||{{#ifeq:{{{spa}}}|*|[[../spa|Español]]||}}|}} {{#ifeq:{{#var:article-lang}}|deu||{{#ifeq:{{{deu}}}|*|[[../deu|Deutsch]]||}}|}} {{#ifeq:{{#var:article-lang}}|eng||{{#ifeq:{{{eng}}}|*|[[{{NAMESPACE}}:{{BASEPAGENAME}}|English]]||}}|}}</div></includeonly><noinclude>
<includeonly><div style="white-space:normal;{{#ifeq:{{{1}}}|||{{{1}}}|}}">Other languages:{{#ifeq:{{#var:article-lang}}|spa||{{#ifeq:{{{spa}}}|*|[[../spa|Español]]||}}|}} {{#ifeq:{{#var:article-lang}}|deu||{{#ifeq:{{{deu}}}|*|[[../deu|Deutsch]]||}}|}} {{#ifeq:{{#var:article-lang}}|eng||{{#ifeq:{{{eng}}}|*|[[{{NAMESPACE}}:{{BASEPAGENAME}}|English]]||}}|}}</div></includeonly><noinclude>
== Usage ==
=== No styling ===
<div style="font-size:125%"><code><pre><nowiki>{{#vardefine:article-lang|spa}}
{{:User:SignpostMarv Martin/Sandbox/Template:multi-lang
|spa=*
|deu=*
|eng=*
|}}</nowiki></pre></code></div>
Produces:
{{#vardefine:article-lang|spa}}
{{:User:SignpostMarv Martin/Sandbox/Template:multi-lang
|spa=*
|deu=*
|eng=*
|}}
 
=== With styling ===
{{#vardefine:article-lang|spa}}
{{#vardefine:article-lang|spa}}
{{:User:SignpostMarv Martin/Sandbox/Template:multi-lang
{{:User:SignpostMarv Martin/Sandbox/Template:multi-lang
|border:1px dashed #f00;
|spa=*
|spa=*
|deu=*
|deu=*
|eng=*
|eng=*
|}}
|}}
</noinclude>
</noinclude>

Revision as of 20:00, 13 February 2007

Usage

No styling

{{#vardefine:article-lang|spa}}
{{:User:SignpostMarv Martin/Sandbox/Template:multi-lang
|spa=*
|deu=*
|eng=*
|}}

Produces:

Other languages: [[../deu|Deutsch]] English

With styling

Other languages: [[../deu|Deutsch]] English