Template:ModifyPage/doc

From Wazeopedia
This is a documentation subpage for Template:ModifyPage.
It contains usage information, categories and other content that is not part of the original template page.

Usage

Used with the {{: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.