Template:SetDependency: Difference between revisions

From COMP15212 Wiki
pc>Yuron
(Change wording to be a bit more "consistent")
 
gravatar W81054ch [userbureaucratinterface-adminsysopPHRhYmxlIGNsYXNzPSJ0d3BvcHVwIj48dHI+PHRkIGNsYXNzPSJ0d3BvcHVwLWVudHJ5dGl0bGUiPkdyb3Vwczo8L3RkPjx0ZD51c2VyPGJyIC8+YnVyZWF1Y3JhdDxiciAvPmludGVyZmFjZS1hZG1pbjxiciAvPnN5c29wPGJyIC8+PC90ZD48L3RyPjwvdGFibGU+] (talk | contribs)
m (1 revision imported)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
Auxillary template used to allow a module to include semantic subobjects for dependencies.
Auxillary template used to allow a module to include semantic subobjects for dependencies.
Basically, a Scribunto Lua module can call templates, but it cannot call expressions that start with #, such as <nowiki>{{#subobject}}.</nowiki> This template serves as a bridge, allowing a lua module to set a subobject on a page.
This template sets:
Parameter 1 -> Depend on
Parameter 2 -> Depend weight
Parameter 3 -> Depend from
</noinclude>
</noinclude>
<includeonly>
<includeonly>

Latest revision as of 10:22, 9 August 2019

Auxillary template used to allow a module to include semantic subobjects for dependencies.

Basically, a Scribunto Lua module can call templates, but it cannot call expressions that start with #, such as {{#subobject}}. This template serves as a bridge, allowing a lua module to set a subobject on a page.

This template sets:

Parameter 1 -> Depend on

Parameter 2 -> Depend weight

Parameter 3 -> Depend from