Template:Editcopy: Difference between revisions

From Structorica Wiki
Jump to navigation Jump to search
Created page with "{{#vardefine: mainpagetitle | {{#ifeq: {{NAMESPACENUMBER}} | 0 | {{BASEPAGENAME}} | {{NAMESPACE}}:{{BASEPAGENAME}} }} }}<!-- -->{{#ifeq: {{PAGENAME}} | {{BASEPAGENAME}}/editcopy | <!-- The MessageBox only appears on the /editcopy page, allowing it to be used on the main page to prevent the main page and the editcopy from appearing different --> {{#if: {{{styles_editcopy|}}} | <templatestyles src="{{{styles_editcopy}}}" /> }}<!-- Load custom styles for editcopy page if..."
 
No edit summary
Line 1: Line 1:
{{#vardefine: mainpagetitle | {{#ifeq: {{NAMESPACENUMBER}} | 0 | {{BASEPAGENAME}} | {{NAMESPACE}}:{{BASEPAGENAME}} }} }}<!--
{{#vardefine: mainpagetitle | {{#ifeq: {{NAMESPACENUMBER}} | 0 | {{BASEPAGENAME}} | {{NAMESPACE}}:{{BASEPAGENAME}} }} }}


-->{{#ifeq: {{PAGENAME}} | {{BASEPAGENAME}}/editcopy | <!-- The MessageBox only appears on the /editcopy page, allowing it to be used on the main page to prevent the main page and the editcopy from appearing different
<!-- Debug: PAGENAME={{PAGENAME}}, BASEPAGENAME={{BASEPAGENAME}}, mainpagetitle={{#var:mainpagetitle}} -->
 
{{#ifeq: {{PAGENAME}} | {{BASEPAGENAME}}/editcopy | <!-- The MessageBox only appears on the /editcopy page, allowing it to be used on the main page to prevent the main page and the editcopy from appearing different


--> {{#if: {{{styles_editcopy|}}} | <templatestyles src="{{{styles_editcopy}}}" /> }}<!-- Load custom styles for editcopy page if specified
--> {{#if: {{{styles_editcopy|}}} | <templatestyles src="{{{styles_editcopy}}}" /> }}<!-- Load custom styles for editcopy page if specified

Revision as of 18:21, 14 January 2026



Documentation

Examples:

{{Editcopy
    | Page Name
    | administrators
    | reason = high traffic page
    }}
{{Editcopy
    | Main Page
    | firsttitle = the main page
    | administrators
    | reason = because it is a high traffic page and therefore a likely target of vandalism
    | extratext = See also editcopy pages for related templates.
    | styles_main = :Main_Page/styles.css
    | styles_editcopy = :Main_Page/styles.css/editcopy
    }}