Template:Doc/flag: Difference between revisions
Jump to navigation
Jump to search
(Make category only appear if the language page actually exists.) |
1416006136 (talk | contribs) (added language names after the flags) |
||
Line 1: | Line 1: | ||
<onlyinclude>{{#ifeq:{{uselang}}|{{{1|}}}|<span style="margin:1px; border:1px solid #AAA; border-radius:2px; padding:0 2px"><!-- | <onlyinclude>{{#ifeq:{{uselang}}|{{{1|}}}|<span style="margin:1px; border:1px solid #AAA; border-radius:2px; padding:0 2px"><!-- | ||
--><span style="user-select:none; position:relative; top:-1px"><!-- | --><span style="user-select:none; position:relative; top:-1px"><!-- | ||
-->{{Flag|{{{1|en}}}}}</span></span>{{#ifexist:{{{docpage|{{FULLPAGENAME}}{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}}|#default=/doc|User=/about}}}}}{{#switch:{{{1|}}}|en=|/{{{1|}}}}}|[[Category:{{{2|}}}]]}} | -->{{Flag|{{{1|en}}}}}{{#if:{{{showfullname|}}}| '''{{#language:{{{1|en}}}}}'''}}</span></span>{{#ifexist:{{{docpage|{{FULLPAGENAME}}{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}}|#default=/doc|User=/about}}}}}{{#switch:{{{1|}}}|en=|/{{{1|}}}}}|[[Category:{{{2|}}}]]}} | ||
| {{#if:{{{content{{#switch:{{{1|}}}|en=|/{{{1|}}}}}|}}} | | {{#if:{{{content{{#switch:{{{1|}}}|en=|/{{{1|}}}}}|}}} | ||
| <span style="margin:1px; border:1px solid #323232"><!-- | | <span style="margin:1px; border:1px solid #323232"><!-- | ||
--><span style="user-select:none; position:relative; top:-1px"><!-- | --><span style="user-select:none; position:relative; top:-1px"><!-- | ||
-->{{Flag|{{{1|en}}}|link={{fullurl:{{FULLPAGENAME}}|uselang={{{1|}}}}}}}</span></span> | -->{{Flag|{{{1|en}}}|link={{fullurl:{{FULLPAGENAME}}|uselang={{{1|}}}}}}}{{#if:{{{showfullname|}}}| '''{{#language:{{{1|en}}}}}'''}}</span></span> | ||
| {{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}}|#default=/doc|User=/about}}}}}{{#switch:{{{1|}}}|en=|/{{{1|}}}}}}} | | {{#if:{{PROTECTIONEXPIRY:edit|{{{docpage|{{FULLPAGENAME}}{{#switch:{{{pagespace|{{SUBJECTSPACE}}}}}|#default=/doc|User=/about}}}}}{{#switch:{{{1|}}}|en=|/{{{1|}}}}}}} | ||
| <span style="margin:1px; border:1px solid #323232"><!-- | | <span style="margin:1px; border:1px solid #323232"><!-- | ||
--><span style="user-select:none; position:relative; top:-1px"><!-- | --><span style="user-select:none; position:relative; top:-1px"><!-- | ||
-->{{Flag|{{{1|en}}}|link={{fullurl:{{FULLPAGENAME}}|uselang={{{1|}}}}}}}</span></span> | -->{{Flag|{{{1|en}}}|link={{fullurl:{{FULLPAGENAME}}|uselang={{{1|}}}}}}}{{#if:{{{showfullname|}}}| '''{{#language:{{{1|en}}}}}'''}}</span></span> | ||
}} | }} | ||
}} | }} | ||
}}</onlyinclude> | }}</onlyinclude> |