Template:Documentation/core: Difference between revisions

From Donate
Jump to navigation Jump to search
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: Line 114:
| testcases = strange
| 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>
}}<noinclude>



Revision as of 17:24, 12 February 2010

[edit] [Purge] Template documentation

Template:Documentation/core/doc

The above documentation is transcluded from Template:Documentation/core/doc. (edit | history)
Editors can experiment in this template's sandbox (create) and testcases (create) pages.
Add categories and interwikis to the /doc subpage.Subpages of this template.

Template:Pp-template