Template:Navbox subgroup/doc: Difference between revisions

m
Text replacement - "(={2,})([^\s=])(.+)([^\s=])(={2,})" to "$1 $2$3$4 $5"
(Borrowed from Wikipedia and removed functions not available in this wiki...)
 
m (Text replacement - "(={2,})([^\s=])(.+)([^\s=])(={2,})" to "$1 $2$3$4 $5")
 
Line 60: Line 60:
:: If set to <code>swap</code>, then the automatic striping of even and odd rows is reversed.  Normally, even rows get a light gray background for striping; when this parameter is used, the odd rows receive the gray striping instead of the even rows.  Setting to <code>even</code> or <code>odd</code> sets all rows to have that striping color.  Setting to <code>off</code> disables automatic row striping. NOTE: Due to system limitations, do '''not''' use a semi-colon to close this command.  
:: If set to <code>swap</code>, then the automatic striping of even and odd rows is reversed.  Normally, even rows get a light gray background for striping; when this parameter is used, the odd rows receive the gray striping instead of the even rows.  Setting to <code>even</code> or <code>odd</code> sets all rows to have that striping color.  Setting to <code>off</code> disables automatic row striping. NOTE: Due to system limitations, do '''not''' use a semi-colon to close this command.  


==Setting the width of groups==
== Setting the width of groups ==
If multiple {{tl|Navbox subgroup}} templates are used inside of a parent {{tl|Navbox}}, it generally looks better if the width of the groups matches up.  In order to do this, one must set the <code>groupwidth</code> parameter:
If multiple {{tl|Navbox subgroup}} templates are used inside of a parent {{tl|Navbox}}, it generally looks better if the width of the groups matches up.  In order to do this, one must set the <code>groupwidth</code> parameter:


Line 71: Line 71:
If you also use the <code>image</code> or <code>imageleft</code> parameters, then you will most likely also need to set their width manually using the <code>imagestyle</code> and <code>imageleftstyle</code> parameters.
If you also use the <code>image</code> or <code>imageleft</code> parameters, then you will most likely also need to set their width manually using the <code>imagestyle</code> and <code>imageleftstyle</code> parameters.


==Example==
== Example ==
The following is an example of ''Navbox subgroup'' used within a ''Navbox'' template.
The following is an example of ''Navbox subgroup'' used within a ''Navbox'' template.