Wikipedia:Template doc page pattern/doc
Appearance
- These are the results of {{subst:interwikitmp doc page pattern}}
- The below (after the first page across line) contents are the edited only with inserted newlines in 'nowiki' blocks inside a 'div style' block for readability...
All only so comment lines and such will show as if it is an edit screen. Note the three broken 'includeonly' and 'noinclude' statements:
- (The redlinkS are expected 'HERE': This isn't template space, nor a template but documentation!)
<!-----------------Interwiki Doc page pattern------------------->{{-}}
<small>''This ' NAME ' template documentation is [[w:Wikipedia:Template doc page pattern
|transcluded]] for all {{Lts| {{BASEPAGENAME}} }} tagged templates''
[<span class="plainlinks">[{{fullurl:Template:{{BASEPAGENAME}} |action=edit}}
edit]</span>].{{#ifeq:{{SITENAME}}|Wikipedia| |[[W:template:{{PAGENAMEE}}|Masterpage]]
}}</small> <noincl ude>{{template doc page viewed directly}}{{-}}
<!--- {{interwikitmp-grp|V=0|cats=|inhib=yes|{{PAGENAME}}|{{PAGENAME}}}} --- Stub for real /doc page ---
----- The interwikitmp-grp here will inherit the Pagename of the calling file,
which should reference this page within a noinclude block. ------------
-------------------------- --->
<nowiki>[[Category:Template documentation|{{PAGENAME}}]]</noinclude><includeonly>
<!-- EDIT IN TEMPLATE CATEGORIES BELOW THIS LINE -->
</includeonly> <!--- Note breakage deliberate... in four different places. ----
----- Clean it up after subst'ing when building your usage. --->
<!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
;This line from Template'' 'Interwiki doc page pattern' ''
:''Replace with your help, documentation, etc.''
<!-- EDIT TEMPLATE Interwiki's BELOW THIS LINE -->
</noinclude>
[[Category:Template templates|{{PAGENAME}} ]] <!--- If this line subst'd,
delete it, unless applicable --->{{interwikitmp-grp|V=0|inhib=yes|!{{PAGENAME}}
|{{PAGENAME}} <!--- This is correct for declaring this page --->}}
</noinclude>