1,243 bytes added
, 05:23, 9 February 2022
<includeonly>{{#if: {{{1|}}}<!-- #We have a country parameter
# If it contains "%%", then it is two portal
# names, which need to be split
-->| {{#ifeq: {{#invoke:String|match|{{{1|}}}|%%|nomatch=notmatched}}| notmatched<!--
-->|<!-- # No "%%", so it's just one entry
-->{{Portal|nominimum=yes<!--
-->|{{{1|}}}<!--
-->|History<!--
-->|Geography<!--
-->|{{#invoke:FindYDCportal|findydcportal|{{{year|}}}}}<!--
-->}}<!--
-->|<!-- # We have a "%%", so it's two portal names
-->{{Portal|nominimum=yes<!--
-->|{{#invoke:String|sub|{{{1|}}}|1|{{#expr: {{#invoke:String|find|{{{1|}}}|%%}} - 1}} }}<!--
-->|{{#invoke:String|sub|{{{1|}}}|{{#expr: {{#invoke:String|find|{{{1|}}}|%%}} + 2}} }}<!--
-->|History<!--
-->|{{#if: {{{year|}}}<!--
-->| {{#invoke:FindYDCportal|findydcportal|{{{year|}}}}}<!--
-->}}<!--
-->}}<!--
-->}}<!--
-->|{{Portal|nominimum=yes<!--
-->|History<!--
-->|{{#invoke:FindYDCportal|findydcportal|{{{year|}}}}}<!--
-->}}<!--
-->}}</includeonly>