Template:Dialog/confirm view/doc
This is a documentation subpage for Template:Dialog/confirm view It contains usage information, categories and other content that is not part of the original template page. |
This is a dialog formatting template. It is meant for use on interactive dialog pages, and may involve interactions between wiki markup, HTML, and JavaScript. Please carefully test any edits before making them. |
Usage
editPlacing this template on a dialog page indicates, when attempting to view the dialog page via dialog action do verb view, that the user should be asked for confirmation before proceeding with the action. The question to ask for confirmation is provided as an unnamed templated parameter; if not provided, a default question is asked; as of this writing, View page?
. If the user cancels rather than confirming, dialog attempts to roll back to the dialog state from which the action request was made; if that can't be done, an error panel is displayed explaining the user's options for what to do next.
The {{dialog/confirm view}} template call must appear on the accessed page itself, and must also still be present on the page after template-expansion of the page. Thus, confirmation may be conditional on logic on the page, determined at expansion time, but arbitrary templates used on the dialog page cannot impose confirmation if it was not provided for by the dialog page itself.
See also
edit