Difference between revisions of "Template talk:President"

From Conservapedia
Jump to navigation Jump to search
(I don't follow your proposed solution)
(reply)
Line 11: Line 11:
 
: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.
 
: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.
 
:[[User:Philip J. Rayment|Philip J. Rayment]] 02:46, 7 July 2007 (EDT)
 
:[[User:Philip J. Rayment|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:
 +
 +
<code>
 +
<!---------Party---------->
 +
{{#if:{{{party|}}} | <!--then:-->
 +
{{!}} '''Political party '''
 +
{{#ifeq:{{{party|}}} | "None" | <!-- These two lines dewikilink "None". -->
 +
{{!}} None |
 +
{{!}} [[{{{party|}}}]] | <!--else-->
 +
}} }}
 +
{{!-}}</code>
 +
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 Party|Democratic]]. Maybe that's just me; if this were Conservapedia.ca, I'd hope [[conservative]] linked that article, not [[Conservative Party of Canada]]. [[User:AManInBlack|AManInBlack]] 12:55, 7 July 2007 (EDT)

Revision as of 16:55, July 7, 2007

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:

|- 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)