Template:Flagfull: Difference between revisions

From Hattrick
Jump to navigationJump to search
Para Para (talk | contribs)
mNo edit summary
Para Para (talk | contribs)
mNo edit summary
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{Flagfull|SWE|showlink|altlink=d}}<div style="clear: both; margin: 1em 0 0 0; border: 1px solid #aaa; background-color: #ecfcf4; padding: 1em;">
<noinclude><div style="clear: both; margin: 1em 0 0 0; border: 1px solid #aaa; background-color: #ecfcf4; padding: 1em;">
==Description==
==Description==
Displays a flag of the named parameter in "icon" size, currently 100 pixels height plus a 1 pixel border. The image also has an alt attribute (usually "Flag of <var>name</var>"), which is displayed when hovering the image.
Displays a flag of the named parameter in "icon" size, currently 60 pixels height plus a 1 pixel border. The image also has an alt attribute (usually "Flag of <var>name</var>"), which is displayed when hovering the image.


==Usage==
==Usage==
<code><nowiki>{{flagfull|name|showlink|size=|altlink=}}</nowiki></code>
<code><nowiki>{{flagfull|name|showlink|size=|altlink=}}</nowiki></code>
;name: The first parameter is mandatory, and identifies the name of the country, region, city, etc.  A full list of available parameters can be found in [[:Category:Country data templates]].  For example, [[:Template:Country data Polska]] is used when the ''name'' parameter is specified as <code>Polska</code>.
;name: The first parameter is mandatory, and identifies the name of the country, region, city, etc.  A full list of available parameters can be found in [[:Category:Country data templates]].  For example, [[:Template:Country data Polska]] is used when the ''name'' parameter is specified as <code>Polska</code>.
;showlink (or variant=showlink): Displays a text link after the flag.
;showlink: Displays a text link after the flag.
;size: This parameter is optional, and is used to specify the maximum width and/or height of the flag image.  This parameter is specified using standard image syntax.
;size: This parameter is optional, and is used to specify the maximum width and/or height of the flag image.  This parameter is specified using standard image syntax.
;altlink: This parameter is optional, and is used to link the flag into an article.</div></noinclude>
;altlink: This parameter is optional, and is used to link the flag into an article.</div></noinclude>
{{#ifeq:{{{2|}}}|showlink|{{Country data {{{1|}}}| country flagfull1}}|
{{#ifeq:{{{2|}}}|showlink|{{Country data {{{1|}}}|country flagfull1}}|{{country data {{{1|}}}
{{country data {{{1|}}}
| country flagfull2
| country flagfull2
| variant={{{variant|{{{2|}}}}}}
| variant={{{variant|{{{2|}}}}}}
| altlink={{{link|}}}
| altlink={{{link|}}}
| size={{{size|100px}}}
| size={{{size|}}}
}}|}}
}}|}}<noinclude>[[Category:Flag template system]]</noinclude>

Latest revision as of 22:19, 4 April 2021

Description

Displays a flag of the named parameter in "icon" size, currently 60 pixels height plus a 1 pixel border. The image also has an alt attribute (usually "Flag of name"), which is displayed when hovering the image.

Usage

{{flagfull|name|showlink|size=|altlink=}}

name
The first parameter is mandatory, and identifies the name of the country, region, city, etc. A full list of available parameters can be found in Category:Country data templates. For example, Template:Country data Polska is used when the name parameter is specified as Polska.
showlink
Displays a text link after the flag.
size
This parameter is optional, and is used to specify the maximum width and/or height of the flag image. This parameter is specified using standard image syntax.
altlink
This parameter is optional, and is used to link the flag into an article.

[[File:{{{flag full}}}|x60px|border|alt=|link=]]