Template talk:Orienteering

From Wikipedia, the free encyclopedia
Jump to: navigation, search
WikiProject Orienteering (Rated Template-class)
WikiProject icon This template is within the scope of WikiProject Orienteering, a collaborative effort to improve the coverage of Orienteering articles on Wikipedia. If you would like to participate, please visit the project page, where you can join the discussion. You can also take a look at articles that needs improvements.
 Template  This template does not require a rating on the project's quality scale.
 

World University Orienteering Championships[edit]

What do you think about adding World University Orienteering Championships to the template? --Dnikitin (talk) 23:53, 12 January 2009 (UTC)

Yes, that should be fine. I added it to the foot-o events. I put it at the end, because this championship is restricted to students, and not open to "everybody". Oceanh (talk) 18:10, 13 January 2009 (UTC).
May be just WUOC rather than University Championships? --Dnikitin (talk) 18:59, 13 January 2009 (UTC)
Yes check.svg Done Ok. Changed it to WUOC. Oceanh (talk) 21:37, 13 January 2009 (UTC).

Move[edit]

Replaced by Template:Orienteering concepts Kslotte (talk) 13:48, 29 May 2009 (UTC)

Anyone knows how to get this moved and replace all old templates with the new one? Kslotte (talk) 14:55, 29 May 2009 (UTC)
| List of what wiki links that needs clean-up Kslotte (talk) 15:40, 29 May 2009 (UTC)
Move what, where? --Una Smith (talk) 16:22, 29 May 2009 (UTC)
This old template 'Orienteering' was replaced by 'Orienteering concepts'. All link references has already been corrected. Only thing left is to delete the 'Orienteering' template, that is currently only a redirect link to 'Orienteering concepts'. Anyone able mark this old template for deletion? —Preceding unsigned comment added by Kslotte (talkcontribs) 18:51, 29 May 2009 (UTC)

Yes check.svg Done Sometimes in May-June 2009. --Kslotte (talk) 14:46, 24 August 2009 (UTC)

Moved templates: Footer Orienteering to Orientering events[edit]

I moved this template from Template:Footer Orienteering to here, in the process of splitting the template into two, the second template being {{Template:Orienteering}}. --Una Smith (talk) 21:07, 2 March 2009 (UTC)

Yes check.svg Done during March 2009 --Kslotte (talk) 14:50, 24 August 2009 (UTC)

Candidates[edit]

Writing down candidates --Kslotte (talk) 06:17, 6 June 2009 (UTC)

Yes check.svg Done during June 2009 --Kslotte (talk) 14:51, 24 August 2009 (UTC)

Parameters[edit]

The template have been expanded to accept some paramters. But there is an issue with this:

Use {{Orienteering concepts|state1=collapsed|state2=uncollapsed}} for having the first group collapsed and second visible. Used for orienteering articles. Currently non-functional

Any ideas what is wrong? A request have been submitted to the Helpdesk --Kslotte (talk) 16:56, 21 August 2009 (UTC)

I think I fixed it. Please test it, whether it works as it should. Svick (talk) 15:02, 22 August 2009 (UTC)
I'm not able to get this template to autocollapse when the state is not set, but setting it to collapsed or uncollapsed should work. Svick (talk) 15:41, 22 August 2009 (UTC)
Thank you for the help. I made it now to have three parameters 'state', 'state1' and 'state2'. Anyway, I think this should be developed a bit further like having only one parameter lets say 'type' that can have values 'collapsed' (everything collapsed), 'concepts' (default, the concepts are shown) or 'events' (the event are shown). I will take a closer look of have to get it the next development stage. Any tip or hints are welcome? But, I think I should able to do it myself. And maybe the template could be renamed to only 'orienteering'. --Kslotte (talk) 00:57, 23 August 2009 (UTC)

Yes check.svg Done New template structure created. --Kslotte (talk) 16:22, 24 August 2009 (UTC)

Parameter type[edit]

Lets bring these all state parameters together (according to above) and make the template simpler. I think this can be done with some 'if's. --Kslotte (talk) 01:25, 23 August 2009 (UTC)

The logic I want to achieve is the following: --Kslotte (talk) 01:25, 23 August 2009 (UTC)

  • type=collapsed: state=collapsed, state1=uncollapsed, state2=collapsed
  • type=concepts (default): state=uncollapsed, state1=uncollapsed, state2=collapsed
  • type=events: state=uncollapsed, state1=collapsed, state2=uncollapsed
This seems very helpful. Probably a switch statement will do it. Maybe like this (have to verify it later):
  • State: {{#switch:type|collapsed=collapsed|concepts=uncollapsed|events=uncollapsed|uncollapsed}}
  • State1: {{#switch:type|collapsed=uncollapsed|concepts=uncollapsed|events=collapsed|uncollapsed}}
  • State2: {{#switch:type|collapsed=collapsed|concepts=collapsed|events=uncollapsed|collapsed}}
It may be good to create a new template 'Orienteering' that has this new parameters. --Kslotte (talk) 01:53, 23 August 2009 (UTC)
Yes check.svg Done Results --Kslotte (talk) 09:35, 23 August 2009 (UTC)