Module:Wd/doc#References

{{Module rating|protected}}

{{High-use}}

{{ombox|text=You might want to use one of the user-friendly wrapper templates {{t|Wikidata}} and {{t|WikidataOI}} instead of invoking this module directly.}}

{{Wikidata/doc|prename=#invoke:|prename_code=#invoke:|section==== Main class ===

The main command is always used alone and does not take any flags or arguments. It allows parent templates to pass on their parameters in the form of commands to this module.

Command Basic usage Description
main {{nowrap|{{tnull|#invoke:{{lc:{{ROOTPAGENAME}}}}|main}}}} Intended for use by wrapper templates (around this module) to invoke one or more of the above commands, returning their respective output.

The parameters passed to the wrapper template are the ones that will be used by the module, e.g. {{tnull|wikidata|property|P1549}} → {{tnull|#invoke:wd|main}} → {{tnull|#invoke:wd|main|property|P1549}}.

Therefore, any parameters set by the wrapper template itself will be discarded, e.g. {{tnull|wikidata|property|P1549}} → {{tnull|#invoke:wd|main|{{color|red|qualifier}}|{{color|red|P1082}}|{{color|red|P585}}}} → {{tnull|#invoke:wd|main|property|P1549}}.

}}