Hattrick talk:HattrickWikiProject Countries/Election

From Hattrick

I think I made good templates for elections as following:

{{vote-text World Cup XIV}}



{{vote|pos=1|username=(username)|votes=(number of votes)}}

{{vote|pos=2|username=(username)|votes=(number of votes)}}


{{vote|pos=n|username=(username)|votes=(number of votes)|declined={{check}}}}


[[Category: ... Elections]]


where the first line is show the country elections, date and time of deadline. It is the same for every country so having 1 template is good. The name will automatically change for each page. If there is another election in the same term, we can use vote-text template with name, date, and time are arguments. The check template will have check mark for "declined". Some examples are here: Vietnamese elections for World Cup XIV and Vietnamese elections for World Cup XIII bis

No need to edit old election pages if no time but we can use for future pages. And if we want to change format for all election pages, it would be much easier than without templates. What do you think? --Mod-Geek 00:06, 26 April 2010 (UTC)

Sounds like a good template, although I'd prefer naming of the variables. E.g. like {{vote|pos=1|username=username|votes=10|declined={{check}}}}. --Jhattara 07:40, 26 April 2010 (UTC)
It's already changed :) --Mod-Geek 13:34, 26 April 2010 (UTC)
I go head and change the page. You can add more if necessary --Mod-Geek 17:56, 26 April 2010 (UTC)
I don't really like this. Is it possible to add a different username? For example: [User:MrJunni|Electionguy], because in Belgium some people like to change username every once in a while or just for the election. I would like to keep the possibility to use a different name than the official username. But beside that, very nice templates :) ZF-Nightwish 18:54, 26 April 2010 (UTC)
Eh just noticed you already added that ^^ I didn't say anything :P ZF-Nightwish 18:56, 26 April 2010 (UTC)
hehe, no problem. I didn't read this post before posting the on the talk page of that election. If you have suggestion, feel free and we can add more features to it. --Mod-Geek 19:01, 26 April 2010 (UTC)