Difference between revisions of "Template:Election box metadata"

From blackwiki
Jump to navigation Jump to search
imported>Plastikspork
(Make this play nice with archived pages (as far as I can tell, this is the only time there is a / in the PAGENAME, so should work fine).)
imported>Frietjes
Line 4: Line 4:
  
 
These links provide easy access to this meta data:
 
These links provide easy access to this meta data:
*[[Template:{{BASEPAGENAME}}/meta/color|{{BASEPAGENAME}} color]] Content: <span style="background-color:{{Template:{{BASEPAGENAME}}/meta/color}}">&nbsp; &nbsp; &nbsp;</span>
+
*[[Template:{{BASEPAGENAME}}/meta/color|{{BASEPAGENAME}} color]] Content: {{#ifexist:Template:{{BASEPAGENAME}}/meta/color|<span style="background-color:{{Template:{{BASEPAGENAME}}/meta/color}}">&nbsp; &nbsp; &nbsp;</span>|[[Template:{{BASEPAGENAME}}/meta/color|Template does not exist yet!]]}}
*[[Template:{{BASEPAGENAME}}/meta/shortname|{{BASEPAGENAME}} shortname]] Content: {{Template:{{BASEPAGENAME}}/meta/shortname}}<!--  
+
*[[Template:{{BASEPAGENAME}}/meta/shortname|{{BASEPAGENAME}} shortname]] Content: {{#ifexist:Template:{{BASEPAGENAME}}/meta/shortname|{{Template:{{BASEPAGENAME}}/meta/shortname}}|[[Template:{{BASEPAGENAME}}/meta/shortname|Template does not exist yet!]]}}<!--  
  
 
WARNING:  THIS IS A TEMPLATE.  Any changes you make here will appear on a lot of different pages.  If you clicked edit in a regular page and got here then you are probably editing the wrong thing.  Stop! Go back and add your comment somewhere else. That is unless you really are intending to change this template! --><noinclude>
 
WARNING:  THIS IS A TEMPLATE.  Any changes you make here will appear on a lot of different pages.  If you clicked edit in a regular page and got here then you are probably editing the wrong thing.  Stop! Go back and add your comment somewhere else. That is unless you really are intending to change this template! --><noinclude>
 
[[Category:Election and referendum infobox templates]]
 
[[Category:Election and referendum infobox templates]]
 
</noinclude>
 
</noinclude>

Revision as of 17:41, 27 June 2020

Election box metadata

This article contains some sub-pages that hold metadata about this subject. This metadata is used by the Election box templates to display the color of the party and its name in Election candidate and results tables.

These links provide easy access to this meta data: