Difference between revisions of "Template:Tnavbox basic"
Jump to navigation
Jump to search
(moved from Navbox_basic) |
(format tweak) |
||
| Line 7: | Line 7: | ||
<table class="infobox" style="float: center; text-align: center; font-size: 80%; clear:right; background:white; border: 2px solid green;" cellspacing="0" cellpadding="2"> | <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;" | {| 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: | + | |height="25" style="font-size: 95%; background-color:{{{titleback-color}}}; text-align:center; margin-bottom:2px;" |'''[[{{{link}}}<span style="color:{{{titletext-color}}}">{{{linktext}}}</span> ]]''' |
|--- | |--- | ||
|style="font-size: 85%; color:{{{bodytext-color}}} ;background-color:{{{bodyback-color}}};"|{{{body}}} | |style="font-size: 85%; color:{{{bodytext-color}}} ;background-color:{{{bodyback-color}}};"|{{{body}}} | ||
Revision as of 10:54, July 18, 2007
| Template: Tnavbox basic | |
|---|---|
| Use on | Navigation box templates |
| Use for | Info box |
| Category template applies to page | (none) |
| Template Parameters (See using templates). | |||
|---|---|---|---|
| Name | Purpose | Required? | Comment |
| width | Width of box in per cent | no | Default 100 |
| titleback-color | Title bar background color | no | defined color name or hex value (#xxyyzz) |
| titletext-color | Title bar text color | no | idem |
| bodyback-color | Body background color | no | idem |
| bodytext-color | Body text color | no | idem |
This template is a constructor for bottom navbox templates. The new template takes three extra parameters:
- {{{link}}}{{!}}
- {{{linktext}}}
- {{{body}}}
Sample text block
Copy and paste the following to new navbox template.
<includeonly>
{{Tnavbox_basic
|titleback-color=
|titletext-color=
|bodyback-color=
|bodytext-color=
|link={{#if:{{{link|}}} | <!--then-->{{{link}}}{{!}} | <!--else-->}}
|linktext={{{linktext}}}
|body={{{body}}}
}}
</includeonly>
<noinclude>
[[Category:Template]]
<!-----------------------Documentation--------------------->
{{TemplateDoc|pages=<<DESCRIPTION>>articles|purpose=Nav box|cat=}}
{{Parms|
{{Parm|link |CP wikilink |no | Link to CP page (ensure correct case!)}}
{{Parm|link text |Title bar text |yes| Text to appear in title bar}}
{{Parm|body |Body |yes| List of wikilinked items separated by '<tt> • </tt>'}}
}}
This is a master template for <<DESCRIPTION>> articles.
<!----------------Format for sub-template ----------------->
===Sample text block===
Copy and paste the following to new navbox.
<pre>
<nowiki>
<nowiki>{{ {{{</nowiki>PAGENAME}}} <nowiki></nowiki>
|link=
|linktext=
|body=<nowiki>[[ | ]]&</nowiki>nbsp;•
<nowiki>[[ | ]]&</nowiki>nbsp;•
<nowiki>[[ | ]]&</nowiki>nbsp;
<nowiki>
}}</nowiki>
[[Category:<!--Category name-->]]
<noinclude>
[[Category:Navigation box]]
</noinclude>