Template:Dialog/documentation/doc
This is a documentation subpage for Template:Dialog/documentation It may contain usage information, categories and other content that is not part of the original template page. |
Usage
[edit source]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}}
This page contains interactive dialog. Documentation for the dialog may be created here. |
This page contains interactive dialog. Documentation for the dialog may be created here. |
{{dialog/documentation|foo|bar}}
This page contains interactive dialog. Documentation for the dialog may be created here. |
This page contains interactive dialog. Documentation for the dialog may be created here. |
{{dialog/documentation||bar}}
This page contains interactive dialog. Documentation for the dialog may be created here. |
This page contains interactive dialog. Documentation for the dialog may be created here. |
On a documentation page
[edit source]{{dialog/documentation|foo}}
This is an interactive dialog documentation page for foo. |
This is an interactive dialog documentation page for foo. |
{{dialog/documentation|foo|bar}}
This is an interactive dialog documentation page for bar. |
This is an interactive dialog documentation page for bar. |
{{dialog/documentation||bar}}
This is an interactive dialog documentation page for bar. |
This is an interactive dialog documentation page for bar. |
Default on the current page
[edit source]By default the template would treat this page as a documentation}} page.
{{dialog/documentation|foo}}
This is an interactive dialog documentation page for foo. |
This is an interactive dialog documentation page for foo. |
{{dialog/documentation|foo|bar}}
This is an interactive dialog documentation page for bar. |
This is an interactive dialog documentation page for bar. |
{{dialog/documentation||bar}}
This is an interactive dialog documentation page for bar. |
This is an interactive dialog documentation page for bar. |