Changes

812 bytes removed ,  13:58, July 19, 2007
Working first release
Line 5: Line 5:  
-->
 
-->
 
<includeonly>
 
<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">
+
<table class="navbox" 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="20" style="font-size: 95%; background-color:{{{titleback-color}}}; text-align:center; margin-bottom:2px;" |'''[[{{{link}}}<span style="color:{{{titletext-color}}}">{{{linktext}}}</span> ]]'''
+
|height="20" style="font-size: 95%; background-color:{{{titleback-color}}}; text-align:center; margin-bottom:2px;" |'''[[{{{titlelink}}}<span style="color:{{{titletext-color}}}">{{{titletext}}}</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}}}  
Line 17: Line 17:  
<noinclude>
 
<noinclude>
 
[[Category: Template]]
 
[[Category: Template]]
−
{{TemplateDoc|pages=Navigation box templates|purpose=Info box|cat=}}
+
{{TemplateDoc
 +
|pages=Navigation box templates
 +
|purpose=Create template for new horizontal nav boxes
 +
|cat=Template
 +
}}
 
{{Parms|
 
{{Parms|
 
  {{Parm|width          |Width of box in per cent  |no |Default 100}}
 
  {{Parm|width          |Width of box in per cent  |no |Default 100}}
Line 26: Line 30:  
}}
 
}}
   −
This template is a constructor for '''''bottom navbox templates'''''. The new template takes three extra parameters:
+
This template is a constructor for '''''horizontal navbox templates'''''. The new template takes three parameters:
−
*<nowiki>{{{link}}}{{!}}</nowiki>
+
<nowiki>{{{titlelink}}}</nowiki>
−
*<nowiki>{{{linktext}}}</nowiki>
+
<nowiki>{{{titletext}}}</nowiki>
−
*<nowiki>{{{body}}}</nowiki>
+
<nowiki>{{{body}}}</nowiki>
    
<!----------------Format for sub-template ----------------->
 
<!----------------Format for sub-template ----------------->
Line 37: Line 41:  
Copy and paste the following to new navbox template.
 
Copy and paste the following to new navbox template.
    +
<!--This need to be expanded so that new template includes sample text for navbox.
 +
    I'm working on it!
 +
-->
 
<pre>
 
<pre>
 +
<nowiki><</nowiki>includeonly<nowiki>></nowiki>
 +
<nowiki>{{</nowiki>Tnavbox_basic
 +
|titleback-color=
 +
|titletext-color=
 +
|bodyback-color=
 +
|bodytext-color=
 +
|titlelink=<nowiki>{{#if:{{{titlelink|}}} | <!-- then: include link and pipe-->{{{titlelink}}}{{!}} | <!-- else: nothing -->}}</nowiki>
 +
|titletext=<nowiki>{{{titletext}}}</nowiki>
 +
|body=<nowiki>{{{body}}}</nowiki>
 +
<nowiki>}}</nowiki>
 +
<nowiki><</nowiki>/includeonly<nowiki>></nowiki>
   −
<nowiki><</nowiki>includeonly<nowiki>></nowiki>
+
<noinclude>
−
<nowiki>{{</nowiki>Tnavbox_basic
+
<nowiki>[[Category:Template]]</nowiki>
−
|titleback-color=
+
</noinclude>
−
|titletext-color=
+
</pre>
−
|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>                                                                                                                                             
+
Note: This creates a template to use for a family of horizontal navboxes, it does not create the navboxes themselves! Name new templates in the style '''Tnb_NEW_TEMPLATE'''. Do not forget to document any new template and navboxes you create.
−
<nowiki>[[Category:Template]]</nowiki>
     −
<nowiki><!-----------------------Documentation---------------------></nowiki>
+
Documentation for new templates will take the form:
−
<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>
+
<pre>
−
===Sample text block===
+
{{Tnb_NEW_TEMPLATE
−
 
+
|titlelink=LINK FOR NAVIGATION BOX TITLE (OPTIONAL)
−
Copy and paste the following to new navbox.
+
|titletext=TEXT TO DISPLAY IN NAVIGATION BOX TITLE
−
<pre>
+
|body={{nowrap|[[LINK 1|TEXT 1]] •}} {{nowrap|[[LINK 2|TEXT 2]] •}} (...more items...) {{nowrap|[[ LINK N|TEXT N]]}}
−
  <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>
  −
<nowiki><<nowiki/pre>
  −
  </noinclude>
   
</pre>
 
</pre>
−
</noinclude>
+
Note that all '''body''' entries must be on one line.
nsTeam1RO, nsTeam1RW, nsTeam1_talkRO, nsTeam1_talkRW
6,302

edits