Help:Ask syntax/Hierarchy depth restriction

The   hierarchy depth restrictor was introduced in.

Rationale
Semantic MediaWiki by default considers all subcategories and subproperties as part of a hierarchy when selecting pages. Limits settable with either or  apply to all queries within the respective wiki. To individually prevent selected inline queries using either the  or   parser function to consider subcategories or subproperties the   query parameter is used to set the levels for inferencing where a hierarchy is detectable.

The integer set with the  query parameter denotes the maximum level for considering either the subcategories or subproperties. Setting " " resolves only the category or property stated in the inline query. If this query parameter is not used all hierarchy levels are considered to the maximum extent either defined with or  which is the default behavior.

Example

 * Syntax for category inferencing


 * Syntax for property inferencing

or

: More examples for this query parameter
 * Link