Jump to content

Template:Navigation: Difference between revisions

From IdeaWazaWiki
wikademia>Darklama
mNo edit summary
wikademia>Darklama
mNo edit summary
Line 1: Line 1:
<includeonly><!--
<includeonly><!--
--><div class="NavFrame {{#ifeq:{{{show|}}|yes|selected}}" style="clear:both; {{{style|}}}"><!--
--><div class="NavFrame {{#ifeq:{{{show|}}}|yes|selected}}" style="clear:both; {{{style|}}}"><!--
--><div class="NavHead"  style="{{{titlestyle|}}}"><!--
--><div class="NavHead"  style="{{{titlestyle|}}}"><!--
-->{{#ifeq:{{{navbar|}}}|yes|{{Tnavbar2|{{PAGENAME}}|mini=1|style=position:absolute;width:auto;left:0.5em;}}}}<!--
-->{{#ifeq:{{{navbar|}}}|yes|{{Tnavbar2|{{PAGENAME}}|mini=1|style=position:absolute;width:auto;left:0.5em;}}}}<!--

Revision as of 20:59, 10 September 2007

{{Navigation}} is a generic Navigational template.

Blank syntax (basic)

{{Navigation
|title = 
|body  = 
}}

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. Format is inline.

Optional

navbar
Whether to include navigation links. Includes when set to true, otherwise does not.
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. titlestyle = background:color).
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 <includeonly> ...... </includeonly> 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'
By default the navigation body is collapsed. This allows the body to be shown by default instead.

Example

Code

{{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
}}

Result