Citakan:Template doc page
Usage
éditThis 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== ...