Template:NavTemplate/SetAuto

From Brickipedia, the LEGO Wiki


Template-info.png Template documentation

This documentation is transcluded from Template:NavTemplate/SetAuto/doc. (edit | history)

  This template is set up to automatically generate a list of set names by year and put it in to a navbox. The template currently supports up to 30 years.

Parameters[edit source]

Required
  • |theme=: The name of the theme you wish to generate the list from.
  • |template name=: The name of the template you are creating.
  • |defaultTab=<year>: The tab which will show up if no year is specified when using the template. Replace <year> with the first year listed in the template.
  • At least two years. These do not need parameter names, just list the years you want.
Optional
  • |header-background-color=: The background colour for the template's header. Defaults to #CCCCCC (grey).
  • |background-color=: The background colour for the rest of the template. Defaults to #EEEEEE (light grey).
  • |link-color=: The background colour for the text in the header. Defaults to #000000 (black).

Example[edit source]

For a template called "Star Wars sets" that wants to take a list of Star Wars sets from the years 2001, 2007 and 2015 with a blue header, yellow background and white text, you should use the following code:

{{NavTemplate/SetAuto
|theme=Star Wars
|template name=Star Wars sets
|defaultTab={{{1|2001}}}
|header-background-color=0000FF
|background-color=FFFF00
|link-color=FFFFFF
|2001
|2007
|2015
}}

This produces:


(Please note that if you are viewing this page from Template:NavTemplate/SetAuto, the tabs will not function due to the way documentation pages and this template is set up. This is not an issue in pages where this template would be actually used. If you wish to click these tabs, please head to Template:NavTemplate/SetAuto/doc.)