Template talk:Infobox Country: Difference between revisions

From Hattrick
Jump to navigationJump to search
Duno7 (talk | contribs)
added 'empty sintax' and comments
Duno7 (talk | contribs)
m reworked the parameter explanation (text and layout)
Line 1: Line 1:
== Usage ==
== Usage ==
=== Parameter explanation ===


<pre><nowiki>
<pre><nowiki>
{{Infobox_Country|
{{Infobox_Country
full_local_name = same as local name of the country in HT |
  | full_local_name   = official (local) name of the country in Hattrick
name_(english) = name of the country in English |
  | name_(english)   = name of the country in English
image_flag = an image of the country flag |
  | image_flag       = image of the country flag
image_coat = an image of coat of arms |
  | image_coat       = image of coat of arms
image_map = am image of the location of the country on the globe |
  | image_map         = image with the location of the country on the globe
zone = zone in HT wehre this country belongs (Western Europe, Easter Europe...) |
  | zone             = Hattrick-zone where this country belongs (Western Europe, Easter Europe...)
link_to_map = a link to a map (a maps.google.com link will do) |
  | link_to_map       = URL of the Google Maps (or similar) page for this country
continent = continent |
  | continent         = continent
season = what season is now in this country |
  | season           = current season number
number_of_teams = the approximate number of teams (like 10k, 23k, 105k...) |
  | number_of_teams   = approximate number of teams (10k, 20k, 30k ...)
level_of_series = does this country has 3 (newer one) levels or 11 (very old)? |
  | level_of_series   = number of levels in this country's series system
number_of_regions = ... |
  | number_of_regions = number of regions
top_serie_name = Allsvenskan, Dizvizia A, Serie A... |
  | top_serie_name   = name of the Top series (Allsvenskan, Dizvizia A, Serie A ...)
national_trainer = name him/her |
  | national_trainer = nickname of the national trainer
u20_coach = name him/her |
  | u20_coach         = nickname of the U20 coach
currency = name of the currency |
  | currency         = name of the currency used in this country
parity = USD1 = 1€ |
  | parity           = 1US$ = 1€
htt_offset= offset to Hattrick time (may be empty) |
  | htt_offset       = offset to Hattrick time (may be empty)
footnotes= may be empty |
  | footnotes         = additional notes (may be empty)
}}
}}
</nowiki></pre>
</nowiki></pre>
Line 28: Line 30:


=== Empty syntax ===
=== Empty syntax ===
<pre><nowiki>
<pre><nowiki>
{{Infobox_Country|
{{Infobox_Country
full_local_name = |
  | full_local_name   =  
name_(english) = |
  | name_(english)   =  
image_flag = |
  | image_flag       =  
image_coat = |
  | image_coat       =  
image_map = |
  | image_map         =  
zone = |
  | zone             =  
link_to_map = |
  | link_to_map       =  
continent = |
  | continent         =  
season = |
  | season           =  
number_of_teams = |
  | number_of_teams   =  
level_of_series = |
  | level_of_series   =  
number_of_regions = |
  | number_of_regions =  
top_serie_name = |
  | top_serie_name   =  
national_trainer = |
  | national_trainer =  
u20_coach = |
  | u20_coach         =  
currency = |
  | currency         =  
parity = |
  | parity           =  
htt_offset= |
  | htt_offset       =  
footnotes= |
  | footnotes         =  
}}
}}
</nowiki></pre>
</nowiki></pre>
Line 55: Line 56:
__TOC__
__TOC__


=== Guidelines ===
== Guidelines ==


* All the images needed (flag, coat of arms, map) can be obtained from the country's page at [http://en.wikipedia.org Wikipedia].  
* All the images needed (flag, coat of arms, map) can be obtained from the country's page at [http://en.wikipedia.org Wikipedia].  




=== Comments ===
== Comments ==
----
----



Revision as of 17:45, 26 November 2005

