Changes

Jump to navigation Jump to search
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)
263

edits

Navigation menu