No edit summary
No edit summary
Line 37: Line 37:
     | reason = because it is a high traffic page and therefore a likely target of vandalism
     | reason = because it is a high traffic page and therefore a likely target of vandalism
     | extratext = See also editcopy pages for related templates.
     | extratext = See also editcopy pages for related templates.
     | styles_main = :Main_Page/styles.css
     | styles_main = Main Page/styles.css
     | styles_editcopy = :Main_Page/styles.css/editcopy
     | styles_editcopy = Main Page/styles.css/editcopy
     }}
     }}
</syntaxhighlight>
</syntaxhighlight>
Line 47: Line 47:


</noinclude>
</noinclude>
<!-- Simple test template below -->
{{#if: {{#pos: {{PAGENAME}} | /editcopy}} |
  <div style="border: 2px solid green; padding: 10px; margin: 10px 0; background: lightgreen;">
    <strong>✓ POSITIVE:</strong> We are on editcopy page!<br>
    PAGENAME: {{PAGENAME}}<br>
    BASEPAGENAME: {{BASEPAGENAME}}<br>
    NAMESPACE: {{NAMESPACE}}<br>
    NAMESPACENUMBER: {{NAMESPACENUMBER}}<br>
    {{#if: {{#var:mainpagetitle}} | mainpagetitle variable: {{#var:mainpagetitle}} | mainpagetitle variable: NOT SET }}
  </div>
|
  <div style="border: 2px solid red; padding: 10px; margin: 10px 0; background: lightcoral;">
    <strong>✗ NEGATIVE:</strong> We are NOT on editcopy page!<br>
    PAGENAME: {{PAGENAME}}<br>
    BASEPAGENAME: {{BASEPAGENAME}}<br>
    {{#if: {{#var:mainpagetitle}} | mainpagetitle variable: {{#var:mainpagetitle}} | mainpagetitle variable: NOT SET }}
  </div>
}}