قالب:Dialog/ifsupported/doc

[{{fullurl:

Usage

Returns the name of the non-documentation page presumably associated with the transcluding page: returns {{FULLPAGENAME}} with a /doc suffix, if any, stripped off.

Use on a documentation subpage names the documented page (the object of the documentation) both when viewing the subpage directly and when transcluding it on the documented page.

An optional unnamed parameter specifies a name to use in place of {{FULLPAGENAME}}.

This template can be substituted (via subst:) as well as transcluded.

Examples

page where called result
Template:Assistant/dwim {{تم كشف حلقة قالب: قالب:OBJECTPAGENAME|Template:Assistant/dwim}}
Template:Assistant/dwim/doc {{تم كشف حلقة قالب: قالب:OBJECTPAGENAME|Template:Assistant/dwim/doc}}
أخبار المعرفة:Assistant/dwim {{تم كشف حلقة قالب: قالب:OBJECTPAGENAME|أخبار المعرفة:Assistant/dwim}}
أخبار المعرفة:Assistant/dwim/doc {{تم كشف حلقة قالب: قالب:OBJECTPAGENAME|أخبار المعرفة:Assistant/dwim/doc}}

See also

/doc/use-count/doc|action=edit&editintro=Template:Possible-risk/editintro&preload=Template:Possible-risk/preload&summary=create}} create use count]

This template displays different content depending on whether or not dialogs are supported.

Usage

Takes two unnamed parameters. If dialogs are supported, the first parameter is visible while the second is hidden. If dialogs are not supported, the first parameter is hidden while the second is visible. Both parameters are present on the page; it's just that one or the other is hidden.

During wiki page load prior to the start of a dialog, depending on various local and internet conditions there may be a period of delay —anywhere from just long enough to see up to several seconds or more— before the dialog gadget is permitted to run, during which dialog is temporarily unsupported before becoming available. Dialog would be persistently unsupported if, for example, the user has deselected the dialog gadget in their user preferences, or turned off javascript in their browser.

By default, both unnamed parameters are formatted as separate paragraphs. This can be overridden by specifying a non-blank parameter inline. However, when specifying inline, don't put anything in either unnamed parameter that wouldn't ordinarily occur embedded on a line of text (for example, don't put an {{xambox}} in either parameter), as this may prevent {{dialog/ifsupported}} from functioning correctly. (Internally, by default the template converts both unnamed parameters to <div> html elements, while with non-blank inline it converts them to <span> elements.)

See also