Template:SB tree: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
Ganaram inukshuk (talk | contribs)
Added default parameters to template
Ganaram inukshuk (talk | contribs)
template is not used for anything, not even as a dependency for anything; categorized as a draft template
 
(9 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>{{#invoke:SB_tree|sb_table|Start Ratio={{{Start Ratio|1/1}}}|Stop Ratio={{{Stop Ratio|1/0}}}|Depth={{{Depth|4}}}|Edge Extend={{{Edge Extend|0}}}}}</includeonly><noinclude>
<includeonly>{{#invoke: SB_tree | sb_table
This template is used to create a Stern-Brocot tree, given a pair of starting ratios and a depth.
| Start Ratio={{{Start Ratio|1/1}}}
| Stop Ratio={{{Stop Ratio|1/0}}}
| Depth={{{Depth|4}}}
| Edge Extend={{{Edge Extend|0}}}
| Stagger Ratios={{{Stagger Ratios|True}}}
| debug={{lc:{{{debug|}}}}}
}}</includeonly><noinclude>
{{documentation}}
 
[[Category:Templates]]
[[Category:Draft templates]]
</noinclude>
</noinclude>

Latest revision as of 00:02, 23 June 2025

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

This template is used to create a Stern–Brocot tree, given a pair of starting ratios and a depth.

Usage

No parameters are required, but will accept up to 5.

Start Ratio
The starting ratio for the SB tree. The default is 1/1.
Stop Ratio
The stopping ratio for the SB tree. The default is 1/0.
Depth
How many layers from the starting ratio the tree should extend. The default is 4 layers.
Edge Extend
How many additional layers the edges should be extended. The default is 0 layers.
Stagger Ratios
Whether to display ratios in a staggered formation (spans multiple columns) or in only one column. The default is true.