Help talk:Semantic templates

From semantic-mediawiki.org
Jump to: navigation, search
Please note

Talk pages on this wiki should primarily be used to address possible mistakes as well as missing and superseded information in the documentation.
In case you are seeking support concerning individual questions, please have a look at this page.
The SMW user mailing list is always a good idea for seeking help.

Please note

Recursion

Some instances require recursion of a template output deeper than a level of 2. SMW_QueryPrinter.php variable $maxRecursionDepth defines the maximal depth, which by default is set 2. In cases where a deeper level of recursion is needed, it is possible to change the variable in LocalSettings.php. Changes should be carefully examined to secure the stability of the configuration.
SMWResultPrinter::$maxRecursionDepth = 3;

$maxRecursionDepth

After having struggled to figure out why templates with queries were only recursing to level 3, I found the $maxRecursionDepth variable in includes/SMW_QueryPrinter.php.

Changing this allowed me to go deeper as would be expected. This is important information that should be included as a note in the "Queries in Template" section of this page. This should also be documented in the Help:Configuration page

Hi, it is on the screen. I will try to get a developer to have a look at your suggestion. Thank you and cheers --[[kgh]] 17:15, 11 August 2011 (CEST)

Argument declaration in templates

I think this page could do with a major re-write, considering the introduction of argument declaration in templates.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox