Jump to content

Template:Dialog/documentation/doc

From Wikibooks, open books for an open world

If a page contains interactive dialog that should be documented, and it isn't part of an assistant, place this template at the bottom of the dialog page, and at the top of the documenting page.

The template determines which sort of page it's on by checking to see if the current page name ends with /doc. To override this determination, specify a non-blank parameter dialog; if dialog=no, the page is treated as documentation; if dialog has any other non-blank value, the page is treated as dialog.

Ordinarily, the template assumes the name of the documentation page suffixes /doc to the name of the dialog page. To override this assumption on the dialog page, provide an unnamed parameter naming the documentation page. To override this assumption on the documentation page, provide one or two unnamed parameters: one named parameter names the dialog page; two non-blank parameters are the dialog page name and a label for the link; and a blank first parameter followed by a non-blank second parameter produce an unlinked description of the dialog.

Examples

[edit source]

On a dialog page

[edit source]
{{dialog/documentation|foo}}
{{dialog/documentation|foo|bar}}
{{dialog/documentation||bar}}

On a documentation page

[edit source]
{{dialog/documentation|foo}}
{{dialog/documentation|foo|bar}}
{{dialog/documentation||bar}}

Default on the current page

[edit source]

By default the template would treat this page as a documentation}} page.

{{dialog/documentation|foo}}
{{dialog/documentation|foo|bar}}
{{dialog/documentation||bar}}


See also

[edit source]