Template:Flag2: Difference between revisions

From PS3 Developer wiki
Jump to navigation Jump to search
(Created page with "{{#switch: {{{1|}}} | #default = 24px|link= Wrong Usage, read Template:flag2 | ES = 24px|link={{#ifeq:...")
 
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      = [[File:Spain.png|24px|link=]]{{#ifeq:{{{country|}}}|yes| Spain}}{{#ifeq:{{{language|}}}|yes| (Spanish)}}
  | 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)}}
}}<noinclude>
}}<noinclude>



Revision as of 09:04, 19 December 2021

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

flag2 Usage

{{flag2|ES}} = Spain.png
{{flag2|ES|country=yes}} = Spain.png Spain
{{flag2|ES|language=yes}} = Spain.png (Spanish)
{{flag2|ES|country=yes|language=yes}} = Spain.png 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}}