Template:Template doc page/doc
From MeritBadgeDotOrg
{{#ifeq: Template doc page/doc | Template doc page/doc
|This documentation is transcluded from Template:Template doc page/doc/doc. (edit | history)
This template may have a sandbox and testcases for editors to experiment.
This template may have a sandbox and testcases for editors to experiment.
|
| | This is the documentation page for Template:Template doc page/doc. When viewed directly, links using variables may appear broken; do not replace these with hard-coded page names or URLs.
|
}}
Usage
This template is to be used at the top of template documentation pages. An empty copy-pasteable example for starting a /doc page:
{{Template doc page}}
<!--
PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE
YOU CAN EDIT THE TEMPLATE DOCUMENTATION BELOW THIS COMMENT
-->
==Usage==
==See also==
<includeonly>
<!-- PLEASE ADD CATEGORIES BELOW THIS LINE, THANKS. -->
<!-- PLEASE ADD INTERWIKIS BELOW THIS LINE, THANKS. -->
</includeonly>
At "runtime", depending whether it is on the template page itself or on the /doc subpage of the template, it transcludes in one of these two templates:
-
{{Template doc page transcluded}}
or
-
{{Template doc page viewed directly}}
Thus, it has the same functionality as in this older code example:
<includeonly>{{Template doc page transcluded}}</includeonly>
<noinclude>{{Template doc page viewed directly}}</noinclude>
<!--
PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE
YOU CAN EDIT THE TEMPLATE DOCUMENTATION BELOW THIS COMMENT
-->
==Usage==
...
See also
- MeritBadgeDotOrg:Template documentation
- Template:Template doc
- Template:Template doc page transcluded
- Template:Template doc page viewed directly
