Template:Navbox fractional-octave: Difference between revisions

From Xenharmonic Wiki
Jump to navigation Jump to search
ArrowHead294 (talk | contribs)
mNo edit summary
ArrowHead294 (talk | contribs)
m Use the template instead of the element for centered text; the <center> element is deprecated.
 
Line 2: Line 2:
| Title = [[Fractional-octave temperaments]]
| Title = [[Fractional-octave temperaments]]
| name = Navbox fractional-octave
| name = Navbox fractional-octave
| Data 1 = <center>{{Numlinks
| Data 1 = {{center|{{Numlinks
   | Current Num = {{#rmatch: {{{1|{{PAGENAME}}}}}|pattern=\d+|then=$0}}
   | Current Num = {{#rmatch: {{{1|{{PAGENAME}}}}}|pattern=\d+|then=$0}}
   | Link Count = 5
   | Link Count = 5
Line 9: Line 9:
   | Display Format = %s
   | Display Format = %s
   | Current Page Format = '''%s-octave'''
   | Current Page Format = '''%s-octave'''
   | Is Table = 0}}</center>
   | Is Table = 0}}}}
}}</includeonly><noinclude>
}}</includeonly><noinclude>
{{documentation}}
{{documentation}}

Latest revision as of 02:19, 12 October 2025

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

This template generates a footer to help navigating through fractional-octave temperaments pages. It should be placed at the end of the page after a line break.

It is complemented by Template:Infobox fractional-octave, which occurs at the top-right of the page, which is quicker and simpler and provides additional information, but which only allows navigation to adjacent pages, unlike this footer which allows navigation to pages a longer distance away.

Usage

On pages such as 5th-octave temperaments, simply add in {{Navbox fractional-octave}} at the bottom of the page. Alternatively, pass in the number of periods as a single unnamed parameter.

{{navbox fractional-octave|1}}
{{navbox fractional-octave|2}}
{{navbox fractional-octave|3}}
{{navbox fractional-octave|4}}
{{navbox fractional-octave|5}}
{{navbox fractional-octave|6}}
{{navbox fractional-octave|7}}

gives the following:

ViewTalkEditFractional-octave temperaments 
 1st-octave • 2nd • 3rd • 4th • 5th • 6th →
ViewTalkEditFractional-octave temperaments 
1st • 2nd-octave • 3rd • 4th • 5th • 6th • 7th →
ViewTalkEditFractional-octave temperaments 
1st • 2nd • 3rd-octave • 4th • 5th • 6th • 7th • 8th →
ViewTalkEditFractional-octave temperaments 
1st • 2nd • 3rd • 4th-octave • 5th • 6th • 7th • 8th • 9th →
ViewTalkEditFractional-octave temperaments 
1st • 2nd • 3rd • 4th • 5th-octave • 6th • 7th • 8th • 9th • 10th →
ViewTalkEditFractional-octave temperaments 
1st • 2nd • 3rd • 4th • 5th • 6th-octave • 7th • 8th • 9th • 10th • 11th →
ViewTalkEditFractional-octave temperaments 
← 2nd • 3rd • 4th • 5th • 6th • 7th-octave • 8th • 9th • 10th • 11th • 12th →