Conditions

Conditions describes

View

View is

  • Description: Return true if current view is viewType (root, regions, location)

  • Arguments: {{viewIs [viewType]}}

  • Example: {{#viewIs 'root'}} This content shows only on root page {{/viewIs}}

  • Availability: everywhere

Regions

Is world

  • Description: Return true if current page is world

  • Example: {{#isWorld}} This content shows only on the world page {{/isWorld}}

  • Availability: regions ({{#isView 'regions'}})

Is country

  • Description: Return true if current region is country

  • Example: {{#isCountry}} This content shows only in country pages {{/isCountry}}

  • Availability: regions ({{#isView 'regions'}})

Is region

  • Description: Return true if current region is a region and not regionN

  • Example: {{#isRegion}} This content shows only in region pages {{/isRegion}}

  • Availability: regions ({{#isView 'regions'}})

Is regionN

  • Description: Return true if current region is a regionN and not region

  • Example: {{#isRegionN}} This content shows only in region pages {{/isRegionN}}

  • Availability: regions ({{#isView 'regions'}})

Is admin_level

  • Description: Return true if current region has a specific admin_level

  • Arguments: {{isAdminLevel [admin_level]}}

  • Example: {{#isAdminLevel 5}} This content shows only in region pages {{/isAdminLevel}}

  • Availability: regions ({{#isView 'regions'}})

Has subregions

  • Description: Return true if current region has subregions

  • Example: {{#hasSubregions}} This content shows only in region pages with subregions {{/hasSubregions}}

  • Availability: regions ({{#isView 'regions'}})

Locations

  • Description: Return true if current view is viewType location

  • Example: {{#viewIs 'location'}} This content shows only location pages {{/viewIs}}

  • Availability: everywhere