New option to hide unused rows in Template:Trboconventional and Template:Trbosys

Status
Not open for further replies.

QDP2012

Member
Joined
Feb 8, 2012
Messages
1,921
On both the Template:Trboconventional and the Template:Trbosys, a new optional feature has been added that allows the Wiki-editor to optionally hide some or all of the unused rows in the Trbo-related table.

In both cases, use the "Hide#" parameter that matches the number of the first row (or row-pair) that should be hidden, as illustrated below.


  • Template:Trboconventional table:

    In this template, the "Hide#" feature hides one single-row.


    Example: Dutchess County Airport (KPOU) Dutchess County (NY)

    Currently, this has five rows of valid data. To help illustrate that the table might not be complete, one "unused" row is shown at the bottom of the table (in the sixth row).

    So, the first row to hide is Row 7. So, to hide Row 7 and all rows that follow Row 7, the following "Hide#" parameter was added at the end of the parameter-list:
    Code:
    |Hide7=}}
    There must be no space following the equal sign.


    Example 2:

    If your data-page has 20 rows of data and you want to show no "unused" rows, then add the following to the end of the parameter-list:
    Code:
    |Hide21=}}
    There must be no space following the equal sign.



  • Template:Trbosys table:

    In this template, the "Hide#" feature hides a pair of rows that relate to one "channel".


    Example: Telepath Corporation Site 20 DMR Bandplan

    Currently, this has valid data for three "channels". To help illustrate that the table might not be complete, one "unused" channel is shown at the bottom of the table (channel 4; involves two rows each that would be used for channel 4).

    So, the first row-pair to hide is the row-pair for channel 5. So, to hide that row-pair and all row-pairs that follow, the following "Hide#" parameter was added at the end of the parameter-list:
    Code:
    |Hide5=}}
    There must be no space following the equal sign.


    Example 2:

    If your data-page has 25 row-pairs of data and you want to show one "unused" row-pair (in row-pair 26), then add the following to the end of the parameter-list:
    Code:
    |Hide27=}}
    There must be no space following the equal sign.

As mentioned above, this "Hide" feature is optional in both templates. If the "Hide" feature is not utilized, then the table will show full-length as it naturally does. If utilized, this "Hide" option allows the Wiki-editor to shorten overall page-length as appropriate when desired, to show only one or two "unused" rows, or to show no "unused" rows at all.

Caution: It is possible to hide rows that contain valid data. To avoid this mistake, make sure that the "Hide#" parameter's name represents a row number greater than the last valid row's (or row-pair's) number. If you have ten valid rows, then make sure that the "Hide#" is "Hide11" or higher, and not "Hide10" or lower.

Updates to the formal "/doc" template documentation pages will be forthcoming.

Hope this helps,
 
Last edited:
Status
Not open for further replies.
Top