Template:SB tree/doc: Difference between revisions

ArrowHead294 (talk | contribs)
No edit summary
Ganaram inukshuk (talk | contribs)
No edit summary
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{dochead}}
{{dochead}}
=== Parameters ===
{{Template rating|details=This template works, but hasn't found any use ever since its module was dropped as a dependency for another template.}}
{| class="wikitable center-all"
 
! Parameter !! Required? !! Description
This template is used to create a Stern–Brocot tree, given a pair of starting ratios and a depth.
|-
 
| Start Ratio || rowspan="5" | No (optional) || The starting ratio for the SB tree. The default is 1/1.
=== Usage ===
|-
No parameters are required, but will accept up to 5.<br /><br />
| Stop Ratio || The stopping ratio for the SB tree. The default is 1/0.
 
|-
; <code>Start Ratio</code>
| Depth || How many layers from the starting ratio the tree should extend. The default is 4 layers.
: The starting ratio for the SB tree. The default is 1/1.
|-
 
| Edge Extend || How many additional layers the edges should be extended. The default is 0 layers.
; <code>Stop Ratio</code>
|-
: The stopping ratio for the SB tree. The default is 1/0.
| Stagger Ratios || Whether to display ratios in a staggered formation (spans multiple columns) or in only one column. The default is true.
 
|}
; <code>Depth</code>
: How many layers from the starting ratio the tree should extend. The default is 4 layers.
 
; <code>Edge Extend</code>
: How many additional layers the edges should be extended. The default is 0 layers.
 
; <code>Stagger Ratios</code>
: Whether to display ratios in a staggered formation (spans multiple columns) or in only one column. The default is true.