-
Notifications
You must be signed in to change notification settings - Fork 5
Template: Wiki Edit
This template determines how an article's editing interface (what happens when a user clicks an 'edit' link) is displayed within the Wiki Page wrapper template as outlined below:
Displays the editing interface for an article
In addition to the variables in the Wiki Page template, the Edit template has:
{content}
Displays the originally submitted content for the article with no processing or formatting.
{path:redirect_page}
The URL path to the redirect page, if one is specified for the article.
{preview}
Displays the preview of submitted content for the article with complete formatting.
{redirect_page}
The redirect page, if one is specified for the article.
{if moderated}
Checks to see if the article is moderated.
{if old_revision}
Checks to see if a "old" (not the most current) revision of an article is being edited. Old revisions can be edited and submitted as fresh revisions.
{if locked}
Check to see if the article is locked. This is used when an admin is editing an article.
{if preview}
Check to see if a preview is being shown.
{form_declaration:wiki:edit}
This variable is used to create the necessary opening
tag with hidden fields to display the edit textarea.The Wiki Edit Template can also use the {wiki:files} tag as described in the Special Files section. This is used to display a list of the wiki's uploaded files in the edit interface as outlined below:
Displays the wiki's uploaded files in the editing interface