USA/CommonState/doc View history

Revision as of 21:12, 15 July 2014 by Kentsmith9 (talk | contribs) (added talk page data)
This is a documentation subpage for [[::USA/CommonState]].
It contains usage information, categories and other content that is not part of the original article.

This template is part of the CommonState template suite. It is currently only set up to work on the United States and its territories.

Usage

The primary template, Template:Tlm, is placed on each state page. It includes both code and displayed text that is used to combine the common guidance and the individual state unique guidance.

Related templates

This (main namespace) template Template:Tlm is called from the Template:Tlm template. It is the common logic used on the {{:USA/CommonState}} template to determine if the universal content should come before or be displaced by the unique state content, and if the unique content subpage is not present, it provides a link to generate a unique content page. It has two unnamed parameters that must be used in the following order, but only the first parameter is required:

First parameter (required): The name of the subpage for the section.

Second parameter (optional): Add |nocommon to allow the state unique content to displace the common content. Developed for the Camera section that required state unique parameters to control legality of cameras in the state. Generally it should not be set for a section.

Other related templates