Difference between revisions of "Template:Infobox U.S. county/district"

From blackwiki
Jump to navigation Jump to search
imported>Frietjes
(typo)
imported>Frietjes
(simplify, no need for the switch statement, they all use the same link pattern)
 
Line 1: Line 1:
{{#if:{{{district|}}}
+
{{#if:{{{district|}}}|[[{{{state}}}'s {{{district}}} congressional district|{{{district}}}]]}}<noinclude>
|{{#switch: {{{state}}}
 
|Texas
 
|Kansas
 
|Illinois
 
|Arkansas
 
|Massachusetts = {{#ifexist:{{{state}}}'s {{{district}}} congressional district
 
  |[[{{{state}}}'s {{{district}}} congressional district|{{{district}}}]]
 
  |[[{{{state}}}' {{{district}}} congressional district|{{{district}}}]][[Category:Pages using infobox U.S. county with an improper possessive]]
 
  }}
 
|[[{{{state}}}'s {{{district}}} congressional district|{{{district}}}]]
 
}}}}<noinclude>
 
 
{{documentation|content=This subtemplate is used by [[Template:Infobox U.S. county]] to generate links to articles about the state's congressional districts.  It should not be used directly.}}
 
{{documentation|content=This subtemplate is used by [[Template:Infobox U.S. county]] to generate links to articles about the state's congressional districts.  It should not be used directly.}}
 
</noinclude>
 
</noinclude>

Latest revision as of 14:56, 27 February 2017

Template documentation

This subtemplate is used by Template:Infobox U.S. county to generate links to articles about the state's congressional districts. It should not be used directly.