Template talk:President

From Conservapedia
Jump to: navigation, search

Party field

Currently, the party field links to None when you put down "None" in that field, but the entire political party section of the infobox removes itself if the party field is left blank. Would anyone object to me modifying the template so that it puts "None" with no wikilink to None if no political party is specified, then going and modifying the articles that currently have "None" there? AManInBlack 01:39, 7 July 2007 (EDT)

I understand the problem, but I'm not quite following your solution. Currently, according to your description, the following is happening:
  • Party listed — party gets linked.
  • Party not listed — line doesn't get shown.
  • Party shown as "none" — "none" gets linked.
Instead you want:
  • Party listed — party gets linked.
  • Party not listed — line doesn't get shown??, or gets shown as blank??
  • Party shown as "none" — "none" is not listed??, or this situation is not used??
A blank party could be either (a) the party is not known, or (b) he wasn't a member of a party. So showing "none" but not linking it would appear to be a desirable option.
Philip J. Rayment 02:46, 7 July 2007 (EDT)

Hm. I hadn't considered that some of the infoboxes haven't had the party field filled in yet. Okay, new, somewhat hackier way of doing the same thing:

{{#if:{{{party|}}} | <!--then:-->
{{!}} '''Political party '''
{{#ifeq:{{{party|}}} | "None" | <!-- These two lines dewikilink "None". -->
{{!}} None |
{{!}} [[{{{party|}}}]] | <!--else-->
}} }}

This way, if the variable is passed the word "None", it just says "None" without wikilinking it. Pass the variable anything else, and it wikilinks it.

That said, how married is everyone to automatically wikilinking whatever is put here? A lot of these entries have "Democratic" (which in my mind really should redirect to democracy) which, in this context, should probably be linked like this: Democratic. Maybe that's just me; if this were Conservapedia.ca, I'd hope conservative linked that article, not Conservative Party of Canada. AManInBlack 12:55, 7 July 2007 (EDT)

By the way, fair warning that I didn't test that code yet. It's just a rough idea how to implement what I'm suggesting, that's all. AManInBlack 13:13, 7 July 2007 (EDT)

AMIB I wrote the template with the main intention of US presidents and later changed it to incorporate other nations. However, I can see your point about linking political parties. Perhaps we can remove the automatic wikilink and request a manual link. I am aware of None bug for vice-presidents and intend to fix it but I find it easier to do with a large sheet of paper and as I am on the road at the moment I can't work the way I want. I'll think over your suggestions. The other wiki has a very large template for holders of office and more advanced inclusions in their common.css and common.js pages
Something else to watch out for in templates is the case of the parameter text being entered. Both Republican and Democratic redirect to the respective parties on CP, changing this might tread on a few toes. An alternative structure is to use the switch function. As the default nation is USA it might be possible to switch to being non-autolinked for other nations. It's good to have these topics debated as the underlying structure and categorization of the entire site is involved and as CP expands it needs to be set on firm foundations. BrianCo 16:42, 7 July 2007 (EDT)
It's not that some president infoboxes might not have the party field filled in yet (I haven't checked), but even in if they all have them at the moment, there's no guarantee of that in the future, especially given that the infoboxes are not just for the American presidents.
I've just changed some details of the {{country}} template. For almost all the fields that are automatically linked, I have an alternative parameter that is not linked, but for which explicit linking can be passed if necessary. In the case of this President template, you could have party automatically linked, but use party-raw when you want to specify "none". See, for example, the infobox in United Kingdom, where the parameter government-raw is used to provide two separate links, which was not previously possible.
Philip J. Rayment 12:30, 8 July 2007 (EDT)
That's a better idea than my own. Nice work. AManInBlack 22:12, 8 July 2007 (EDT)
Thanks. Philip J. Rayment 02:19, 9 July 2007 (EDT)