Difference between revisions of "Template:Multi-lang"
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 | <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> |