User:Mathglot/sandbox/Templates/Alberta templates/Municipalities of Alberta/row if/doc

Governs conditional row display: given a display parameter, returns '1' if a row should be emitted for this municipality type, otherwise empty.

Usage
– returns, indicating the town row should be displayed – returns, indicating the Village row should be displayed – returns (empty), indicating the Village row should not be displayed

Parameters
type – municipality status, e.g., 'City', 'Town', 'Village', etc. See valid values for positional param 2 (alias: t)

disp – controls conditional display of a row depending on its. For example, for cities (or c) the row is only displayed if its  is 'City'. Possible values for disp:
 * or – displays a given row, only if it has type 'City'
 * or – if type = 'Town'
 * or – if type = 'Village'
 * or – if type = 'Summer village'
 * or – if type = 'Specialized municipality'
 * or – if type = 'Municipal district'
 * or – if type = 'Improvement district'
 * or – if type = 'Special area'
 * or – if type = 'Metis settlement'
 * – if type is is any of 'City', 'Town', 'Village' or 'Summer village'
 * – if type is any of 'Municipal district', 'Improvement districts', or 'Special area'.

Examples
– the City row should be displayed.

– the Village row should not be displayed in a cities table.

– the City row should not be displayed in a villages table.