Template:ModifyPage View history

(typo)
(Fixed typo in comment field for edit summary text)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#ifexist: {{PAGENAME}}/{{{1|Intro}}}<!-- Check if unique state sec exists -->
{{#ifexist: {{BasePage2}}/{{{1|Intro}}}<!-- Check if unique state sec exists -->
   | [http://wiki.waze.com/wiki/index.php?title={{urlencode:{{PAGENAME}}/{{{1|Intro}}}|WIKI}}&action=edit&preview=yes&summary=*/{{urlencode:{{{1|Intro}}}|WIKI}}*/ Edit]<!-- Link to edit unique page -->
   | <span class="editlink noprint plainlinks navbar">[http://wiki.waze.com/wiki/index.php?title={{urlencode:{{BasePage2}}/{{{1|Intro}}}|WIKI}}&action=edit&preview=yes&summary=/*{{urlencode:{{{1|Intro}}}|WIKI}}*/ Edit]</span><!-- Link to edit unique page -->
   | [http://wiki.waze.com/wiki/index.php?title={{urlencode:{{PAGENAME}}/{{{1|Intro}}}|WIKI}}&action=edit&preview=yes&summary={{urlencode:Initial page creation from preload|PATH}}&preload=USA/CommonState/{{urlencode:{{{1|Intro}}}|WIKI}}/Preload Click to create]<!-- Link to add unique page -->
   | <span class="editlink noprint plainlinks navbar">[http://wiki.waze.com/wiki/index.php?title={{urlencode:{{BasePage2}}/{{{1|Intro}}}|WIKI}}&action=edit&preview=yes&summary={{urlencode:Initial page creation from preload|PATH}}&preload={{urlencode:{{{PreloadFull|USA/CommonState/{{{2|{{{1|Intro}}}}}}}}}|WIKI}}/Preload <span style="color: #BA0000; text-decoration: inherit; -moz-text-decoration-color: #BA0000; text-decoration-color: #BA0000;" title="{{{1|SECTION_NAME}}} (page does not exist)">Click here to create]</span></span><!-- Link to add unique page -->
}}<noinclude>{{documentation}}</noinclude>
}}<noinclude>{{documentation}}</noinclude>

Latest revision as of 06:13, 2 October 2015

Click here to create

Documentation icon Template documentation[view] [edit] [history] [purge]

Usage

Used with the {{[[::USA/CommonState|:USA/CommonState]]}} template suite. It is used mainly in the {{EditState}} template.

Parameters

The first parameter is the section name that will be checked if it exists. If it exists it will display a link to edit that section. If it does not exist, it will display a link to create that section.

The second parameter is optional. It is the name of the preload file when creating the section. Most sections use the name of the first parameter with /Preload appended to the end of the page name. In a few cases the preload page may have a different name. If this parameter is not present, the template will use the first parameter.

The above documentation is transcluded from Template:ModifyPage/doc.
Please add categories to the /doc subpage.
Subpages of this template.