Template:YearInCountryPortalBox/doc
This is a documentation subpage for Template:YearInCountryPortalBox. It may contain usage information, categories and other content that is not part of the original template page. |
This template is used on approximately 89,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
Usage
Lua error in mw.title.lua at line 346: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
{{yearInCountryPortalBox|England}}
will create a portal box featuring England and History.
This is used for example at Category:16th century in England.
The template takes up to three parameters, to handle cases where a portal for a specific topic may not exist. Up to three topics can be entered, starting with the most general and ending with the most specific.
There is also an optional parameter Year. If this is present, the template will include a link to the portal for the relevant decade, if it exists.
Lua error in mw.title.lua at line 346: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
{{yearInCountryPortalBox|United Kingdom|England|London|year=1995}}
will create a portal box featuring London, History and 1970s portals.
If there was no London portal, it would show the England portal instead.
If there was neither a London nor an England portal, it would show the United Kingdom portal instead.
See also