Difference between revisions of "Template:Infobox Country"

From Hattrick
m (Fix previous edit)
m
 
(30 intermediate revisions by 5 users not shown)
Line 1: Line 1:
<!--
+
<noinclude>
 
+
{| width=100% bgcolor= #ecfcf4 border=0
Infobox Country
+
| <u>Sample & Result:</u>
 
 
-->{| align="right" cellpadding="4" style="border: 1px #aaaaaa solid; width: 20em; font-size: 95%; margin: 0 0 1em 1em;"
 
|+ style="margin-left: inherit; font-size: medium;" | '''{{{full_local_name}}}'''
 
 
|-
 
|-
| align="center" colspan="2" |
+
| valign=top |
{| style="width: 280px; background: none; text-align: center;"
+
{{Infobox Country
|- style="vertical-align: middle;"
+
  | name_(english)    = Sweden
| style="border: 0;" | <span style="display:table-cell; border-collapse:collapse; border: solid 1px #BBBBBB;">[[Image:{{{image_flag}}}|125px|Flag of {{{name_(english)}}}]]</span>
+
  | full_local_name  = Sverige
| style="border: 0;" | [[Image:{{{image_coat}}}|110px|Coat of Arms of {{{name_(english)}}}]]
+
  | nation_code      = 1
 +
  | image_logo        =
 +
  | image_flag        =
 +
  | image_coat        = Coat_of_Arms_of_Sweden.PNG
 +
  | image_map        = Location_of_Sverige.PNG
 +
  | zone              = Northern Europe
 +
  | link_to_map      = http://maps.google.com/maps?f=q&hl=en&q=sverige&ie=UTF8&t=h&z=5&om=1
 +
  | continent        = Asia, Africa and Oceania
 +
  | season            = 99
 +
  | number_of_teams  = 10 920<br>(~ 7 250)
 +
  | level_of_series  = 6
 +
  | number_of_regions = 27
 +
  | currency          = kr
 +
  | parity            = 100 kr = 10 US$
 +
  | htt_offset        = +0
 +
  | footnotes        = (*) since 30 August 1997, which is also the start of [[global season]]s counting.
 +
  | top_serie_name    = [[Allsvenskan]]
 +
  | cup_name          = [[Sverigecupen]]
 +
  | national_trainer  = ABC
 +
  | u20_coach        = XYZ}}
 +
<br><pre>{{Infobox Country
 +
| name_(english)    = Sweden
 +
  | full_local_name  = Sverige
 +
  | nation_code      = 1
 +
  | image_logo        =
 +
  | image_flag        =
 +
  | image_coat        = Coat_of_Arms_of_Sweden.PNG
 +
  | image_map        = Location_of_Sverige.PNG
 +
  | zone              = Northern Europe
 +
  | link_to_map      = http://maps.google.com/maps?f=q&hl=en&q=sverige&ie=UTF8&t=h&z=5&om=1
 +
  | continent        = Asia, Africa and Oceania
 +
  | season            = 99
 +
  | number_of_teams  = 10 920<br>(~ 7 250)
 +
  | level_of_series  = 6
 +
  | number_of_regions = 27
 +
  | currency          = kr
 +
  | parity            = 100 kr = 10 US$
 +
  | htt_offset        = +0
 +
  | footnotes        = (*) since 30 August 1997, which is also the start of [[global season]]s counting.
 +
  | top_serie_name    = [[Allsvenskan]]
 +
  | cup_name          = [[Sverigecupen]]
 +
  | cup_emerald      =
 +
  | cup_ruby          =
 +
  | cup_sapphire      =
 +
  | cup_consolation  =
 +
  | national_trainer  = ABC
 +
  | u20_coach        = XYZ}}
 +
|}</pre>
 +
|-
 +
| bgcolor= #fff | <u>Code:</u>
 +
|}</noinclude>{{clear}}
 +
{| width=100% style="font-variant: small-caps; text-align: center; font-size: 105%; margin-top: 0; margin-bottom:.2em; "
 +
| width=18% |
 +
| width=16% style="background:#F3F3F3; border-top: 2px solid black; border-top-right-radius:9px; border-top-left-radius:9px; border-left: 1px solid black; border-bottom: 1px solid black; box-shadow: 5px 10px #888888;" | [[{{{full_local_name}}}{{!}}League]]
 +
| width=16% style="background:#FAFAFA; border-top: 2px solid black; border-top-right-radius:9px; border-top-left-radius:9px; border-left: 1px solid black; border-bottom: 1px solid black; box-shadow: 5px 10px #888888;" | <i>{{Country data {{{name_(english)}}}|NationalTeamUnder-20}}</i>
 +
| width=16% style="background:#FAFAFA; border-top: 2px solid black; border-top-right-radius:9px; border-top-left-radius:9px; border-left: 1px solid black; border-bottom: 1px solid black; box-shadow: 5px 10px #888888;" | {{Country data {{{name_(english)}}}|U-21NT}}
 +
| width=16% style="background:#FAFAFA; border-top: 2px solid black; border-top-right-radius:9px; border-top-left-radius:9px; border-left: 1px solid black; border-bottom: 1px solid black; border-right: 1px solid black; box-shadow: 5px 10px #888888;" | {{Country data {{{name_(english)}}}|NationalTeamtemplate}}
 +
| width=18% | 
 +
|-
 +
| colspan=6 style="background:#CFEACF; border-radius:9px; margin-bottom:5px; margin-top:5px; padding-left: 5px; padding-right:4px; font-weight:bold; font-variant: small-caps; box-shadow: 1px 3px #888888;" | Hattrick Country
 
|}
 
|}
|- style="text-align: center;"
+
{| class=toccolours align="right" cellpadding="2" style="width: 29.5em; background: #CFEACF; border: 1px solid lightgrey; font-size: 92%; padding:0 20px 10px 20px; margin: 0 1em 1em 1em;"
| colspan="2" style="background:#ffffff;" | [[Image:{{{image_map}}}|250px|Location of {{{name_(english)}}}]]
+
|+ <big><b>{{#if:{{{nation_code|}}}| [https://www.hattrick.org/en-us/World/Leagues/League.aspx?LeagueID={{{nation_code}}} {{{name_(english)}}}] | {{{name_(english)}}} }}</b></big>
 
|-
 
|-
| Link to '''Google [{{{link_to_map}}} map]'''
+
| style="text-align: center; vertical-align: middle; background: none; max-width: 11em;" | {{#if:{{{image_flag|}}}| [[Image:{{{image_flag}}}|130px|border|left|Flag of {{{name_(english)}}}]]|{{Flagfull|{{{full_local_name}}}|size=130px|link=Flag of {{{name_(english)}}}}}}}
 +
| style="background: none; text-align: center; vertical-align: middle; max-width: 10em;" | [[Image:{{#if:{{{image_coat|}}}|{{{image_coat}}}|Coat_of_Arms_of_{{{name_(english)}}}.PNG}}|x90px|right|Coat of Arms of {{{name_(english)}}}]]
 +
|-
 +
| colspan=2 | [[Image:{{#if:{{{image_map|}}}|{{{image_map}}}|Location_of_{{{full_local_name}}}.PNG}}|250px|thumb|center|link={{{link_to_map}}}|Location of {{{name_(english)}}} (link to '''Google map''')]]
 
|-
 
|-
| Link to [http://en.wikipedia.org/wiki/{{#if: {{{name_(wiki)|}}}|{{{name_(wiki)}}}|{{{name_(english)}}}}} Wikipedia]
+
| colspan=2 style="text-align: center" |  
 
|-
 
|-
| Link to [http://en.wikipedia.org/wiki/{{{name_(english)}}} Wikipedia]
+
| colspan=2 style="text-align: center" | [http://en.wikipedia.org/wiki/{{#if: {{{name_(wiki)|}}}|{{{name_(wiki)}}}|{{{name_(english)}}}}} Wikipedia page]
 +
|-
 +
| '''Currency'''
 +
|[[Currencies|{{{currency}}}]]<br />{{{parity}}}
 
|-
 
|-
| '''[[Zone]]:'''
+
| '''Time zone'''
|{{{zone}}}<br />
+
| [[Hattrick Time]] {{{htt_offset}}}
 
|-
 
|-
 
| '''Continent:'''
 
| '''Continent:'''
|{{{continent}}}
+
|[[{{{continent}}}]]
 
|-
 
|-
| '''[[Season]]:'''
+
| style="padding:0 0px 10px 0px;" |
|{{{season}}}
 
 
|-
 
|-
| '''Number of [[Team|teams]] (approx):'''
+
| colspan=2 | <big><b>{{{name_(english)}}} HT [[Country]]</b></big>
 +
-----
 +
|-
 +
| '''[[Zone]]:'''<br />
 +
|[[{{{zone}}}]]
 +
|-
 +
| '''Number of [[regions]]:'''
 +
|{{{number_of_regions}}}
 +
|-
 +
| '''Current local [[season]]:'''
 +
|{{#if:{{{creation_season|}}}|{{#expr:floor{{#expr:{{JULIANDIFF|{{#time:Y}}|{{#time:m}}|{{#time:d}}|1997|6|1}} / 112 + 1 - {{{creation_season|}}}}}}}|{{{season}}}}}
 +
|-
 +
| '''Number of [[Team|teams]]: <br />(~ active)'''
 
|{{{number_of_teams}}}
 
|{{{number_of_teams}}}
 
|-
 
|-
Line 36: Line 109:
 
|{{{level_of_series}}}
 
|{{{level_of_series}}}
 
|-
 
|-
| '''Number of [[regions]]:'''
+
| '''Top series name:'''
|{{{number_of_regions}}}
 
|-
 
| '''Top [[Series|series]] name:'''
 
 
|{{{top_serie_name}}}
 
|{{{top_serie_name}}}
 
|-
 
|-
| '''National [[Cup|cup]] name:'''
+
| '''National [[Cup|cup]]s:'''
|{{{cup_name}}}
+
|{{{cup_name}}} (main)
 
|-
 
|-
| '''National coach:'''
+
| colspan=2 align=center | {{#if:{{{cup_emerald|}}}|{{{cup_emerald}}}|{{{full_local_name}}}&nbsp;Emerald&nbsp;Cup}}&nbsp;(challenger)
|{{{national_trainer}}}
 
 
|-
 
|-
| '''U-20 Coach:'''
+
| colspan=2 align=center | {{#if:{{{cup_ruby|}}}|{{{cup_ruby}}}|{{{full_local_name}}}&nbsp;Ruby&nbsp;Cup}}&nbsp;(challenger)
|{{{u20_coach}}}
 
 
|-
 
|-
| '''Currency'''
+
| colspan=2 align=center | {{#if:{{{cup_sapphire|}}}|{{{cup_sapphire}}}|{{{full_local_name}}}&nbsp;Sapphire&nbsp;Cup}}&nbsp;(challenger)
|[[Currencies|{{{currency}}}]]<br />{{{parity}}}
 
 
|-
 
|-
| '''Time zone'''
+
| colspan=2 align=center | {{#if:{{{cup_consolation|}}}|{{{cup_consolation}}}|{{{full_local_name}}}&nbsp;Consolation&nbsp;Cup}}&nbsp;(third tier)
| [[Hattrick Time]]{{{htt_offset}}}
 
 
|-
 
|-
 
| colspan=2 | <small>{{{footnotes}}}</small>
 
| colspan=2 | <small>{{{footnotes}}}</small>
 +
|-
 +
| style="padding:0 0px 10px 0px;" |
 +
|-
 +
| colspan=2 | {{#if: {{{national_trainer|}}}|<big><b>[[National team]]s</b></big>|}}
 +
-----
 +
|-
 +
| {{#if: {{{national_trainer|}}}|
 +
* [[National_team_{{{full_local_name}}}|National&nbsp;team&nbsp;{{{name_(english)}}}]] {{#if: {{{national_trainer|}}}|<br /><i>Current&nbsp;Coach:</i>&nbsp;{{{national_trainer}}}|}}
 +
|}}
 +
| rowspan=2 style="background: none; max-width: 10em;" align=right | {{#if:{{{image_logo|}}}|[[Image:{{{image_logo}}}|right|Logo of {{{name_(english)}}}]]|{{Flaglogo|{{{full_local_name}}}|size=80px}}}}
 +
|-
 +
| {{#if: {{{u20_coach|}}}|
 +
* [[National_team_U-20_{{{full_local_name}}}|NT&nbsp;U-20&nbsp;{{{name_(english)}}}]] {{#if: {{{u20_coach|}}}|<br /><i>Current&nbsp;Coach:</i>&nbsp;{{{u20_coach}}}|}}
 +
|}}
 
|}<noinclude>[[Category:Country templates]]</noinclude>
 
|}<noinclude>[[Category:Country templates]]</noinclude>

Latest revision as of 13:59, 20 August 2020

Sample & Result:
League

NT U-20 Sweden

NT U-21 Sweden

NT Sweden

Hattrick Country
Sweden
Sverige
Coat of Arms of Sweden
Location of Sweden (link to Google map)
Wikipedia page
Currency kr
100 kr = 10 US$
Time zone Hattrick Time +0
Continent: Asia, Africa and Oceania
Sweden HT Country
Zone:
Northern Europe
Number of regions: 27
Current local season: 99
Number of teams:
(~ active)
10 920
(~ 7 250)
Level of series: 6
Top series name: Allsvenskan
National cups: Sverigecupen (main)
Sverige Emerald Cup (challenger)
Sverige Ruby Cup (challenger)
Sverige Sapphire Cup (challenger)
Sverige Consolation Cup (third tier)
(*) since 30 August 1997, which is also the start of global seasons counting.
National teams

{{Infobox Country
 | name_(english)    = Sweden
  | full_local_name   = Sverige
  | nation_code       = 1
  | image_logo        = 
  | image_flag        = 
  | image_coat        = Coat_of_Arms_of_Sweden.PNG
  | image_map         = Location_of_Sverige.PNG
  | zone              = Northern Europe
  | link_to_map       = http://maps.google.com/maps?f=q&hl=en&q=sverige&ie=UTF8&t=h&z=5&om=1
  | continent         = Asia, Africa and Oceania
  | season            = 99
  | number_of_teams   = 10 920<br>(~ 7 250)
  | level_of_series   = 6
  | number_of_regions = 27
  | currency          = kr
  | parity            = 100 kr = 10 US$
  | htt_offset        = +0
  | footnotes         = (*) since 30 August 1997, which is also the start of [[global season]]s counting. 
  | top_serie_name    = [[Allsvenskan]]
  | cup_name          = [[Sverigecupen]]
  | cup_emerald       = 
  | cup_ruby          = 
  | cup_sapphire      = 
  | cup_consolation   = 
  | national_trainer  = ABC
  | u20_coach         = XYZ}}
|}
Code:
[[{{{full_local_name}}}|League]] {{Country data {{{name_(english)}}}|NationalTeamUnder-20}} {{Country data {{{name_(english)}}}|U-21NT}} {{Country data {{{name_(english)}}}|NationalTeamtemplate}}
Hattrick Country
{{{name_(english)}}}
{{country data {{{full_local_name}}} country flagfull2 variant= altlink=Flag of {{{name_(english)}}} size=130px

}}

[[Image:Coat_of_Arms_of_{{{name_(english)}}}.PNG|x90px|right|Coat of Arms of {{{name_(english)}}}]]
[[Image:Location_of_{{{full_local_name}}}.PNG|250px|thumb|center|link={{{link_to_map}}}|Location of {{{name_(english)}}} (link to Google map)]]
Wikipedia page
Currency {{{currency}}}
{{{parity}}}
Time zone Hattrick Time {{{htt_offset}}}
Continent: [[{{{continent}}}]]
{{{name_(english)}}} HT Country
Zone:
[[{{{zone}}}]]
Number of regions: {{{number_of_regions}}}
Current local season: {{{season}}}
Number of teams:
(~ active)
{{{number_of_teams}}}
Level of series: {{{level_of_series}}}
Top series name: {{{top_serie_name}}}
National cups: {{{cup_name}}} (main)
{{{full_local_name}}} Emerald Cup (challenger)
{{{full_local_name}}} Ruby Cup (challenger)
{{{full_local_name}}} Sapphire Cup (challenger)
{{{full_local_name}}} Consolation Cup (third tier)
{{{footnotes}}}

{{country data {{{full_local_name}}} country flag logo size=80px link=

}}