Content deleted Content added
HouseBlaster (talk | contribs) →Technical details: +protection-error |
HouseBlaster (talk | contribs) |
||
Line 9:
== Technical details==
This module is designed to be [[extensible]] without needing to edit the module code. Much of its data
* [[Template:Contentious topics/Additional restrictions.json]] contains per-topic additional restrictions. The <code>topic-wide</code> restrictions apply whenever the corresponding CTOP code is given and applies to the entire page (i.e. there are no {{para|-section}} parameters). The <code>additional-available</code> restrictions can be passed as parameters (e.g. {{para|ECR|yes}}), and can be used either when a restriction is added to the topic's [[Wikipedia:Contentious topics#Standard set|standard set]] or when it applies to all articles within a subtopic of the contentious topic designation. If the contentious topic applies only to a section, the <code>topic-wide</code> behave like <code>additional-available</code> restrictions.
* [[Template:Contentious topics/Restrictions definition.json]] is the text of the bullet point indicating a restriction is active
* [[Template:Contentious topics/Standard set.json]] is a list of all standard set restrictions
Line 19:
** The <code>no-topic</code> category is used when no topics are specified
** The <code>protection-error</code> category is used when {{para|protection|yes}}, but the page is not actually protected
** The <code>unknown</code> category is used when [[Module:Check for unknown parameters|unknown parameters]] are provided
<includeonly>{{Sandbox other||
|