Jump to content

Template:Doc-code/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by SWinxy (talk | contribs) at 23:33, 14 July 2022 (test). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
Test1
{{Doc-code|param1|param2|3=
<div class="documentation-container" role="complementary" aria-labelledby="documentation-heading">
<div class="documentation">
<div class="documentation-startbox">
<span class="documentation-heading" id="documentation-heading">[[File:Test Template Info-Icon - Version (2).svg|50px|link=|alt=]] Template documentation</span><span class="mw-editsection-like plainlinks">&#91;[[Template:Doc-code/doc|view]]&#93; &#91;[[Special:EditPage/Template:Doc-code/doc|edit]]&#93; &#91;[[Special:PageHistory/Template:Doc-code/doc|history]]&#93; &#91;[[Special:Purge/Template:Doc-code/testcases|purge]]&#93;</span></div>
<div class="module-shortcutanchordiv"><span id="docc"></span></div><div class="module-shortcutboxplain noprint" role="note"><div class="module-shortcutlist">[[Wikipedia:Shortcut|Shortcut]]</div><div class="plainlist"><ul><li>&#123;&#123;subst:<span class="plainlinks">[//en.wikipedia.org/w/index.php?title=Template:Docc&redirect=no docc]</span>&#125;&#125;</li></ul></div></div>

<table class="box-Subst_only plainlinks ombox ombox-notice" role="presentation"><tr><td class="mbox-image">[[File:Information icon4.svg|40x40px|link=|alt=]]</td><td class="mbox-text">'''This template should always be [[Help:Substitution|substituted]]''' (i.e., use <code>&#123;&#123;[[Template:Doc-code/testcases|subst:Doc-code/testcases]]&#125;&#125;</code>).</td></tr></table>[[Category:Wikipedia substituted templates]]__EXPECTUNUSEDTEMPLATE__
This template is used for inserting the [[Template:documentation|documentation]] template wrapped in noinclude tags. A guiding comment for categories and interlanguage links is also inserted.

See [[Template:Documentation]] for more information.
== Usage ==
Place &#123;&#123;subst:[[Template:doc-code|doc-code]]&#125;&#125; just after the last line of the template code. Do not create a new line.

[[Category:Wikipedia formatting templates]]
<div class="documentation-clear"></div>
</div>
<div role="note" class="documentation-metadata plainlinks">The above [[Wikipedia:Template documentation|documentation]] is [[Help:Transclusion|transcluded]] from [[Template:Doc-code/doc]]. <span class="documentation-toolbar">([[Special:EditPage/Template:Doc-code/doc|edit]] &#124; [[Special:PageHistory/Template:Doc-code/doc|history]])</span><br />Editors can experiment in this template's [[Template:Doc-code/sandbox|sandbox]] <span class="documentation-toolbar">([[Special:EditPage/Template:Doc-code/sandbox|edit]] &#124; [https://en.wikipedia.org/w/index.php?title=Special%3AComparePages&page1=Template%3ADoc-code&page2=Template%3ADoc-code%2Fsandbox diff])</span> and [[Template:Doc-code/testcases|testcases]] <span class="documentation-toolbar">([[Special:EditPage/Template:Doc-code/testcases|edit]])</span> pages.<br />Add categories to the [[Template:Doc-code/doc|/doc]] subpage. [[Special:PrefixIndex/Template:Doc-code/|Subpages of this template]].</div></div>[[Category:Wikipedia pages with strange ((documentation)) usage]]
 |name3=value3}}

{{Doc-code}}

<noinclude> {{documentation}} </noinclude>

{{Doc-code/sandbox}}

<noinclude> {{Documentation}} </noinclude>

Test2
{{Doc-code|param1|param2|<noinclude>
{{Documentation}}
<!-- Add categories to the /doc subpage and interwikis in Wikidata, not here! -->
</noinclude>|name3=value3}}

{{Doc-code}}

<noinclude> {{documentation}} </noinclude>

{{Doc-code/sandbox}}

<noinclude> {{Documentation}} </noinclude>