Template:Tnavbox basic

From Conservapedia
This is an old revision of this page, as edited by BrianCo (Talk | contribs) at 10:40, July 18, 2007. It may differ significantly from current revision.

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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>

</pre>