Template:Grantville

From Wikipedia, the free encyclopedia

Grantville

This template is a typing aid for the many times one needs to reference the fictional town of Grantville in the 20+ 1632 series book articles, plus their support articles.

Output modes
the template takes any value for parameters {{{1}}}, {{{n}}}, {{{s}}} and {{{2}}}
In brief,
  1. Setting {1} or {n} defeats displaying Grantville as a link, {n} also defeats linking (SoTF).
  2. Setting {2} or {s} selects to add the parenthesized State of Thuringia-Franconia abbreviation 'SoTF' after. {n} controls whether that appendage forms and displays as a link or just text.
Use {s} when both link forms are wanted in succession; in that sense, {2} is just a convenient way to define s=yes and n=yes controlling co-generation onto "Grantville " of the suffix "(SoTF)" as a link or not.

Abbreviating {{{1}}}, {{{2}}}, {{{n}}} and {{{s}}} as {1}, {2}, {n} and {s}...

{1} SET and {s}... undefined... gives "Grantville"  (nolinks at all)
{1} SET and {s}... SET      ... gives "Grantville ({{SoTF}})" (one link)
{1}  NO and {s}... SET      ... gives "[[Grantville (1632 series)|Grantville]] ({{SoTF}})"

{1}  NO and {n}... Defined  ... gives [[Grantville (1632 series)|Grantville]] (SoTF)
{1}  NO and {2}... set is impossible, use optional "|s= anything" (above)

gives output "Grantville (SoTF)" (without any links)