Template:Year in Norway: Difference between revisions
Appearance
Content deleted Content added
Allow template page to show what this looks like (per User:Vanisaac's suggestion at WP:VPT) |
|||
Line 1: | Line 1: | ||
<!-- |
|||
** First check that a parameter has been supplied. |
** First check that a parameter has been supplied. |
||
** If it is missing, then display a big red bold warning |
** If it is missing, then display a big red bold warning |
||
-->{{#if:{{{1|}}}|<nowiki/>|<span style="color:red; font-size:130%">'''Template:Year in Norway''': Parameter 1=''year'' required!</span>}}<!-- |
-->{{#if:{{{1|<noinclude>ok</noinclude>}}}|<nowiki/>|<span style="color:red; font-size:130%">'''Template:Year in Norway''': Parameter 1=''year'' required!</span>}}<!-- |
||
** begin the main div which creates the box |
** begin the main div which creates the box |
||
--> |
--> |
||
{| class="infobox" style="text-align: center; width: 270px; font-size:100%;" |
{| class="infobox" style="text-align: center; width: 270px; font-size:100%;" |
||
|- |
|- |
||
|style="background-color:#f3f3f3"|<small>«««<br /> {{#ifexpr:{{{1}}}>=800|[[{{dr|y|y|{{{1}}}|-1|n}} in Norway|{{dr|y|y|{{{1}}}|-1|n}}]]|{{dr|y|y|{{{1}}}|-1|y}}}}<br />{{#ifexpr:{{{1}}}>=801|[[{{dr|y|y|{{{1}}}|-2|n}} in Norway|{{dr|y|y|{{{1}}}|-2|n}}]]|{{dr|y|y|{{{1}}}|-2|y}}}}<br />{{#ifexpr:{{{1}}}>=802|[[{{dr|y|y|{{{1}}}|-3|n}} in Norway|{{dr|y|y|{{{1}}}|-3|n}}]]|{{dr|y|y|{{{1}}}|-3|y}}}}</small> |
|style="background-color:#f3f3f3"|<small>«««<br /> {{#ifexpr:{{{1|{{CURRENTYEAR}}}}}>=800|[[{{dr|y|y|{{{1|{{CURRENTYEAR}}}}}|-1|n}} in Norway|{{dr|y|y|{{{1|{{CURRENTYEAR}}}}}|-1|n}}]]|{{dr|y|y|{{{1}}}|-1|y}}}}<br />{{#ifexpr:{{{1|{{CURRENTYEAR}}}}}>=801|[[{{dr|y|y|{{{1|{{CURRENTYEAR}}}}}|-2|n}} in Norway|{{dr|y|y|{{{1|{{CURRENTYEAR}}}}}|-2|n}}]]|{{dr|y|y|{{{1}}}|-2|y}}}}<br />{{#ifexpr:{{{1|{{CURRENTYEAR}}}}}>=802|[[{{dr|y|y|{{{1|{{CURRENTYEAR}}}}}|-3|n}} in Norway|{{dr|y|y|{{{1|{{CURRENTYEAR}}}}}|-3|n}}]]|{{dr|y|y|{{{1}}}|-3|y}}}}</small> |
||
| style="background:white;" align="center" |<table style="background:inherit"><tr valign="top" width="60px"><td align="center"><!-- |
| style="background:white;" align="center" |<table style="background:inherit"><tr valign="top" width="60px"><td align="center"><!-- |
||
-->{{#ifexpr: 1318 <= {{{1}}} and {{{1}}} < 1397 | [[File:Norwegian Royal Standard flag.png|border|right|80px]]}}<!-- |
-->{{#ifexpr: 1318 <= {{{1|{{CURRENTYEAR}}}}} and {{{1|{{CURRENTYEAR}}}}} < 1397 | [[File:Norwegian Royal Standard flag.png|border|right|80px]]}}<!-- |
||
-->{{#ifexpr: 1397 <= {{{1}}} and {{{1}}} < 1536 | [[File:Flag of the Kalmar Union.svg|border|right|80px]]}}<!-- |
-->{{#ifexpr: 1397 <= {{{1|{{CURRENTYEAR}}}}} and {{{1|{{CURRENTYEAR}}}}} < 1536 | [[File:Flag of the Kalmar Union.svg|border|right|80px]]}}<!-- |
||
-->{{#ifexpr: 1536 <= {{{1}}} and {{{1}}} < 1814 | [[File:Flag of Denmark.svg|border|right|80px]]}}<!-- |
-->{{#ifexpr: 1536 <= {{{1|{{CURRENTYEAR}}}}} and {{{1|{{CURRENTYEAR}}}}} < 1814 | [[File:Flag of Denmark.svg|border|right|80px]]}}<!-- |
||
-->{{#ifexpr: 1814 <= {{{1}}} and {{{1}}} < 1814 | [[File:Flag of Norway (1814-1821).svg|border|right|80px]]}}<!-- |
-->{{#ifexpr: 1814 <= {{{1|{{CURRENTYEAR}}}}} and {{{1|{{CURRENTYEAR}}}}} < 1814 | [[File:Flag of Norway (1814-1821).svg|border|right|80px]]}}<!-- |
||
-->{{#ifexpr: 1814 <= {{{1}}} and {{{1}}} < 1905 | [[File:Norge-Unionsflagg-1844.svg|border|right|80px]]}}<!-- |
-->{{#ifexpr: 1814 <= {{{1|{{CURRENTYEAR}}}}} and {{{1|{{CURRENTYEAR}}}}} < 1905 | [[File:Norge-Unionsflagg-1844.svg|border|right|80px]]}}<!-- |
||
-->{{#ifexpr: 1905 <= {{{1}}} | [[File:Flag of Norway.svg|border|right|80px]]}}<!-- |
-->{{#ifexpr: 1905 <= {{{1|{{CURRENTYEAR}}}}} | [[File:Flag of Norway.svg|border|right|80px]]}}<!-- |
||
--></td><td align="center"><big><span style="font-size:130%">'''{{{1|}}}</span><br /> in<br /> [[Norway]]'''</big></td></tr></table> |
--></td><td align="center"><big><span style="font-size:130%">'''{{{1|{{CURRENTYEAR}}}}}</span><br /> in<br /> [[Norway]]'''</big></td></tr></table> |
||
|style="background-color:#f3f3f3"|<small>»»»<br /> [[{{#expr: {{{1|}}} +1}} in Norway|{{#expr: {{{1|}}}+1}}]]<br /> [[{{#expr: {{{1|}}} + 2}} in Norway|{{#expr: {{{1|}}}+2}}]]<br /> [[{{#expr: {{{1|}}} + 3}} in Norway|{{#expr: {{{1|}}}+3}}]]</small> |
|style="background-color:#f3f3f3"|<small>»»»<br /> [[{{#expr: {{{1|{{CURRENTYEAR}}}}} +1}} in Norway|{{#expr: {{{1|{{CURRENTYEAR}}}}}+1}}]]<br /> [[{{#expr: {{{1|{{CURRENTYEAR}}}}} + 2}} in Norway|{{#expr: {{{1|{{CURRENTYEAR}}}}}+2}}]]<br /> [[{{#expr: {{{1|{{CURRENTYEAR}}}}} + 3}} in Norway|{{#expr: {{{1|{{CURRENTYEAR}}}}}+3}}]]</small> |
||
|- valign="top" |
|- valign="top" |
||
|colspan="3"| |
|colspan="3"| |
||
Line 26: | Line 26: | ||
** for the current decade, and for two decades before and after, but only |
** for the current decade, and for two decades before and after, but only |
||
** if the categories exist --> |
** if the categories exist --> |
||
|<div><small>{{#ifexist: Category:{{DECADE|{{#expr:{{{1|}}}-20}}}} in Norway | |
|<div><small>{{#ifexist: Category:{{DECADE|{{#expr:{{{1|{{CURRENTYEAR}}}}}-20}}}} in Norway | |
||
[[:Category:{{DECADE|{{#expr:{{{1|}}}-20}}}} in Norway|{{DECADE|{{#expr:{{{1|}}}-20}}}}]]{{•}} |}} {{#ifexist: Category:{{DECADE|{{#expr:{{{1|}}}-10}}}} in Norway | |
[[:Category:{{DECADE|{{#expr:{{{1|{{CURRENTYEAR}}}}}-20}}}} in Norway|{{DECADE|{{#expr:{{{1|{{CURRENTYEAR}}}}}-20}}}}]]{{•}} |}} {{#ifexist: Category:{{DECADE|{{#expr:{{{1|{{CURRENTYEAR}}}}}-10}}}} in Norway | |
||
[[:Category:{{DECADE|{{#expr:{{{1|}}}-10}}}} in Norway|{{DECADE|{{#expr:{{{1|}}}-10}}}}]]{{•}} |}} {{#ifexist: Category:{{DECADE|{{{1|}}}}} in Norway | |
[[:Category:{{DECADE|{{#expr:{{{1|{{CURRENTYEAR}}}}}-10}}}} in Norway|{{DECADE|{{#expr:{{{1|{{CURRENTYEAR}}}}}-10}}}}]]{{•}} |}} {{#ifexist: Category:{{DECADE|{{{1|{{CURRENTYEAR}}}}}}} in Norway | |
||
'''[[:Category:{{DECADE|{{{1|}}}}} in Norway|{{DECADE|{{{1|}}}}}]]'''|}}{{#ifexist: Category:{{DECADE|{{#expr:{{{1|}}}+10}}}} in Norway |{{•}} |
'''[[:Category:{{DECADE|{{{1|{{CURRENTYEAR}}}}}}} in Norway|{{DECADE|{{{1|{{CURRENTYEAR}}}}}}}]]'''|}}{{#ifexist: Category:{{DECADE|{{#expr:{{{1|{{CURRENTYEAR}}}}}+10}}}} in Norway |{{•}} |
||
[[:Category:{{DECADE|{{#expr:{{{1|}}}+10}}}} in Norway|{{DECADE|{{#expr:{{{1|}}}+10}}}}]]|}}{{#ifexist: Category:{{DECADE|{{#expr:{{{1|}}}+20}}}} in Norway |{{•}} [[:Category:{{DECADE|{{#expr:{{{1|}}}+20}}}} in Norway|{{DECADE|{{#expr:{{{1|}}}+20}}}}]] |}}</small></div><!-- |
[[:Category:{{DECADE|{{#expr:{{{1|{{CURRENTYEAR}}}}}+10}}}} in Norway|{{DECADE|{{#expr:{{{1|{{CURRENTYEAR}}}}}+10}}}}]]|}}{{#ifexist: Category:{{DECADE|{{#expr:{{{1|{{CURRENTYEAR}}}}}+20}}}} in Norway |{{•}} [[:Category:{{DECADE|{{#expr:{{{1|{{CURRENTYEAR}}}}}+20}}}} in Norway|{{DECADE|{{#expr:{{{1|{{CURRENTYEAR}}}}}+20}}}}]] |}}</small></div><!-- |
||
** End of the decade-categories links --> |
** End of the decade-categories links --> |
||
|- valign="top" |
|- valign="top" |
||
Line 37: | Line 37: | ||
** for the current century, and two centuries before and after, but only |
** for the current century, and two centuries before and after, but only |
||
** if the categories exist --> |
** if the categories exist --> |
||
|<div><small>{{#ifexist: Category:Years of the {{Ordinal|{{#expr:{{CENTURY|{{{1|}}}}}-2}}}} century in Norway | [[:Category:Years of the {{Ordinal|{{#expr:{{CENTURY|{{{1|}}}}}-2}}}} century in Norway|{{Ordinal|{{#expr:{{CENTURY|{{{1|}}}}}-2}}}}]] }}{{•}} {{#ifexist: Category:Years of the {{Ordinal|{{#expr:{{CENTURY|{{{1|}}}}}-1}}}} century in Norway | [[:Category:Years of the {{Ordinal|{{#expr:{{CENTURY|{{{1|}}}}}-1}}}} century in Norway|{{Ordinal|{{#expr:{{CENTURY|{{{1|}}}}}-1}}}}]] }}{{•}} '''{{#ifexist: Category:Years of the {{Ordinal|{{CENTURY|{{{1|}}}}}}} century in Norway | [[:Category:Years of the {{Ordinal|{{CENTURY|{{{1|}}}}}}} century in Norway|{{Ordinal|{{CENTURY|{{{1|}}}}}}}]] }}'''{{#ifexist: Category:Years of the {{Ordinal|{{#expr:{{CENTURY|{{{1|}}}}}+1}}}} century in Norway |{{•}} [[:Category:Years of the {{Ordinal|{{#expr:{{CENTURY|{{{1|}}}}}+1}}}} century in Norway|{{Ordinal|{{#expr:{{CENTURY|{{{1|}}}}}+1}}}}]]}}{{#ifexist: Category:Years of the {{Ordinal|{{#expr:{{CENTURY|{{{1|}}}}}+2}}}} century in Norway |{{•}} [[:Category:Years of the {{Ordinal|{{#expr:{{CENTURY|{{{1|}}}}}+2}}}} century in Norway|{{Ordinal|{{#expr:{{CENTURY|{{{1|}}}}}+2}}}}]] }} </small></div><!-- |
|<div><small>{{#ifexist: Category:Years of the {{Ordinal|{{#expr:{{CENTURY|{{{1|{{CURRENTYEAR}}}}}}}-2}}}} century in Norway | [[:Category:Years of the {{Ordinal|{{#expr:{{CENTURY|{{{1|{{CURRENTYEAR}}}}}}}-2}}}} century in Norway|{{Ordinal|{{#expr:{{CENTURY|{{{1|{{CURRENTYEAR}}}}}}}-2}}}}]] }}{{•}} {{#ifexist: Category:Years of the {{Ordinal|{{#expr:{{CENTURY|{{{1|{{CURRENTYEAR}}}}}}}-1}}}} century in Norway | [[:Category:Years of the {{Ordinal|{{#expr:{{CENTURY|{{{1|{{CURRENTYEAR}}}}}}}-1}}}} century in Norway|{{Ordinal|{{#expr:{{CENTURY|{{{1|{{CURRENTYEAR}}}}}}}-1}}}}]] }}{{•}} '''{{#ifexist: Category:Years of the {{Ordinal|{{CENTURY|{{{1|{{CURRENTYEAR}}}}}}}}} century in Norway | [[:Category:Years of the {{Ordinal|{{CENTURY|{{{1|{{CURRENTYEAR}}}}}}}}} century in Norway|{{Ordinal|{{CENTURY|{{{1|{{CURRENTYEAR}}}}}}}}}]] }}'''{{#ifexist: Category:Years of the {{Ordinal|{{#expr:{{CENTURY|{{{1|{{CURRENTYEAR}}}}}}}+1}}}} century in Norway |{{•}} [[:Category:Years of the {{Ordinal|{{#expr:{{CENTURY|{{{1|{{CURRENTYEAR}}}}}}}+1}}}} century in Norway|{{Ordinal|{{#expr:{{CENTURY|{{{1|{{CURRENTYEAR}}}}}}}+1}}}}]]}}{{#ifexist: Category:Years of the {{Ordinal|{{#expr:{{CENTURY|{{{1|{{CURRENTYEAR}}}}}}}+2}}}} century in Norway |{{•}} [[:Category:Years of the {{Ordinal|{{#expr:{{CENTURY|{{{1|{{CURRENTYEAR}}}}}}}+2}}}} century in Norway|{{Ordinal|{{#expr:{{CENTURY|{{{1|{{CURRENTYEAR}}}}}}}+2}}}}]] }} </small></div><!-- |
||
** End of the century-categories links --> |
** End of the century-categories links --> |
||
|-valign="top" |
|-valign="top" |
||
Line 44: | Line 44: | ||
** Link to [[yyyy in the Denmark]] only for those years when |
** Link to [[yyyy in the Denmark]] only for those years when |
||
** Norway was a part of Denmark-Norway (i.e. 1536–1814 inclusive) |
** Norway was a part of Denmark-Norway (i.e. 1536–1814 inclusive) |
||
-->{{#ifexpr: {{{1|}}} >= 1536 | {{#ifexpr: {{{1|}}} <= 1814 |[[{{{1|}}} in Denmark]]<br /> |}}}}<!-- |
-->{{#ifexpr: {{{1|{{CURRENTYEAR}}}}} >= 1536 | {{#ifexpr: {{{1|{{CURRENTYEAR}}}}} <= 1814 |[[{{{1|}}} in Denmark]]<br /> |}}}}<!-- |
||
** Link to [[yyyy in the Sweden]] only for those years when |
** Link to [[yyyy in the Sweden]] only for those years when |
||
** Norway was in union with Sweden (i.e. 1814–1905 inclusive) |
** Norway was in union with Sweden (i.e. 1814–1905 inclusive) |
||
-->{{#ifexpr: {{{1|}}} >= 1814 | {{#ifexpr: {{{1|}}} <= 1905 |[[{{{1|}}} in Sweden]]<br /> |}}}} [[List of years in Norway]]</small> |
-->{{#ifexpr: {{{1|{{CURRENTYEAR}}}}} >= 1814 | {{#ifexpr: {{{1|{{CURRENTYEAR}}}}} <= 1905 |[[{{{1|}}} in Sweden]]<br /> |}}}} [[List of years in Norway]]</small> |
||
|}<!-- |
|}<!-- |
||
** end sub-table --> |
** end sub-table --> |
||
Line 55: | Line 55: | ||
** is solely to allow the documentation to display examples of template usage |
** is solely to allow the documentation to display examples of template usage |
||
** without categorising the documentation |
** without categorising the documentation |
||
-->{{#ifeq: {{{nocat|}}} | yes | <!-- |
-->{{#ifeq: {{{nocat|<noinclude>yes</noinclude>}}} | yes | <!-- |
||
** Begin categorisation check |
** Begin categorisation check |
||
** if nocat=yes, do nothing |
** if nocat=yes, do nothing |
||
Line 71: | Line 71: | ||
** This is the end of the template. |
** This is the end of the template. |
||
** The remainder is only the documentation |
** The remainder is only the documentation |
||
-- |
--><noinclude> |
||
{{Documentation}} |
{{Documentation}} |
||
<!---Please add metadata to the <includeonly> section at the bottom of the /doc subpage---> |
<!---Please add metadata to the <includeonly> section at the bottom of the /doc subpage---> |
Revision as of 23:14, 7 November 2013
««« 2023 2022 2021 |
|
»»» 2025 2026 2027 | ||||||
|
![]() | This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
This template displays a navigation box for use in articles in the Years in Norway series.
- Syntax:
{{Year in Norway|
year}}
- The year must be a year AD.
Usage
- Include the template in the first line of the article.
- Do not subst the template.
Examples
««« 1813 1812 1811 |
|
»»» 1815 1816 1817 | ||||||
|
{{Year in Norway|1814}}
««« 1996 1995 1994 |
|
»»» 1998 1999 2000 | ||||||
|
{{Year in Norway|1997}}