Template:Documentation/core: Difference between revisions

Content deleted Content added
imported>Davidgothberg
Using a special preload page for /doc pages in File space.
imported>Davidgothberg
Removing most debug reporting, since no serious cases found, I now have a copy of the list, and the {{PAGESIZE:}} call caused strange items in the "Pages transcluded" list in edit pages.
Line 114:
| testcases = strange
}}
<!--More checks can be added here, just return anything
to make the surrounding if-case trigger-->
 
| <includeonly>[[Category:Wikipedia pages with strange ((documentation)) usage|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace --></includeonly>
{{#switch: {{SUBJECTSPACE}}
| {{ns:0}}
| {{ns:File}}
| {{ns:MediaWiki}}
| {{ns:Category}} =
<!--Check if there are /doc, /sandbox and /testcases
in subject space when they should be in talk space-->
{{#ifexist:
{{SUBJECTSPACE}}:{{PAGENAME:{{{template page|}}}}}/doc
| strange
}}{{#ifexist:
{{SUBJECTSPACE}}:{{PAGENAME:{{{template page|}}}}}/sandbox
| strange
}}{{#ifexist:
{{SUBJECTSPACE}}:{{PAGENAME:{{{template page|}}}}}/testcases
| strange
}}
 
| #default =
<!--Check if there are /sandbox and /testcases
in talk space that are too large to be redirects,
when the subpages should be in subject space-->
{{#ifexpr:
{{PAGESIZE:
{{TALKSPACE}}:{{PAGENAME:{{{template page|}}}}}/sandbox
| R }} > 200
| strange
}}{{#ifexpr:
{{PAGESIZE:
{{TALKSPACE}}:{{PAGENAME:{{{template page|}}}}}/testcases
| R }} > 200
| strange
}}
 
}}
 
| <includeonly>[[Category:Wikipedia pages with strange ((documentation)) usage|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace --></includeonly>
}}<noinclude>