Template:SB tree/doc: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
{{dochead}}{{lua}} | {{dochead}} | ||
{{Template rating|details=This template works, but hasn't found any use ever since its module was dropped as a dependency for another template.}} | |||
{{lua}} | |||
This template is used to create a Stern–Brocot tree, given a pair of starting ratios and a depth. | This template is used to create a Stern–Brocot tree, given a pair of starting ratios and a depth. | ||
=== Usage === | === Usage === | ||
Revision as of 09:15, 21 October 2025
- This template is implemented by the Lua module Module:SB tree.
- This template invokes the following functions: sb_table from SB tree.
| This template has been deprecated. Its replacements are Template:Dochead and Template:Module introspection. |
| This template uses Lua: |
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.