FANDOM


{{{{{{2}}}}}}
Template Documentation (Note: The template above may sometimes be invisible.)

Description

This template allows retrieving data from another template. In conjunction with module Counter, more complex queries can be made.

Usage

Syntax
  • {{<template name>|Data query|<parameter name>}}
Example
  • {{Map data King of the Giants|Data query|difficulties}} creates: Standard, Advanced, Expert
Advanced Examples
  • {{#expr:{{#invoke:counter|counter|{{Map data King of the Giants|Data query|difficulties}}|,}}+1}} outputs the number of data entries of the example above: 3
  • {{#explode:{{Map data King of the Giants|Data query|difficulties}}|,|{{#invoke:counter|counter|{{Map data King of the Giants|Data query|difficulties}}|,}}}} outputs only the last entry: Expert

See also

Community content is available under CC-BY-SA unless otherwise noted.