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