Template:Assistant:Context/preview/doc
This is a documentation subpage for Template:Assistant:Context/preview (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
editThis is part of the Context assistant.
This auxiliary template for Wikinews:Assistant:Context constructs the content to be previewed. Parameters:
- first unnamed — required — the
context-requests
list to be applied. - second unnamed — required — the content to be previewed.
Examples
editcode | output |
---|---|
|
|
Internals
editIf a template call to a requesting template occurs within a call to another requesting template, only the outermost of those calls is provided with requested parameters.
Parameters when provided are placed before explicit parameters, so that explicit parameters override those provided.
This is where the whitelist and blacklist are applied; elsewhere the whitelist, blacklist, and requests are propagated uncritically. Any changes to the whitelist or blacklist therefore have the potential to alter the effect of pre-existing requests, in keeping with the conceptually global nature of whitelists and blacklists.
See also
edit