Usage

Parameter explanation

{{Infobox_Country
  | full_local_name   = official (local) name of the country in Hattrick
  | name_(english)    = name of the country in English
  | image_flag        = image of the country flag
  | image_coat        = image of coat of arms
  | image_map         = image with the location of the country on the globe
  | zone              = Hattrick-zone where this country belongs (Western Europe, Easter Europe...)
  | link_to_map       = URL of the Google Maps (or similar) page for this country
  | continent         = continent
  | season            = current season number
  | number_of_teams   = approximate number of teams (10k, 20k, 30k ...)
  | level_of_series   = number of levels in this country's series system
  | number_of_regions = number of regions
  | top_serie_name    = name of the Top series (Allsvenskan, Dizvizia A, Serie A ...)
  | national_trainer  = nickname of the national trainer
  | u20_coach         = nickname of the U20 coach
  | currency          = name of the currency used in this country
  | parity            = 1US$ = 1€
  | htt_offset        = offset to Hattrick time (may be empty)
  | footnotes         = additional notes (may be empty)
}}

See România for an working example.

Empty syntax

{{Infobox_Country
  | full_local_name   = 
  | name_(english)    = 
  | image_flag        = 
  | image_coat        = 
  | image_map         = 
  | zone              = 
  | link_to_map       = 
  | continent         = 
  | season            = 
  | number_of_teams   = 
  | level_of_series   = 
  | number_of_regions = 
  | top_serie_name    = 
  | national_trainer  = 
  | u20_coach         = 
  | currency          = 
  | parity            = 
  | htt_offset        = 
  | footnotes         = 
}}

Guidelines

  • All the images needed (flag, coat of arms, map) can be obtained from the country's page at Wikipedia.


Comments


Heh, I was just about to write that ;) Anyway, it's worth noting that parameters can be left empty, which could be very useful for htt_offset so you don't have to write +0 or something. --Catalyst2950 07:57, 25 November 2005 (UTC)


We have a problem. The "link to map" is below the zone, and I feel that it should represent, well, the map of the zone. That's logical. The country is highlighted anyway. What do we do now? --Catalyst2950 08:20, 25 November 2005 (UTC)


Well, it seems logical to me to be there but if someone can find a better spot... we'll change the template. As long as the vars remain, there should be no problem.--Serafimul 08:26, 25 November 2005 (UTC)


I don't understand Wiki tables, so I can't change it. But I would add the map link above the Zone section, and make sure it clearly states that it's a Google maps link so people don't click accidentally. --Catalyst2950 08:31, 25 November 2005 (UTC)


Done.--Serafimul 08:46, 25 November 2005 (UTC)

can someone sort things out so the stuff I have added doesn't duplicate on all pages, but does appear on those pages with no more info. Still new to this wiki lark! --Dancing rob


I have used this template in España and in my opinion we should encourage the use of this template (and others) when documenting the wiki. Perhaps we could follow (up to some point) the guidelines at the wikimedia Help:Template page, and add an explanation of how to use this template and its parameters to this talk page. It would make it easier to use, i think.

--duno7 20:27, 25 November 2005 (UTC)


Please don't use templates for testing as it affects a lot of pages. Use Meta:Sandbox instead. If some of the parameters are not clearly enough explained above, point them and hopefuly someone will try to explain better.--Serafimul 21:04, 25 November 2005 (UTC)


I have just added the Empty sintax code, to make it easier for copy and pasting purposes, and also structured this document a little. I would suggest that we should use some kind of guidelines such as the use of images from Wikipedia, and such.

Another issue I think we need to solve is the way we handle links to internal pages of the wiki: I would suggest to make pages only for the zone and top_serie_name items, not for the national coaches or the continent. Perhaps this could be done within the template, so the template-user does not need to add square brackets to the parameters (and instead the "logic" is on the template)? --duno7 17:26, 26 November 2005 (UTC)