This template employs intricate features of template syntax.
You are encouraged to familiarise yourself with its setup and parser functions before editing the template. If your edit causes unexpected problems, please undo it quickly, as this template may appear on a large number of pages. You can conduct experiments, and should test all major changes, in either this template's sandbox, the general template sandbox, or your user space before changing anything here. |
This template allows for the quick creation of a navigational template for any group of articles which contains the names of Russian federal subjects. It uses ((Navbox))
to create the navigation box.
Note that this template is NOT an alternative to ((Subdivisions of Russia)). That template, as its title states, solely concerns subdivisions of Russia and elaborates on that topic in ways this template does not.
((Russia topic
<!--passed through to Template:Navbox-->
|name =
|state =
|title =
|titlestyle =
|bodystyle =
|groupstyle =
<!--specific to Template:Russia topic-->
|prefix =
|suffix =
|exclude-rep =
|exclude-kri =
|exclude-obl =
|exclude-cit =
|exclude-aob =
|exclude-aok =
))
((subst:PAGENAME))
for this value as a shortcut.One of the following combinations is needed to create the links:
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
.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, a category of federal subjects 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:
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%;
((Russia topic
<!--passed through to Template:Navbox-->
| name = ((subst:PAGENAME))
| title=History of Russia
<!--specific to Template:Russia topic-->
| prefix = History of
))<noinclude>
[[Category:Russia topic navigational boxes|((PAGENAME))]]
</noinclude>
Note: ((subst:PAGENAME)) in the above example would be replaced by History of Russia when this code is saved in Template:History of Russia.
Result: