Changes

Jump to navigation Jump to search
3,796 bytes added ,  10:40, July 18, 2007
moved from Navbox_basic
<!--
THIS IS A MASTER TEMPLATE.
DO NOT EDIT WITHOUT DISCUSSING WITH ORIGINAL
AUTHOR OR SYSOP FAMILIAR WITH TEMPLATES
-->
<includeonly>
<table class="infobox" style="float: center; text-align: center; font-size: 80%; clear:right; background:white; border: 2px solid green;" cellspacing="0" cellpadding="2">
{| class="navbox" cellpadding="1" cellspacing="0" width={{{width|100}}}% style="float: center; margin: 0 0 0 0; text-align:center; border: 1px solid #995;"
|height="25" style="font-size: 95%; background-color:{{{titleback-color}}}; text-align:center; margin-bottom:5px;" |'''[[{{{link}}}<span style="color:{{{titletext-color}}}">{{{linktext}}}</span> ]]'''
|---
|style="font-size: 85%; color:{{{bodytext-color}}} ;background-color:{{{bodyback-color}}};"|{{{body}}}
|-
|}
</includeonly>

<!-----------------------Documentation--------------------->
<noinclude>
[[Category: Template]]
{{TemplateDoc|pages=Navigation box templates|purpose=Info box|cat=}}
{{Parms|
{{Parm|width |Width of box in per cent |no |Default 100}}
{{Parm|titleback-color|Title bar background color|no |defined color name or hex value (#xxyyzz) }}
{{Parm|titletext-color|Title bar text color |no | idem }}
{{Parm|bodyback-color |Body background color |no | idem }}
{{Parm|bodytext-color |Body text color |no | idem }}
}}

This template is a constructor for '''''bottom navbox templates'''''. The new template takes three extra parameters:
*<nowiki>{{{link}}}{{!}}</nowiki>
*<nowiki>{{{linktext}}}</nowiki>
*<nowiki>{{{body}}}</nowiki>

<!----------------Format for sub-template ----------------->

===Sample text block===

Copy and paste the following to new navbox template.

<pre>

<nowiki><</nowiki>includeonly<nowiki>></nowiki>
<nowiki>{{</nowiki>Tnavbox_basic
|titleback-color=
|titletext-color=
|bodyback-color=
|bodytext-color=
|link=<nowiki>{{#if:{{{link|}}} | <!--then-->{{{link}}}{{!}} | <!--else-->}}</nowiki>
|linktext=<nowiki>{{{linktext}}}</nowiki>
|body=<nowiki>{{{body}}}</nowiki>
<nowiki>}}</nowiki>
<nowiki><</nowiki>/includeonly<nowiki>></nowiki>

<noinclude>
<nowiki>[[Category:Template]]</nowiki>

<nowiki><!-----------------------Documentation---------------------></nowiki>
<nowiki>{{</nowiki>TemplateDoc|pages=<nowiki><<DESCRIPTION>></nowiki>articles|purpose=Nav box|cat=<nowiki>}}</nowiki>
<nowiki>{{Parms|</nowiki>
<nowiki>{{Parm|link |CP wikilink |no | Link to CP page (ensure correct case!)}}</nowiki>
<nowiki>{{Parm|link text |Title bar text |yes| Text to appear in title bar}}</nowiki>
<nowiki>{{Parm|body |Body |yes| List of wikilinked items separated by '<tt>&nbsp;• </tt>'}}</nowiki>
<nowiki>}}</nowiki>

This is a master template for <nowiki><<DESCRIPTION>></nowiki> articles.

<nowiki><!----------------Format for sub-template -----------------></nowiki>
===Sample text block===

Copy and paste the following to new navbox.
<pre>
<nowiki><</nowiki>nowiki<nowiki>></nowiki>
<nowiki><</nowiki>nowiki>{{ {{{</nowiki>PAGENAME<nowiki>}}} <nowiki><</nowiki>/nowiki>
|link=
|linktext=
|body=<nowiki><</nowiki>nowiki<nowiki>>[[ | ]]&<</nowiki>/nowiki>nbsp;•
<nowiki>&</nowiki>nbsp;<nowiki><</nowiki>nowiki<nowiki>>[[ | ]]&<</nowiki>/nowiki>nbsp;•
<nowiki>&</nowiki>nbsp;<nowiki><</nowiki>nowiki<nowiki>>[[ | ]]&<</nowiki>/nowiki>nbsp;
<nowiki><</nowiki>nowiki>
<nowiki>}}<</nowiki>/nowiki>
<nowiki>[[Category:<</nowiki>!--Category name--<nowiki>>]]</nowiki>
<nowiki><</nowiki>noinclude>
<nowiki>[[Category:Navigation box]]</nowiki>
<nowiki><</nowiki>/noinclude>
</pre>
</noinclude>
</pre>
</noinclude>
nsTeam1RO, nsTeam1RW, nsTeam1_talkRO, nsTeam1_talkRW
6,302

edits

Navigation menu