Template:Pi zero/context/button/delta/doc
This is a documentation subpage for Template:Pi zero/context/button/delta (see that page for the template itself). It contains usage information, categories and other content that is not part of the original template page. |
Usage edit
This subtemplate of {{User:Pi zero/context/button}} computes dialog parameter context-delta
to be passed through the button. Unnamed template parameters passed to this template name dialog parameters to be whitelisted; template parameter template
passed here names a template to be informed.
Examples edit
The result list-of-lists starts with a list of allowed parameters, then a list of disallowed parameters, then one or more lists naming a template followed by the names of parameters it requests.
code |
|
---|---|
output |
|
code |
|
---|---|
output |
|
code |
|
---|---|
output |
|
code |
|
---|---|
output |
|
Internals edit
This template calls {{evalx}} using Module:TScope#prepend; the wikilisp code to be executed thus becomes the first unnamed parameter to {{evalx}}, while the unnamed parameters passed to the parent template become later unnamed parameters to {{evalx}}. If a template
parameter is passed to this template, a query to template
subtemplate /context-requests
is also passed to {{evalx}} under parameter name context-delta
.