Template:Template doc page transcluded

From Wikiversity

Jump to: navigation, search
Edit-paste.svg
This is the template documentation page for {{Template doc page transcluded}}.
It is not necessarily intended to be viewed directly. If it uses variables, some links may appear broken. Do not replace these variables with hardcoded page names or URLs.

Main Page trophy
Wikipedia
This page is part of the Meta/Wikipedia project:

WikiProject Template Sharing.

Meta-wiki
Meta-wiki

Similar templates at English sister projects [edit]
Wikipedia-logo.png wpd Wikipedia Template doc page transcluded
Commons-logo.svg cms Commons Template doc page transcluded
Wikibooks-logo.svg wbk Wikibooks Template doc page transcluded
Wikispecies-logo.svg wsp Wikispecies Template doc page transcluded
Wikiversity-logo.svg wvy Wikiversity Template doc page transcluded


[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

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