Changes

Line 14: Line 14:  
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:
 
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>
+
<pre><nowiki>
 
<!---------Party---------->
 
<!---------Party---------->
 
{{#if:{{{party|}}} | <!--then:-->
 
{{#if:{{{party|}}} | <!--then:-->
Line 22: Line 22:  
{{!}} [[{{{party|}}}]] | <!--else-->
 
{{!}} [[{{{party|}}}]] | <!--else-->
 
}} }}
 
}} }}
−
{{!-}}</code>
+
{{!-}}
 +
</nowiki></pre>
 
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.
 
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)
 
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