Template:Year nav topic/doc

From NationStates Sports Wiki
Revision as of 12:08, 20 December 2023 by Osarius (talk | contribs) (Created page with "Creates a sidebar navbox for years in a subject. For creating a "cycles" nav box (e.g. "{subject} cycles") see Template:Cycle nav topic. ==Usage== The template expects two parameters: the cycle number, and the topic. It then extrapolates three cycles either side and generates the correct links. {{Year nav topic|1093}} {{Year nav topic||football}} {{Year nav topic}} If no topic is passed, the template inserts "subject", which will likely not work for your purposes....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Creates a sidebar navbox for years in a subject. For creating a "cycles" nav box (e.g. "{subject} cycles") see Template:Cycle nav topic.

Usage

The template expects two parameters: the cycle number, and the topic. It then extrapolates three cycles either side and generates the correct links.

If no topic is passed, the template inserts "subject", which will likely not work for your purposes.

{{Year nav topic|1093}} or {{ynav|1093}} returns the top navbox on the right.

If no cycle number is passed, the template will also not function correctly.

{{Year nav topic||football}} or {{ynav||football}} returns the middle navbox on the right.

If no parameters are passed at all, the output defaults to "1093 in subject" as the middle year.

{{Year nav topic}} or {{ynav}} returns the bottom navbox on the right.