Template:Assistant:Context
cols=&rows=&viewxcols=&rows=&Wikinews:Assistant:Contextxcols=&rows=&Template:Assistant:Contextxcols=&rows=&( ( true ) ( false ) )x
Usage
editCall this template on a page to produce a button that feeds information to templates on that page via the Context assistant (of which this template is a part). The information provided is cumulative; such a button may add a specified template to the list of templates to be informed, and may add some data to the list of information to be provided to templates upon their request.
Parameters:
template
— optional — an additional template to be informed.label
— optional — the label on the button; if omitted, the label isinform {{{template|}}}
.- unnamed parameters — optional — names of dialog parameters to be made available to any informed templates that request them (by passing them through the button and adding them to the whitelist). As of this writing, up to twenty six parameters may be specified (four fewer than supported by {{dialog/view}}).
page
— optional — name of the page to be viewed; defaults to current page.transform
— optional — name of a template to transform the page content before viewing, replacing any transform already in place; explicit blank means no transform.
Additional templates to be informed may be specified via optional parameters template2
, template3
, template4
.
Test
editcols=&rows=&viewxcols=&rows=&Wikinews:Assistant:Contextxcols=&rows=&Wikinews:Assistant:Context/testxcols=&rows=&( ( true ) ( false ) )x
Internals
editThe max number of informing parameters provided by this template is bounded by the capacity of {{dialog/view}}; as of this writing, {{dialog/view}} supports up to thirty dialog parameters, and this template uses up to four administrative dialog parameters, described at Wikinews:Assistant:Context/doc#Wikinews:Assistant:Context. This template delegates construction of outgoing dialog parameter context-delta
to subtemplate {{Assistant:Context/delta}}; re the number of templates-to-be-informed supported, see the subtemplate documentation.
See also
edit- Wikinews:Assistant:Context/test
- Subpages of this template (includes all templates for this assistant, not just subtemplates of this template)
- Pages using or linking to this template