Template:ModifyPage View history

(Expanded template)
(Added parameter)
Line 1: Line 1:
{{#ifexist: {{BasePage2}}/{{{1|Intro}}}<!-- Check if unique state sec exists -->
{{#ifexist: {{BasePage2}}/{{{1|Intro}}}<!-- Check if unique state sec exists -->
   | <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 -->
   | <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 -->
   | <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=USA/CommonState/{{urlencode:{{{2|{{{1|Intro}}}}}}|WIKI}}/Preload <span style="color: #BA0000; text-decoration: inherit; -moz-text-decoration-color: #BA0000; text-decoration-color: #BA0000;" title="{{{1|Foo}}} (page does not exist)">Click to create]</span></span><!-- 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 to create]</span></span><!-- Link to add unique page -->
}}<noinclude>{{documentation}}</noinclude>
}}<noinclude>{{documentation}}</noinclude>

Revision as of 20:46, 22 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.