Difference between revisions of "Template:Large category TOC numeric/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Paine Ellsworth
(test)
imported>Anomalocaris
m (div-span-flip fixed by replacing <span class="plainlinks"> with <div class="plainlinks">)
 
Line 1: Line 1:
<span class="plainlinks">{{Navigation bar
+
<div class="plainlinks">{{Navigation bar
 
| color = #f9f9f9;
 
| color = #f9f9f9;
 
| title = <div>
 
| title = <div>
Line 32: Line 32:
 
• '''8''' {{Large category TOC/0-9/sandbox|8|{{padright:|{{#expr:{{{1|}}}-2}}}}}}
 
• '''8''' {{Large category TOC/0-9/sandbox|8|{{padright:|{{#expr:{{{1|}}}-2}}}}}}
 
• '''9''' {{Large category TOC/0-9/sandbox|9|{{padright:|{{#expr:{{{1|}}}-2}}}}}}
 
• '''9''' {{Large category TOC/0-9/sandbox|9|{{padright:|{{#expr:{{{1|}}}-2}}}}}}
</span></div> }}</span><noinclude>
+
</span></div> }}</div><noinclude>
  
 
{{Documentation}}  
 
{{Documentation}}  
  
 
</noinclude>
 
</noinclude>

Latest revision as of 01:02, 8 May 2019

Template documentation[view] [edit] [history] [purge]

Usage

When a numeric category has many members, place this line near the top of the category page:

{{Large category TOC numeric}}

There are two parameters:

  • |negatives= with default = no, which hides the negative choices. Setting |negatives=yes will show the choices "-1000" to "-100".
  • |1= sets the number of sort characters, usually set to the largest number of sort characters in the category. For example, if the largest sort number in the category is "100547", then set |1=6 (for the number of characters in "100547"). Some "numeric" categories are populated by unusual alphanumeric member names, and that can make this setting tricky. Editors may have to experiment to find the optimum value for this setting.

As with other uses of unnamed parameters, the 1= may be omitted, so the example above may appear as:

{{Large category TOC numeric|1=6}}
  or
{{Large category TOC numeric|6}}

See also