Jump to content

Template:Irish TD table begin and Template:Irish TD table begin/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
fix {{refs}}
 
blanked for now
Tag: Blanking
 
Line 1: Line 1:
<includeonly><!--
# First, an error check to see if maxTDs is set
-->{{#if: {{{maxTDs|}}}|<!--
# OK, maxTDs is set
-->{{#ifeq: {{Is this a Dáil constituency article}}|yes|{{(}}<!-- -->{{!}} class="wikitable" style="font-size:95%"
<!-- ################## First, a title for the table #################### -->
{{!}}-
!colspan="{{#expr: 2 + ({{{maxTDs|}}} * 2)}}"{{!}} [[Teachta Dála|Teachtaí Dála]] (TDs) for {{{constituency|}}}{{#if: {{{start|}}} | &nbsp;{{{start}}}{{#if:{{{end|}}}|&ndash;{{{end}}}|&ndash;}} |}}{{#if: {{{add|}}}|{{{add}}}|}}{{#ifeq: {{Is this a Dáil constituency article}}|yes|{{{refs}}}|}}
<!-- ################## Next, insert the party key if a list of parties is supplied #################### -->
{{#if: {{{1|}}} | <!-- if we have unnamed parameters for the *party key
-->{{Political party abbrev key<!--
-->|navbox={{#ifeq: {{Is this a Dáil constituency article}} | yes | no | yes}}<!--
-->|colspan={{#expr: (2 + (2 *{{{maxTDs}}}))}}<!--
-->|{{{1|}}} | {{{2|}}} | {{{3|}}} | {{{4|}}} | {{{5|}}} <!--
-->|{{{6|}}} | {{{7|}}} | {{{8|}}} | {{{9|}}} | {{{10|}}} <!--
-->|{{{11|}}} | {{{12|}}} | {{{13|}}} | {{{14|}}} | {{{15|}}} <!--
-->|{{{16|}}} | {{{17|}}} | {{{18|}}} | {{{19|}}} | {{{20|}}}<!--
-->}}<!--
-->}}<!--
################## End of party key ####################
-->}}<!--
-->{{#ifeq: {{Is this a Dáil constituency article}}|no|<!--
-->{<!-- -->{{!}} class="wikitable" style="font-size:95%; max-width:95% !important; !important; white-space:normal !important;"
}}
<!-- ################## Now create the headers for the columns #################### -->
{{!}}-
!Dáil!!Election{{#ifexpr: {{{maxTDs|}}} >= 1 | !!colspan="2"{{!}}Deputy<br />(Party)}}{{#ifexpr: {{{maxTDs|}}} >= 2 | !!colspan="2"{{!}}Deputy<br />(Party)}}{{#ifexpr: {{{maxTDs|}}} >= 3 | !!colspan="2"{{!}}Deputy<br />(Party)}}{{#ifexpr: {{{maxTDs|}}} >= 4 | !!colspan="2"{{!}}Deputy<br />(Party)}}{{#ifexpr: {{{maxTDs|}}} >= 5 | !!colspan="2"{{!}}Deputy<br />(Party)}}{{#ifexpr: {{{maxTDs|}}} >= 6 | !!colspan="2"{{!}}Deputy<br />(Party)}}{{#ifexpr: {{{maxTDs|}}} >= 7 | !!colspan="2"{{!}}Deputy<br />(Party)}}{{#ifexpr: {{{maxTDs|}}} >= 8 | !!colspan="2"{{!}}Deputy<br />(Party)}}{{#ifexpr: {{{maxTDs|}}} >= 9 | !!colspan="2"{{!}}Deputy<br />(Party)}}{{#ifexpr: {{{maxTDs|}}} >= 10 | !!colspan="2"{{!}}Deputy<br />(Party)}}<!---
<!-- ################## End of headers for the columns ####################


# If we get here, it's because maxTDs not set, so issue a warning -->
|<span style="color:red">Error in Template:Irish TD table begin: you must set the parameter ''maxTDs''</span> }}<!--
# end error check
--></includeonly><noinclude>
{{Documentation}}
[[Category:Dáil constituency templates]]
</noinclude>