Template:RevNavRow

From Golly.Life Wiki

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
  }}
}}



Comparison

NavRow Template

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:



RevNavRow Template

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: