Template:Infobox UK constituency/year: Difference between revisions
Appearance
Content deleted Content added
m syntaxhighlight lang="wikitext" |
|||
(10 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
{{#switch:{{{1|}}} |
{{#switch:{{{1|}}} |
||
|uk=<!-- |
|||
|uk={{#ifeq:{{{3}}}|1974|[[United Kingdom general election, February 1974|{{{{{2}}} date|{{{3}}}}}]]|{{#ifexist:United Kingdom general election, {{{3}}} |
|||
# If the parliament is UK (meaning UK Parliament at Westminster or its predecessors), try to create a link |
|||
⚫ | |||
# ... but we treat 1987 as a special case, so process it here |
|||
⚫ | |||
-->{{#iferror: {{#expr: {{{3|}}} > 0 }}| {{{3|}}} |{{#ifeq:{{{3|}}}|1974|<!-- |
|||
}}}} |
|||
# 1974 was a year of 2 elections. |
|||
|#default={{{{{2}}} date|{{{3}}}}} |
|||
# Boundary changes took effect in February 1974, so if the year is 1974, we link to the Feb 1974 election |
|||
⚫ | |||
# alternatively |
|||
--> | {{Infobox UK constituency/year/election-linker|{{{1}}}}|{{{2}}}|{{{3|}}}}}<!-- |
|||
# End of 1974 test |
|||
-->}}}}<!-- |
|||
# DEFAULT value is applied if the Parliament is not UK |
|||
⚫ | |||
}}<noinclude> |
}}<noinclude> |
||
< |
<syntaxhighlight lang="wikitext">{{/year |
||
|{{{parliament}}} |
|{{{parliament}}} |
||
|start or end |
|start or end |
||
|{{{year}}} |
|{{{year}}} |
||
}}</ |
}}</syntaxhighlight> |
||
</noinclude> |
</noinclude> |
Latest revision as of 19:04, 21 May 2023
{{{{{2}}} date|{{{3}}}}}
{{/year
|{{{parliament}}}
|start or end
|{{{year}}}
}}