User:Mtew/templates/4AllGuideItems

From Guild Wars Wiki
Jump to navigationJump to search

Purpose[edit]

This template is intended to be used to build a table row of keyword parameter values to be included in reports.

For all {{{item}}}s in the [[Guild Wars Wiki:Formatting/{{{form}}}]] file, use the "key=" values to search the {{{talk}}} page for {{{status}}} templates for those keyword parameters and build a WIKI table row from their values. If a {{{prefix}}} or {{{suffix}}} keyword is provided, add it to each element generated.

Typical Usage[edit]

as part of a DPL format specification:
\n|-
\n| [[name]]{{4AllGuideItems|form=Quest|page=%PAGE%|title=%TITLE%|talk=%NAMESPACE% talk:%TITLE%}}

Keyword parameters[edit]

  • debug1
Debug level for outer DPL request
  • debug2
Debug level for inner DPL request
  • form
The name of the formatting guideline to use. Defaults to "Dummy"
  • item
The item template to examine. Defaults to "Guideline item"
  • page
The %PAGE% value for the page being checked. (for debugging, not currently used.)
  • name
The %NAMESPACE% value for the page being checked. (Not working at the moment.)
  • prefix
inserted before each set of values
  • status
The status template to examine. Defaults to "Guideline status"
  • suffix
inserted after each set of values
  • talk
Talk:%TITLE% value for the page being checked.
  • title
The %TITLE% value for the page being checked. (for debugging, not currently used.)

Notes[edit]

This was not very easy to debug. To test it, the revision has to be saved and another page that uses it must be reloaded. This annoys the vandal patrol sysops more than a little.

To Do[edit]

  • Convert to use {{{prefix}}} and {{{suffix}}} in place of {{{style}}} — Done? Then pull {{{style}}} reference.
  • Allow prefix and suffix overrides for particular entries
Preferably using the status parameter's name

No Guideline item templates found on page Guild Wars Wiki:Formatting/Dummy.