Template:Restrictions/doc
Used to create a list of the restrictions on accessing a page, based on existing categories or properties, in a format suitable for display on the wiki. The result of this template should be stored in Property:Has restrictions and accessed from there, rather than being generated on-the-fly.
By default queries the current page, but can be passed a different page as the first argument.
Currently sets the following, in the following order:
- RETIRED based on Property:Is retired
- FATE if the page belongs to Category:Fate
- SMEN if the page belongs to Category:Seeking Mr Eaten's Name
- Festival tags if the page belongs to the appropriate category: FEAST OF THE ROSE, WHITSUN, ELECTION, Mr Chimes' Grand Clearing-Out, FRUITS OF THE ZEE, HALLOWMAS, and CHRISTMAS
- Ambition tags if the page belongs to the appropriate category: , , , and
Implementation Notes[edit]
The the #ask query in the main template is passed the sub-template {{Restrictions/Formatter}}, which is responsible for formatting the results. I have tried several options to avoid needing to do this, unsuccessfully. The results of the template calls tend to get mangled when passed as column headers.
The sub-template could be re-used by other queries, to generate a subset of tags. For example, a listing of retired content may wish not to include the redundant RETIRED on every item.