Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Data/doc: Difference between revisions

From Neodyland Wiki
 
Line 1: Line 1:
{{Module rating|general}}
<!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata -->
<!-- Categories go at the bottom of this page and interwikis go in Wikidata. -->
{{Module rating|release}}
This module allows wikitext to read values from data modules.
This module allows wikitext to read values from data modules.


== Usage ==
== Usage ==


  &#123;{#invoke:Data|''Module:ModuleName''|''key1''|''key2''|''key3''|...}}
  <nowiki>{{</nowiki>#invoke:Data|{{var|Module:ModuleName}}|{{var|key1}}|{{var|key2}}|{{var|key3}}|...<nowiki>}}</nowiki>
Read data value ''key1''.''key2''.''key3'' from ''Module:ModuleName''.
Read data value {{var|key1}}.{{var|key2}}.{{var|key3}} from {{var|Module:ModuleName}}.
<noinclude>[[Category:Module documentation]]</noinclude>
 
<includeonly>{{Sandbox other||
<!-- Categories below this line; interwikis at Wikidata -->
[[Category:Scribunto utility modules]]
}}</includeonly><noinclude>
[[Category:Module documentation]]
</noinclude>

Revision as of 11:52, 25 July 2021

This module allows wikitext to read values from data modules.

Usage

{{#invoke:Data|Module:ModuleName|key1|key2|key3|...}}

Read data value key1.key2.key3 from Module:ModuleName.

Contents
Cookies help us deliver our services. By using our services, you agree to our use of cookies.