Template:Townname/doc

This template inserts a reference to the town name. It can be used in several ways to match the sentence in which it is used. The second argument in the template is optional, but if set, defines the capitalization of the town name. The third argument in the template is also optional, but if set, defines whether or not this town name should be a link.

Usage
This line demonstrates how to show the town name without any capitalizations. Result:

This line demonstrates how to show the town name with a capital letter at the start of the first word. Result:

This line demonstrates how to show the town name with a capital letter at the start of every word. Result:

This line demonstrates how to show the town name in all caps. Result:

This line demonstrates how to show the town name with a capital letter at the start of the first word, while also being a link. Result:

Example
This template can be used by entering the following onto a relevant page, along with filling in any required parameters, along with any optional parameters if the page requires them.