Predloga:Navigacijska predloga zvezne države ZDA
Iz Wikipedije, proste enciklopedije
[[Slika:{{{flag_image}}}|75x50px|border|]] |
{{{capital}}} (glavno mesto) |
---|---|
{{{group1}}} |
{{{body1}}} |
{{{group2}}} |
{{{body2}}} |
{{{group3}}} |
{{{body3}}} |
{{{group4}}} |
{{{body4}}} |
{{{group5}}} |
{{{body5}}} |
{{{group6}}} |
{{{body6}}} |
{{{group7}}} |
{{{body7}}} |
{{{group8}}} |
{{{body8}}} |
[uredi] Usage
This template is the master template for all of the United States state templates and territory templates (and DC). A sample is shown here:
{{Navigacijska predloga zvezne države ZDA | template_name = New York | name = [[New York]] | type = [[Zvezna država ZDA|Zvezna država]] | capital = [[Albany, New York|Albany]] | color = #ccccff | flag_image = Flag of New York.svg | flag_caption = Zastava New Yorka | title1 = [[:Kategorija:New York|Teme]] | body1 = [[Zgodovina New Yorka|Zgodovina]] {{navpičnica}} [[Seznam kolidžev in univerz v zvezni državi New York|Izobraževanje]] {{navpičnica}} [[Politika v zvezni državi New York|Politika]] {{navpičnica}} ... | title2 = [[Regije Združenih držav Amerike#New York|Regije]] | body2 = [[Adirondack Mountains|Gorovje Adirondack]] {{navpičnica}} [[Capital District|Capital District]] {{navpičnica}} [[Catskill Mountains|Gorovje Catskill]] {{navpičnica}} ... | title3 = [[Seznam mest v zvezni državi New York|Mesta]] | body3 = [[Albany, New York|Albany]]/[[Schenectady, New York|Schenectady]]/[[Troy, New York|Troy]] {{navpičnica}} [[Binghamton, New York|Binghamton]] {{navpičnica}} [[Buffalo, New York|Buffalo]]/[[Niagara Falls, New York|Niagara Falls]] {{navpičnica}} ... }} |
Albany (glavno mesto) |
|
---|---|
Teme |
Zgodovina ǀ Izobraževanje ǀ Politika ǀ ... |
Regije |
Gorovje Adirondack ǀ Capital District ǀ Gorovje Catskill ǀ ... |
Mesta |
Albany/Schenectady/Troy ǀ Binghamton ǀ Buffalo/Niagara Falls ǀ ... |
There are a total of 7 title/body pairs, so you can use up to "title7" and "body7" (of course, more can easily be added at any time).
In addition, there are a few more optional parameters for special cases:
- text_color
- use this one to change 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 (see Template:Nevada, Template:Maine, and Template:Hawaii)
- seat
- used for the seat of government for Template:American Samoa
- subtitle
- used only for Template:District of Columbia to say "Capital of the United States" because DC has no capital of its own
- template_name
- The name of the template, which is needed for the "v(iew) · d(iscuss) · e(dit)" links to work properly. You can enter
template_name={{subst:PAGENAME}}
as a shortcut.
- state
state=autocollapse
: (default) the navigation box will start out collapsed if there are two or more collapsible tables on the same page.state=collapsed
: the navigation box will always start out in a collapsed state.- blank or anything other than the above (
state=expanded
, etc.) : always start out in an expanded state.