Template:Navseasoncats with decades below year
This template uses Lua: |
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. Remember that you can conduct experiments, and should test all improvements, in either the general Template sandbox or your user space before changing anything here. |
This is a helper template for building navigation boxes in by-year chronology templates.
It uses the {{Navseasoncats}}, and adds a row below of links to decades
This template uses intricate syntax, so it should not be deployed directly on categories. It should be used only in category header templates, such as {{Year in country category}}
Usage
This template relies on the category title already having been parsed and split. These split components are then used to build the navbox.
{{Navseasoncats with decades below year|prefix|year|suffix}}
- prefix = the text before the year
- year = the year
- suffix = the text before the year
Note that spaces must be reproduced exactly as per the page title. The template will not add or remove any spaces.
Examples
{{Navseasoncats with decades below year||1857| in New York (state)}}
|
{{Navseasoncats with decades below year|Organizations established in |1903|}}
|
Example errors
{{Navseasoncats with decades below year||1968|in Northern Ireland}}
|
This example breaks because there should be a space before the word "in".
Here it is done properly
{{Navseasoncats with decades below year||1968| in Northern Ireland}}
|
See also
The above documentation is transcluded from Template:Navseasoncats with decades below year/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |