Template:Eras

From Droid Reference Library
Jump to navigation Jump to search

Usage instructions

Add {{Eras}} to the top of the article page.

{{Eras}}

As standard, order the template's fields like so:

{{Eras|btr|old|imp|reb|new|njo|leg|real|featured|good|comp|former|fga|fca|protection level|type=canon|canon=Some article|legends=Some article|hide=1|title=''Avenger''|title2=''Imperial''-class}}

Template:Eraicon defines the following arguments that may be used (all are case-insensitive):

Titles

  • title - use to italicize the part of the article title that is not in parentheses. Similarly, this parameter is also used to italicize or otherwise modify the title displayed when the article name includes "/Canon".
  • title2 - use if the page's name includes a parenthetical descriptor and you wish to italicize part of the parenthetical descriptor.
  • notitle - used to disable the title functionality, allowing for articles with mid-title parentheses to be unaffected.

Canon/Legends specifications

  • type - use if an article exists only in the new continuity, or you need to display the banners on a real-world article. Only takes "canon" or "legends" as values.
  • legends - page name of the Legends article for the subject; defaults to "PAGENAME/Legends" (unless the current article ends with "/Canon", in which case this is subtracted)
  • canon - page name of the canon article for the subject; defaults to subtracting "/Legends" from the current page name (unless this name lacks this suffix, in which case "/Canon" is added)
  • noncanon - overrides the application of the Legends or Canon categories, preventing redundant categorization when the {{Noncanon}} template is used.
  • hide - hides the tab system. Can be used when articles in both continuities have identical names but are about different subjects and should therefore not be linked.

Including a publishing era (see below) negates the use for type specification, as publishing eras are Legends only.

Publishing eras (Legends only)

Other

Protection specifications

  • fprot - Articles fully protected against editing and/or moving
  • sprot - Articles semi-protected against editing and/or moving
  • ssprot - Articles super-semi-protected against editing
  • mprot - Articles fully protected against moving only
  • uprot - Files fully protected against uploading only

Note on banners: This template will not display the Legends banners on any non-mainspace article or any article that includes "real" as one of its parameters. If you wish to override this (for example, a video game or novel article), add either "canon" or "legends" as one of the parameters in the template to generate the correct banner.

Note on categories: Featured, former featured, good, former good, comprehensive, former comprehensive, fully protected, semi-protected, super-semi-protected, move protected articles, and the upload protected files are added automatically to their respective categories: Category:Wookieepedia featured articles, Category:Wookieepedia former featured articles, Category:Wookieepedia good articles, Category:Wookieepedia former good articles, Category:Wookieepedia comprehensive articles, Category:Wookieepedia former comprehensive articles, Category:Protected, Category:Semi-protected articles, Category:Super-semi-protected articles, Category:Move protected articles, and Category:Upload protected files.

Additional notes: The options that include the suffix "prot" will automatically detect the actual protection level on the page (except "ssprot", which uses the AbuseFilter and thus must be checked manually). If the protection level does not match the icon used, the icon will not be displayed and the page will be automatically added to Category:Pages with incorrect protection icons. Also, if the parameter does not match a valid option, the page will be placed into Category:Pages with bad parameters in Template:Eras.

Example

{{Eras|imp|reb|new}}