|
|
(One intermediate revision by the same user not shown) |
Line 1: |
Line 1: |
− | <includeonly><!-- | + | <includeonly><tt><nowiki>{{</nowiki>{{#if:{{{subst|}}}|[[Help:Substitution|subst]]:}}[[{{{LANG|}}}{{{SISTER|}}}{{ns:Template}}:{{{1|}}}|{{{1|}}}]]<!-- |
− | --><div class="NavFrame {{#ifeq:{{{expand|{{{show|}}}}}}|yes|selected}}" style="clear:both; {{{style|}}}"><!--
| + | -->{{#if:{{{2|}}}| |
− | --><div class="NavHead" style="{{{titlestyle|}}}"><!-- | + | |{{{2}}} |
− | -->{{#if:{{{name|}}}|{{Tnavbar2|{{{name}}}|mini=1|style=position:absolute;width:auto;left:0.5em;}}|<!-- | + | }}<!-- |
− | -->{{#ifeq:{{{navbar|}}}|yes|{{Tnavbar2|{{{navtitle|{{PAGENAME}}}}}|mini=1|style=position:absolute;width:auto;left:0.5em;}}}}}}<!-- | + | -->{{#if:{{{3|}}}| |
− | -->'''{{{title}}}'''</div><!-- | + | |{{{3}}} |
− | --><div class="NavContent" style="margin:0.5em; font-size:0.9em; text-align:left; {{{bodystyle|}}}"> | + | }}<!-- |
− | {{{body|}}} | + | -->{{#if:{{{4|}}}| |
− | {{{cat|{{{category|}}}}}} | + | |{{{4}}} |
− | <!--end_NavContent:--></div><!-- | + | }}<!-- |
− | <!---end_NavFrame:---></div></includeonly><noinclude>
| + | -->{{#if:{{{5|}}}| |
− | <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> | + | |{{{5}}} |
− | {{tlx|{{PAGENAME}}}} is a generic Navigational template. | + | }}<!-- |
| + | -->{{#if:{{{6|}}}| |
| + | |{{{6}}} |
| + | }}<!-- |
| + | -->{{#if:{{{7|}}}| |
| + | |{{{7}}} |
| + | }}<!-- |
| + | -->{{#if:{{{8|}}}| |
| + | |{{{8}}} |
| + | }}<!-- |
| + | -->{{#if:{{{9|}}}| |
| + | |{{{9}}} |
| + | }}<!-- |
| + | -->{{#if:{{{10|}}}| |
| + | |{{{10}}} |
| + | }}<!-- |
| + | -->{{#if:{{{11|}}}| |
| + | |{{{11}}} |
| + | }}<!-- |
| + | -->{{#if:{{{12|}}}| |
| + | |''...'' |
| + | }}<nowiki>}}</nowiki></tt></includeonly><noinclude> |
| | | |
− | ==Blank syntax (basic)==
| + | {{documentation}} |
− | <pre>{{Navigation
| + | <!-- Add categories and interwikis to the /doc subpage, not here! --> |
− | |title =
| |
− | |body =
| |
− | }} | |
− | </pre>
| |
− | | |
− | == Parameters ==
| |
− | | |
− | ===Mandatory===
| |
− | ; ''title'' : Text that appears centered in the titlebar (the top bar). Usually this is the template's topic, i.e. a succinct description of the body contents.
| |
− | | |
− | ; ''body'' : The material contained by the template, usually a list or list of links. <!--Pipe character not the only way to separate links: "Use &#124; to separate links. It is not possible to directly include a pipe ("|") in the contents as this symbol is used to separate parameters. &#124; or {{tl|!}} can be used in the body to produce a pipe symbol."--> Format is inline.
| |
− | | |
− | ===Optional===
| |
− | ; ''navbar'' : Whether to include navigation links. Includes when set to yes, otherwise does not.
| |
− | | |
− | ; ''navtitle'' : What name to use for the navigation links. Defaults to the current page name.
| |
− | | |
− | ; ''style'' : Any CSS styling to apply to the whole navigation;
| |
− | | |
− | ; ''titlestyle'' : Any CSS styling to apply to the titlebar; usually a background color (i.e. <code>titlestyle = background:''color''</code>).
| |
− | | |
− | ; ''bodystyle'' : Any CSS styling to add to the body, e.g. "text-align:center;" to center the body's content in place of its default left alignment.
| |
− | | |
− | ; ''category'' : The category or categories to which a page transcluding the template will become a member. Place <code><nowiki><includeonly></nowiki></code> ...... <code><nowiki></includeonly></nowiki></code> either side of the category or categories to ensure the template itself isn't made a member. Use of this parameter is discouraged; when editing a page on which the template is transcluded, no mention of the category or categories added by this parameter is apparent.
| |
− | | |
− | ; ''show''' : Whether to expand the body by default. Expands when set to yes, otherwise not. In the example, below, the third box specifies "show = yes", forcing the third box to expand.
| |
− | | |
− | ==Example==
| |
− | ===Code===
| |
− | | |
− | <pre>
| |
− | {{Navigation
| |
− | |title = Countries of Central Asia
| |
− | |body = Afghanistan{{·}} Kazakhstan{{·}} Kyrgyzstan{{·}} Mongolia{{·}} Russia{{·}} Tajikistan{{·}} Turkmenistan{{·}} Uzbekistan
| |
− | }}
| |
− | | |
− | {{Navigation
| |
− | |navbar = yes
| |
− | |title = Countries of Central Asia
| |
− | |body = Afghanistan{{·}} Kazakhstan{{·}} Kyrgyzstan{{·}} Mongolia{{·}} Russia{{·}} Tajikistan{{·}} Turkmenistan{{·}} Uzbekistan
| |
− | }}
| |
− | | |
− | {{Navigation
| |
− | |navbar = yes
| |
− | |title = Countries of Central Asia
| |
− | |body = Afghanistan{{·}} Kazakhstan{{·}} Kyrgyzstan{{·}} Mongolia{{·}} Russia{{·}} Tajikistan{{·}} Turkmenistan{{·}} Uzbekistan
| |
− | |show = yes
| |
− | }}
| |
− | </pre>
| |
− | | |
− | ===Result===
| |
− | {{msg:{{BASEPAGENAME}}
| |
− | |title = Countries of Central Asia
| |
− | |body = Afghanistan{{·}} Kazakhstan{{·}} Kyrgyzstan{{·}} Mongolia{{·}} Russia{{·}} Tajikistan{{·}} Turkmenistan{{·}} Uzbekistan
| |
− | }}
| |
− | | |
− | {{msg:{{BASEPAGENAME}}
| |
− | |navbar = yes
| |
− | |title = Countries of Central Asia
| |
− | |body = Afghanistan{{·}} Kazakhstan{{·}} Kyrgyzstan{{·}} Mongolia{{·}} Russia{{·}} Tajikistan{{·}} Turkmenistan{{·}} Uzbekistan
| |
− | }}
| |
− | | |
− | {{Navigation
| |
− | |navbar = yes
| |
− | |title = Countries of Central Asia
| |
− | |body = Afghanistan{{·}} Kazakhstan{{·}} Kyrgyzstan{{·}} Mongolia{{·}} Russia{{·}} Tajikistan{{·}} Turkmenistan{{·}} Uzbekistan
| |
− | |show = yes
| |
− | }}
| |
− | | |
− | [[Category:Navigational templates]]
| |
| </noinclude> | | </noinclude> |