Template talk:Infobox Country: Difference between revisions

From Hattrick
Jump to navigationJump to search
Serafimul (talk | contribs)
mNo edit summary
Duno7 (talk | contribs)
added 'empty sintax' and comments
Line 27: Line 27:
See [[România]] for an working example.
See [[România]] for an working example.


=== Empty syntax ===
<pre><nowiki>
{{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=  |
}}
</nowiki></pre>
__TOC__
=== Guidelines ===
* All the images needed (flag, coat of arms, map) can be obtained from the country's page at [http://en.wikipedia.org Wikipedia].
=== Comments ===
----
----


Line 54: Line 88:
Please don't use templates for testing as it affects a lot of pages. Use [[Meta:Sandbox]] instead.
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.--[[User:Serafimul|Serafimul]] 21:04, 25 November 2005 (UTC)
If some of the parameters are not clearly enough explained above, point them and hopefuly someone will try to explain better.--[[User:Serafimul|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)?
--[[User:Duno7|duno7]] 17:26, 26 November 2005 (UTC)
----

Revision as of 17:26, 26 November 2005

Usage

{{Infobox_Country|
full_local_name = same as local name of the country in HT |
name_(english) = name of the country in English |
image_flag = an image of the country flag |
image_coat = an image of coat of arms |
image_map = am image of the location of the country on  the globe |
zone = zone in HT wehre this country belongs (Western Europe, Easter Europe...) |
link_to_map = a link to a map (a maps.google.com link will do) |
continent = continent |
season = what season is now in this country |
number_of_teams = the approximate number of teams (like 10k, 23k, 105k...) |
level_of_series = does this country has 3 (newer one) levels or 11 (very old)? |
number_of_regions = ... |
top_serie_name = Allsvenskan, Dizvizia A, Serie A... |
national_trainer = name him/her |
u20_coach = name him/her |
currency = name of the currency |
parity = USD1 = 1€ |
htt_offset= offset to Hattrick time (may be empty) |
footnotes= 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)