Difference between revisions of "Template:US state navigation box"

From Ballotpedia
Jump to: navigation, search
m (Protected "Template:US state navigation box" ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
(remove sunshine review reference)
Line 14: Line 14:
'''{{{capital}}}''' ([[Sunshinereview:List of capitals in the United States|<span style="color:{{{text_color|inherit}}};">capital</span>]])
'''{{{capital}}}''' ([[List of capitals in the United States|<span style="color:{{{text_color|inherit}}};">capital</span>]])

Latest revision as of 10:40, 23 November 2013

[edit] Template-info.png Template documentation

{{US state navigation box}} is a meta-template used for each U.S. state, territory, and the District of Columbia navbox.



The name of the template, which is needed for the "view • talk • edit" links to work properly on all of the pages where the template is used on. You can enter {{subst:PAGENAME}} for this value as a shortcut.
Combines the {{{type}}} and {{{name}}} parameters.
Image to appear at the top left of the template in the titlebar. Only supply the image name, not the full wiki syntax. Example:
flag_image = Flag of New York.svg
Subtitle to appear at the left of each bodyn
There are a total of 8 group/list pairs, so you can use up to group8 and list8. Additional items can easily be added to the template if needed.


Lists the capital below the state
Changes the default background color for the main title and sidebar titles, i.e.
color = #2e8b57
Working examples: {{California}}, {{Maryland}}, and {{Pennsylvania}}.
Text to appear when the mouse is held over the image.
Changes the default text color for the main title and sidebar titles. Note that you will still need to manually change the color of any wikilinks using a span tag, i.e.
[[List of Nevada counties|<span style="color:#ffd700;">Counties</span>]]
Working examples: {{Nevada}}, {{Maine}}, and {{Hawaii}}.
Used for the seat of government for {{American Samoa}}.
state [autocollapse, uncollapsed, collapsed]
autocollapse: (default) the navigation box will start out collapsed if there are two or more collapsible tables on the same page.
collapsed : the navigation box will always start out in a collapsed state.
expanded or blank : always start out in an expanded state.
Used only on {{District of Columbia}} to say "Capital of the United States" since DC has no capital.
Adds an image to the right of the body area. Use only if there is a lot of extra whitespace at the right side of the body area (for example Template:Hawaii or Template:American Samoa). It is recommended to use a map to fill the space, similar to Template:US county navigation box. Example:
image = [[Image:example.jpg|250px]]



{{US state navigation box
| template_name = {{subst:PAGENAME}}
| title   = [[U.S. State|State]] of [[New York]]
| capital = [[Albany, New York|Albany]]
| flag_image   = Flag of New York.svg
| flag_caption = Flag of New York

| group1 = [[:Category:New York|Topics]]
| body1  =
[[History of New York|History]] {{!}} 
[[List of colleges and universities in New York|Education]] {{!}}
[[Politics of New York|Politics]] {{!}}  ...

| group2 = [[Regions of the United States#New York|Regions]]
| body2  =
[[Adirondack Mountains]] {{!}}
[[Capital District]] {{!}}
[[Catskill Mountains]] {{!}}  ...

| group3 = [[List of cities in New York|Metro areas]]
| body3  = 
[[Albany, New York|Albany]]/[[Schenectady, New York|Schenectady]]/[[Troy, New York|Troy]] {{!}} 
[[Binghamton, New York|Binghamton]] {{!}}
[[Buffalo, New York|Buffalo]]/[[Niagara Falls, New York|Niagara Falls]] {{!}}  ...


See also

sl:Predloga:Navigacijska predloga zvezne države ZDA