Template:Flag2: Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 1: Line 1:
{{#switch: {{{1|}}}
{{#switch: {{{1|}}}
  | #default = [[Image:ambox_speedy_deletion.png|24px|link=]] Wrong Usage, read [[:Template:flag2]]
  | #default = [[Image:ambox_speedy_deletion.png|24px|link=]] Wrong Usage, read [[:Template:flag2]]
  | ES      = <span style="border:1px solid rgba(0,0,0,0.5); cursor:help">[[File:Spain.png|24px|link=]]</span>{{#ifeq:{{{country|}}}|yes|&nbsp;Spain}}{{#ifeq:{{{language|}}}|yes|&nbsp;(Spanish)}}
  | ES      = <span style="outline:1px solid rgba(0,0,0,0.5); outline-offset:-1px; cursor:help">[[File:Spain.png|24px|link=|Spain (Spanish)]]</span>{{#ifeq:{{{country|}}}|yes|&nbsp;Spain}}{{#ifeq:{{{language|}}}|yes|&nbsp;(Spanish)}}
}}<noinclude>
}}<noinclude>



Revision as of 09:08, 19 December 2021

Ambox speedy deletion.png Wrong Usage, read Template:flag2

flag2 Usage

{{flag2|ES}} = Spain (Spanish)
{{flag2|ES|country=yes}} = Spain (Spanish) Spain
{{flag2|ES|language=yes}} = Spain (Spanish) (Spanish)
{{flag2|ES|country=yes|language=yes}} = Spain (Spanish) Spain (Spanish)


Notes for wiki editors

This template is a wayaround because the template {{flag}} doesnt works very well (cant be used inline, it forces a text to be displayed, etc...). Eventually this template could be ported to template {{flag}}