Template:RevNavRow
From Golly.Life Wiki
Template documentation
|
---|
Note: portions of the template sample may not be visible without values provided. |
View or edit this documentation. (About template documentation) |
Editors can experiment in this template's sandbox and test case pages. |
About
The RevNavRow template is related to the {{NavRow}} template, and takes the same arguments in the same order, but it outputs the navbox with sub-headers listed in reverse order. This template should be wrapped with a {{NavTable}} template.
IMPORTANT: When using the template, list row title/content arguments in order from 1 to N. If they are listed in reverse order, content and titles will be mismatched.
Example:
{{NavTable | name = My Cool Navbox | state = mw-collapsible | header = My Cool Navbox | {{RevNavRow | Monthly Reports | row1_title = January | Link to January report | row2_title = February | Link to February report | row3_title = March | Link to March report | row4_title = April | Link to April report }} }}
Monthly Reports | April | Link to April report |
---|---|---|
March | Link to March report | |
February | Link to February report | |
January | Link to January report |
Comparison
First, an example with the normal NavRow version:
{{NavTable | name = My Cool Navbox | state = mw-collapsible | header = My Cool Navbox | {{NavRow | Monthly Reports | row1_title = January | Link to January report | row2_title = February | Link to February report | row3_title = March | Link to March report | row4_title = April | Link to April report }} }}
which lists the navbox with January first, April last:
Monthly Reports | January | Link to January report |
---|---|---|
February | Link to February report | |
March | Link to March report | |
April | Link to April report |
Now we use the EXACT SAME template arguments in the EXACT SAME order, but with the RevNavRow template:
{{NavTable | name = My Cool Navbox | state = mw-collapsible | header = My Cool Navbox | {{RevNavRow | Monthly Reports | row1_title = January | Link to January report | row2_title = February | Link to February report | row3_title = March | Link to March report | row4_title = April | Link to April report }} }}
which lists the navbox with April first, January last:
Monthly Reports | April | Link to April report |
---|---|---|
March | Link to March report | |
February | Link to February report | |
January | Link to January report |