Difference between revisions of "Template:Navbox"

From Robowiki
Jump to navigation Jump to search
m (Added Documentation)
m (Minor Adjustment)
Line 2: Line 2:
 
<table cellspacing="0" class="nowraplinks  ;;">
 
<table cellspacing="0" class="nowraplinks  ;;">
 
<tr><th style="text-align:center; padding-left:1em; padding-right:1em;  background:#ccccff;  background:#ddddff;;{{{titlestyle|}}}" colspan=3>
 
<tr><th style="text-align:center; padding-left:1em; padding-right:1em;  background:#ccccff;  background:#ddddff;;{{{titlestyle|}}}" colspan=3>
<div style="float:left; width:6em;text-align:left;">{{if|test={{{nav|}}}|then={{tnavbar}}|else=&nbsp;}}</div>
+
<div style="float:left; width:6em;text-align:left;">{{if|test={{{nav|}}}|then={{tnavbar|{{{nav|}}}}}|else=&nbsp;}}</div>
 
<span style="font-size:110%;">{{{title|}}}</span>
 
<span style="font-size:110%;">{{{title|}}}</span>
 
</th></tr>
 
</th></tr>
Line 95: Line 95:
  
 
Other parameters are:
 
Other parameters are:
* <tt>|nav=1</tt> (Set if you want to include {{tl|tnavbar}} to the left of the title)
+
* <tt>|nav={{{MAINPAGENAME}}}</tt> (Set if you want to include {{tl|tnavbar}} to the left of the title)
 
* <tt>|abovetext=</tt> (Additional text below title but above groups)
 
* <tt>|abovetext=</tt> (Additional text below title but above groups)
 
* <tt>|belowtext=</tt> (Additional text below groups)
 
* <tt>|belowtext=</tt> (Additional text below groups)

Revision as of 05:43, 21 September 2008

This template is not the same as wikipedia:Template:Navbox, even though the use is similar.

This template has been edited to use pure-wiki code, and not requiring any specific extension found on Wikipedia.

It has also been heavily simplified. Expand with more parameters if you (really) want to.

{{Navbox
|title=[[Movement]]
|group1=[[Movement]]
|list1=[[WaveSurfing]]{{dot}}[[PatternMovement]]{{dot}}[[CornerMovement]]
}}

Other parameters are:

  • |nav={{{MAINPAGENAME}}} (Set if you want to include {{tnavbar}} to the left of the title)
  • |abovetext= (Additional text below title but above groups)
  • |belowtext= (Additional text below groups)
  • |image= (Image to the right of the groups)
  • |groupstyle= (Customizable the style of the groupboxen)
  • |titlestyle= (Customizable the style of the titlebox)

See wikipedia:Template:Navbox for examples.