Template:ModifyPage View history

(Typo)
(Escaping section on create)
Line 1: Line 1:
{{#ifexist: {{PAGENAME}}/{{{1|Intro}}}/Main<!-- Check if unique state sec exists -->
{{#ifexist: {{PAGENAME}}/{{{1|Intro}}}/Main<!-- 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 -->
   | [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 -->
   | [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/{{{1|Intro}}}/Preload Click to create]<!-- Link to add 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 -->
}}<noinclude>{{documentation}}</noinclude>
}}<noinclude>{{documentation}}</noinclude>

Revision as of 20:16, 15 July 2014

Click 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.