Template:Irish Sen table begin

{{#if: {{{maxSens|}}}|{{{!}} class="wikitable" style="font-size:95%"

{{!}}- !colspan="{{#expr: 2 + ({{{maxSens|}}} * 2)}}"{{!}} Senators for {{{constituency|}}}{{#if: {{{start|}}} | {{{start}}}{{#if:{{{end|}}}|–{{{end}}}|–}} |}}{{#if: {{{refs|}}}|{{{refs}}}|}}

{{#if: {{{1|}}} | {{!}}- {{!}} colspan="{{#expr: (2 + (2 *{{{maxSens}}})) }}" {{!}} Key to parties {{flatlist}} {{endflatlist}} }}
 * {{#if: {{{1|}}} | {{Irish Sen table party key | party = {{{1}}} }} }}
 * {{#if: {{{2|}}} | {{Irish Sen table party key | party = {{{2}}} }} }}
 * {{#if: {{{3|}}} | {{Irish Sen table party key | party = {{{3}}} }} }}
 * {{#if: {{{4|}}} | {{Irish Sen table party key | party = {{{4}}} }} }}
 * {{#if: {{{5|}}} | {{Irish Sen table party key | party = {{{5}}} }} }}
 * {{#if: {{{6|}}} | {{Irish Sen table party key | party = {{{6}}} }} }}
 * {{#if: {{{7|}}} | {{Irish Sen table party key | party = {{{7}}} }} }}
 * {{#if: {{{8|}}} | {{Irish Sen table party key | party = {{{8}}} }} }}
 * {{#if: {{{9|}}} | {{Irish Sen table party key | party = {{{9}}} }} }}
 * {{#if: {{{10|}}} | {{Irish Sen table party key | party = {{{10}}} }} }}
 * {{#if: {{{11|}}} | {{Irish Sen table party key | party = {{{11}}} }} }}
 * {{#if: {{{12|}}} | {{Irish Sen table party key | party = {{{12}}} }} }}
 * {{#if: {{{13|}}} | {{Irish Sen table party key | party = {{{13}}} }} }}
 * {{#if: {{{14|}}} | {{Irish Sen table party key | party = {{{14}}} }} }}
 * {{#if: {{{15|}}} | {{Irish Sen table party key | party = {{{15}}} }} }}
 * {{#if: {{{16|}}} | {{Irish Sen table party key | party = {{{16}}} }} }}
 * {{#if: {{{17|}}} | {{Irish Sen table party key | party = {{{17}}} }} }}
 * {{#if: {{{18|}}} | {{Irish Sen table party key | party = {{{18}}} }} }}
 * {{#if: {{{19|}}} | {{Irish Sen table party key | party = {{{19}}} }} }}
 * {{#if: {{{20|}}} | {{Irish Sen table party key | party = {{{20}}} }} }}

{{!}}- !Sen!!Election{{#ifexpr: {{{maxSens|}}} >= 1 | !!colspan="2"{{!}}Senator (Party)}}{{#ifexpr: {{{maxSens|}}} >= 2 | !!colspan="2"{{!}}Senator (Party)}}{{#ifexpr: {{{maxSens|}}} >= 3 | !!colspan="2"{{!}}Senator (Party)}}{{#ifexpr: {{{maxSens|}}} >= 4 | !!colspan="2"{{!}}Senator (Party)}}{{#ifexpr: {{{maxSens|}}} >= 5 | !!colspan="2"{{!}}Senator (Party)}}{{#ifexpr: {{{maxSens|}}} >= 6 | !!colspan="2"{{!}}Senator (Party)}}{{#ifexpr: {{{maxSens|}}} >= 7 | !!colspan="2"{{!}}Senator (Party)}}{{#ifexpr: {{{maxSens|}}} >= 8 | !!colspan="2"{{!}}Senator (Party)}}{{#ifexpr: {{{maxSens|}}} >= 9 | !!colspan="2"{{!}}Senator (Party)}}{{#ifexpr: {{{maxSens|}}} >= 10 | !!colspan="2"{{!}}Senator (Party)}}{{#ifexpr: {{{maxSens|}}} >= 11 | !!colspan="2"{{!}}Senator (Party)}}
 * Error in Template:Irish Sen table begin: you must set the parameter maxSens }}