• Home
  • Random
  • Recent changes
  • Special pages
  • Settings
  • About MOASSpedia
  • Disclaimers
MOASSpedia
  • 216.73.216.213
  • Talk
  • Watchlist
  • Contributions
  • Log in

Template:YearInCountryPortalBox

Template Discussion
  • Language
  • Watch
  • History
  • Edit
    • Page information
    • Permanent link
    • What links here
Template documentation[view] [edit] [history] [purge]
WarningThis 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 318: 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 318: 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

  • Template:Year in country category
The above documentation is transcluded from Template:YearInCountryPortalBox/doc. (edit | history)
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages.
Add categories to the /doc subpage. Subpages of this template.
Retrieved from "https://moasspedia.org/w/index.php?title=Template:YearInCountryPortalBox&oldid=39818"
Categories:
  • Pages with script errors
  • Temporal templates
  • Country templates
  • Wikipedia Portal templates
Last edited on 29 March 2018, at 17:40

MOASSpedia

Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • This page was last edited on 29 March 2018, at 17:40.
  • Content is available under Creative Commons Attribution-ShareAlike unless otherwise noted.
  • Privacy policy
  • About MOASSpedia
  • Disclaimers
  • Desktop