Template:Subject by century
Jump to navigation
Jump to search
Centuries: (BCE) 50th · 49th · 48th · 47th · 46th · 45th · 44th · 43rd · 42nd · 41st · 40th · 39th · 38th · 37th · 36th · 35th · 34th · 33rd · 32nd · 31st · 30th · 29th · 28th · 27th · 26th · 25th · 24th · 23rd · 22nd · 21st · 20th · 19th · 18th · 17th · 16th · 15th · 14th · 13th · 12th · 11th · 10th · 9th · 8th · 7th · 6th · 5th · 4th · 3rd · 2nd · 1st · (CE) 1st · 2nd · 3rd · 4th · 5th · 6th · 7th · 8th · 9th · 10th · 11th · 12th · 13th · 14th · 15th · 16th · 17th · 18th · 19th · 20th · 21st · 22nd · 23rd · 24th · 25th ·
This documentation is transcluded from Template:Subject by century/doc.
- Syntax
{{Subject by century|subject = |subjecttrans = |mothercat = |mothercattrans = |image = |imagesize = |border = |style = |nobc = |old = |showall = }}
- Parameters
- subject/1 (mandatory): will produce a "subject by century" navigational hat to be placed on top of every "
Category:nth-century [BC] subject
" page.
Make sure to use the appropriate lowercase initial for correct generation of these category names (in English).- subjecttrans (optional): the translatable name to display in the box if mothercat is not used. This parameter will override the subject parameter used to derive the heading.
- mothercat (optional): the name of the mother category can be specified, without "
[[:Category: ]]
", if different from the default format "subject by century
".- mothercattrans (optional): the translatable name to display in the box if mothercat is used. This parameter will override the mothercat parameter.
- image/img (optional): will add a 20px thumb (for instance a flag) next to the navigation bar. Use image name without "
[[File: ]]
".- imagesize/imgsize/size (optional): will change the size of the image
- border (optional): if this parameter is found (with any value), border will be added around the image (e.g. for flags that may be difficult to distinguish on the background); don't use it if the image is not rectangular (partially transparent) or already includes its own border.
- style/css (optional): additional CSS for the container box to override its default style.
- nobc (optional): if this parameter is found (with any value), the (BC/BCE) or (AD/CE) texts will not appear. This is useful is there are no relevant categories before the 1st century CE.
- old (optional): if this parameter is found (with any value), the list of centuries is terminated in the 20th century, for categories of "old" works created before 1954 (70 years ago, whose copyright is usually extinct). This is useful to track categories containing works which may be public domain (more recent works are usually subject to copyright and licensing requirements, unless this is explicitly stated being public domain from a reliable and verifiable source).
- showall (optional): if this parameter is found (with any value), links to all century categories starting with the 10th century BC will appear, even if they are empty. This parameter will override the nobc parameter. This is useful is there are other relevant categories to create (these will be shown as red links). Use it temporarily, only in the parent category. If this is used, the labels displayed for each century are not translated but indicate the real value used for every target link.
- Simple example
{{Subject by century|sculptures}}
produces:
Sculptures by century: (BCE) 40th century · 31st century · 30th century · 29th century · 28th century · 27th century · 26th century · 25th century · 24th century · 23rd century · 22nd century · 21st century · 20th century · 19th century · 18th century · 17th century · 16th century · 15th century · 14th century · 13th century · 12th century · 11th century · 10th century · 9th century · 8th century · 7th century · 6th century · 5th century · 4th century · 3rd century · 2nd century · 1st century · (CE) 1st century · 2nd century · 3rd century · 4th century · 5th century · 6th century · 7th century · 8th century · 9th century · 10th century · 11th century · 12th century · 13th century · 14th century · 15th century · 16th century · 17th century · 18th century · 19th century · 20th century · 21st century ·
- Use with more parameters
{{Subject by century|subject = architecture in Galicia (Spain)
produces:
|mothercat = Architecture of Galicia (Spain) by century|mothercattrans = {{LangSwitch
|default = Architecture of <bdi>{{Label|Q3908|link=-}}</bdi> by century
|es = Arquitectura de Galicia por siglo
|fr = Architecture de la Galice par siècle
|gl = Arquitectura de Galicia por século
}}
|image = Flag of Galicia.svg|border = 1
|nobc = 1
}}
Architecture of Galicia by century: 7th century · 10th century · 12th century · 13th century · 14th century · 15th century · 16th century · 17th century · 18th century · 19th century · 20th century · 21st century ·
- Use with showall
{{Subject by century | painters|subjecttrans = {{LangSwitch
produces:
|en = Painters
|fr = Peintres
}}
|showall = 1
}}
Painters by century: (BCE) 50th · 49th · 48th · 47th · 46th · 45th · 44th · 43rd · 42nd · 41st · 40th · 39th · 38th · 37th · 36th · 35th · 34th · 33rd · 32nd · 31st · 30th · 29th · 28th · 27th · 26th · 25th · 24th · 23rd · 22nd · 21st · 20th · 19th · 18th · 17th · 16th · 15th · 14th · 13th · 12th · 11th · 10th · 9th · 8th · 7th · 6th · 5th · 4th · 3rd · 2nd · 1st · (CE) 1st · 2nd · 3rd · 4th · 5th · 6th · 7th · 8th · 9th · 10th · 11th · 12th · 13th · 14th · 15th · 16th · 17th · 18th · 19th · 20th · 21st · 22nd · 23rd · 24th · 25th ·
- Internationalisation
- The default heading "subject by century" (only used when the mothercat parameter is not specified) is translated inside this template using the {{LangSwitch}} template. You can add your translations by adding a case with the format
|langcode = ... by century
. - {{BC}}, {{AD}} are used for translating the BC/BCE or AD/CE elements
- {{Century}} is used to translate the centuries (only when showall/all parameters are not set as they will force the English designation used in the target categories).
- See also
- {{Subject by century/sandbox}} for testing
- {{Place by century}} for categories named “<Country> in the <n>th century”