Template:Dialog/page/doc
This is a documentation subpage for Template:Dialog/page (see that page for the template itself). 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. |
This template is used on over 1300 pages. Changes to this template may cause some server load, and mistakes will be visible on many pages. Please carefully test any edits before making them, and avoid making unnecessary edits. |
This template guarantees a page name has a colon somewhere in it, by adding one at the front if necessary.
Usage
editApply this template to a parameter literal value for {{dialog/button}} if the literal value is meant to be a page name, but might not contain a colon. ({{dialog/button}} uses the presence of a colon to identify whether a parameter literal value is a page name that ought to be linked via {{hidden use}}.)
{{dialog/page|foo:bar}}
|
would produce | foo:bar |
{{dialog/page|foobar}}
|
would produce | :foobar |