Difference between revisions of "Template:Multi-lang"

From Second Life Wiki
Jump to navigation Jump to search
m (one bug goes away and another crops up...)
m (trying to work around the relative linking thing)
Line 1: Line 1:
<includeonly><div style="white-space:normal;{{#ifeq:{{{1}}}|||{{{1}}}|}}">Other languages:{{#ifeq:{{#var:article-lang}}|spa||{{#ifeq:{{{spa}}}|*|[[{{NAMESPACE}}:{{BASEPAGENAME}}|{{ISO 639-3/native|spa}}]]||}}|}} {{#ifeq:{{#var:article-lang}}|deu||{{#ifeq:{{{deu}}}|*|[[{{NAMESPACE}}:{{BASEPAGENAME}}|{{ISO 639-3/native|deu}}]]||}}|}} {{#ifeq:{{#var:article-lang}}|eng||{{#ifeq:{{{eng}}}|*|[[{{NAMESPACE}}:{{BASEPAGENAME}}|{{ISO 639-3/native|eng}}]]||}}|}}</div></includeonly><noinclude>
<includeonly><div style="white-space:normal;{{#ifeq:{{{1}}}|||{{{1}}}|}}">Other languages:{{#ifeq:{{#var:article-lang}}|spa||{{#ifeq:{{{spa}}}|*|[[{{fullurl:{{NAMESPACE}}:{{BASEPAGENAME}}}} {{ISO 639-3/native|spa}}]||}}|}} {{#ifeq:{{#var:article-lang}}|deu||{{#ifeq:{{{deu}}}|*|[{{fullurl:{{NAMESPACE}}:{{BASEPAGENAME}}}} {{ISO 639-3/native|deu}}]||}}|}} {{#ifeq:{{#var:article-lang}}|eng||{{#ifeq:{{{eng}}}|*|[{{fullurl:{{NAMESPACE}}:{{BASEPAGENAME}}}} {{ISO 639-3/native|eng}}]||}}|}}</div></includeonly><noinclude>
== Usage ==
== Usage ==
=== No styling ===
=== No styling ===

Revision as of 20:18, 13 February 2007

Usage

No styling

{{#vardefine:article-lang|spa}}
{{multi-lang
|spa=*
|deu=*
|eng=*
|}}

Produces:

Other languages:{{#ifeq:spa|spa||{{#ifeq:*|*|[Español||}}|}} Deutsch English

With styling

{{#vardefine:article-lang|spa}}
{{multi-lang
|border:1px dashed #f00;
|spa=*
|deu=*
|eng=*
|}}

Produces

Other languages:{{#ifeq:spa|spa||{{#ifeq:*|*|[Español||}}|}} Deutsch English