Template:Template doc page transcluded/doc
From Wikiversity
| Similar templates at English sister projects [edit] | |||
|---|---|---|---|
| wpd | Wikipedia | Template doc page transcluded/doc | |
| cms | Commons | Template doc page transcluded/doc | |
| wbk | Wikibooks | Template doc page transcluded/doc | |
| wsp | Wikispecies | Template doc page transcluded/doc | |
| wvy | Wikiversity | Template doc page transcluded/doc | |
[edit] Use
Start the combined usage page or the /doc page with the following:
<includeonly> {{Template doc page transcluded}}
</includeonly><noinclude>
{{template doc page viewed directly}}
</noinclude>
- or
<includeonly>{{Template doc page transcluded| ''pagename''<nowiki>}}
</includeonly><noinclude>
{{template doc page viewed directly}}
</noinclude>
Place at the top of a template documentation page (usually a "Template:Template name/doc" page) that is transcluded on the template's own page (Template:Template name). If the documentation page is not named "doc" and/or its transclusion is via another subpage (e.g. "Template:Template name/example"), use the second form of syntax above and replace pagename accordingly.
- alternatively, substitute the template in the documentation page, and make a manual link fixup (needed only for such common usage pages, where {{BASEPAGENAME}} varies).
[edit] See also
- {{Interwikitmp-grp}}
- the companion template {{Template doc page viewed directly}}
- the companion sample template {{sample}}
- {{Interwiki doc page pattern}} which when subst'ed, creates boilerplate text for a /doc page including the proper calls to the other two.
- Note: All four add tagged pages properly to Category:Template documentation