Template:Template doc page/doc

From MeritBadgeDotOrg

Jump to: navigation, search

{{#ifeq: Template doc page/doc | Template doc page/doc

|
|  
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


Personal tools
language