From Wikipedia, the free encyclopedia
यस ढाँचामा अप्ठ्यारा सुविधाहरू रहेका छन्। कृपया यस ढाँचालाई सम्पादन गर्नु पूर्व यस ढाँचाको व्यवस्थापन तथा पार्सर प्रणालीहरूसँग परिचित हुनुपर्छ र पनि यदि तपाईँले गरेको सम्पादनबाट कुनै जटिल तथा अप्रत्याशित समस्या आएमा तत्कालै आफ्नो सम्पादन फर्काई दिनुहोला, किनकि यो ढाँचा अत्यधिक सङ्ख्याका लेख/पृष्ठहरूमा प्रयोग भइरहेको छ। स्मरण रहोस्: तपाईँ प्रयोग आदि गर्न सक्नुहुन्छ तर यहाँ कुनै पनि प्रयोग गर्नुपूर्व सबै प्रयोग सामान्य ढाँचा प्रयोगस्थलमा अथवा आफ्नो प्रयोगकर्ता प्रयोगस्थलमा गर्नुहोस्। |
This template allows for the quick creation of a navigational template for any group of articles which contains the names of the U.S. states. It uses {{Navbox}}
to create the navigation box.
{{United States topic <!--passed through to Template:Navbox--> |name = |state = |title = |titlestyle = |bodystyle = |groupstyle = <!--specific to Template:United States topic--> |prefix = |suffix = |exclude-wdc = |exclude-ter = |exclude-isl = }}
{{subst:PAGENAME}}
for this value as a shortcut.One of the following combinations is needed to create the links:
|prefix = List of airports in
would create a title List of airports in the United States and a body containing state names linked to List of airports in Alabama, List of airports in Alaska, etc.|suffix = National Guard
would create a title United States National Guard and a body containing state names linked to Alabama National Guard, Alaska National Guard, etc.|prefix = List of
and |suffix = rivers
would create a title List of United States rivers and a body containing state names linked to List of Alabama rivers, List of Alaska rivers, etc.autocollapse
will start out collapsed if there are two or more tables on the same page that use collapsible. If set to collapsed
, the navbox will always start out in a collapsed state. If set to blank or anything other than autocollapse
or collapsed
, the navbox will always start out in an expanded state.autocollapse
.title = [[List of rivers of the United States|Rivers in the United States]]
generates the title Rivers in the United States.Tnavbar
. If set to plain
, the v • d • e links on the left side of the titlebar will not be displayed, and padding will be automatically used to keep the title centered. Use off
to remove the v • d • e links, but not apply padding (this is for advanced use only; the "plain" option should suffice for most applications where a navbar is not desired). Note that it is highly recommended that one does not hide the navbar, in order to make it easier for users to edit the template, and to keep a standard style across pages.In some instances the District of Columbia, U.S. Territories (Insular Areas) or U.S. Minor Outlying Islands may not have their own articles on particular topics. To disable their inclusion in the template and avoid unnecessary red links, add any or all of the following parameters:
Some templates may require a list of links not already included in the template. These can be specified as follows:
Links for the District of Columbia use "Washington, D.C.", links for the state of Georgia use "Georgia (U.S. state)" and links for the state of New York use "New York". The following parameters allow for substitution where the article name does not use the default.
| DC = District of Columbia
| GA = Georgia
| NY = New York State
| WA = Washington
titlestyle = background: #0000FF;
titlestyle = background: blue;
background: #ccccff;
abovestyle = background:#ddddff;
belowstyle = background:#ddddff;
groupstyle = background:#ddddff; text-align:right; white-space:nowrap;
liststyle = width:100%; font-size:95%;
belowstyle = border-top: #ccccff 1px solid;
background: #ddddff;
groupstyle = background:#6AFB92; vertical-align:top;
background: #ddddff; text-align:right; white-space:nowrap;
liststyle = padding: 5px 10px 5px 10px;
width:100%; font-size:95%;
{{United States topic |title = [[History of the United States]] by political division |prefix = History of }}
This example also shows the use of the titlestyle to change the background color and the groupstyle parameters to change the background color and vertical alignment of text.
{{United States topic |title = [[List of airports in the United States|Airports in the United States]] |titlestyle = background: #64E986; |groupstyle = background: #6AFB92; vertical-align: top; |prefix = List of airports in |WA = Washington |exclude-wdc = y |exclude-isl = y }}
This example also shows the use of the liststyle parameter to add some extra padding around the list, the group1 parameter to remove the "States" heading, and the GA parameter to change link from "Georgia (U.S. state)" to "Georgia".
{{United States topic |liststyle = padding: 5px 10px 5px 10px; |group1 = |prefix = List of |suffix = -related topics |GA = Georgia |exclude-wdc = y |exclude-ter = y |exclude-isl = y }}
Note the use of an underscore in place of the leading space in the suffix. This is done to accommodate the use of suffixes without a leading space, as in the previous example. A title should be specified to avoid the underscore appearing in the title. This example also uses the DC parameter to change link from "Washington, D.C." to "District of Columbia".
{{United States topic |title = [[List of rivers of the United States|Rivers in the United States]] |prefix = List of |suffix = _rivers |DC = District of Columbia |WA = Washington |exclude-isl = y }}
This example also shows use of the group5 and list5 parameters to add a group and list.
{{United States topic <!--passed through to Template: Navbox --> | title = [[National Guard of the United States|National Guard]] in the [[संयुक्त राज्य अमेरिका|United States]] | group5 = {{nowrap|[[Federal district]]<br/>and [[insular area|territories]]}} | list5 = [[District of Columbia National Guard|District of Columbia]]{{·}} [[Puerto Rico National Guard|Puerto Rico]]{{·}} [[Virgin Islands National Guard|U.S. Virgin Islands]] <!-- specific to Template: United States topic --> | suffix = _National Guard | GA = Georgia | WA = Washington | exclude-wdc = y | exclude-ter = y | exclude-isl = y
Code used to create Template:Hospitals in the United States:
{{United States topic <!--passed through to Template:Navbox--> | name = {{subst:PAGENAME}} |title=[[List of hospitals in the United States|Hospitals in the United States]] <!--specific to Template:United States topic--> | prefix = List of hospitals in | WA = Washington | exclude-ter = y | exclude-isl = y }}<noinclude> [[Category:United States topic navigational boxes|{{PAGENAME}}]] </noinclude>
Note: {{subst:PAGENAME}} in the above example would be replaced by Hospitals in the United States when this code is saved in Template:Hospitals in the United States.
Result:
Africa | Asia | Europe | Oceania | North America | South America | |
---|---|---|---|---|---|---|
World | {{Continents of the world}} · {{Regions of the world}} · {{Lists of countries by continent}} | |||||
Generator | {{Africa topic}} | {{Asia topic}} | {{Europe topic}} | {{Oceania topic}} | {{North America topic}} | {{South America topic}} |
{{Americas topic}} | ||||||
{{African topic}} | {{Asian topic}} | {{European topic}} | {{Oceanic topic}} | {{North American topic}} | {{South American topic}} | |
{{American topic}} | ||||||
{{Continent topic}} · {{Southeast Asia topic}} · {{United States topic}} · {{Caribbean topic}} · {{Latin America and the Caribbean topic}} | ||||||
"Countries of..." | {{...Africa}} | {{...Asia}} | {{...Europe}} | {{...Oceania}} | {{...North America}} | {{...South America}} |
{{...the Americas}} | ||||||
"List of...capitals" | {{...African...}} | {{...Asian...}} | {{...European...}} | {{...Oceanian...}} | {{...North American...}} | {{...South American...}} |
Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.