Difference between revisions of "Template:Documentation subpage"
From Roll20 Wiki
m |
|||
(One intermediate revision by one user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#ifeq: {{lc:{{SUBPAGENAME}}}} | {{{override|doc}}} | <includeonly>{{#ifeq: {{lc:{{SUBPAGENAME}}}} | {{{override|doc}}} | ||
| <!-- doc page --> | | <!-- doc page --> | ||
− | + | {{ | |
#ifeq: {{{doc-notice|show}}} | show | #ifeq: {{{doc-notice|show}}} | show | ||
| {{mbox | | {{mbox | ||
Line 12: | Line 12: | ||
#if: {{{inhibit|}}} | #if: {{{inhibit|}}} | ||
| <!-- skip --> | | <!-- skip --> | ||
− | | | + | | {{#ifexist:{{NAMESPACE}}:{{BASEPAGENAME}}|[[Category:{{ |
#switch: {{SUBJECTSPACE}} | #switch: {{SUBJECTSPACE}} | ||
| Template = Template | | Template = Template | ||
Line 18: | Line 18: | ||
| User = User | | User = User | ||
| #default = Wikipedia | | #default = Wikipedia | ||
− | }} | + | }} Documentation]]|[[Category:Documentation subpages without corresponding pages]]}} |
− | }} | + | }} |
| <!-- if not on a /doc subpage, do nothing --> | | <!-- if not on a /doc subpage, do nothing --> | ||
}}</includeonly><noinclude> | }}</includeonly><noinclude> |
Latest revision as of 16:06, 16 January 2015
This template should normally be placed at the top of /doc pages. It changes output depending on where it is viewed:
- On a /doc page, it displays a box explaining template documentation and links to the template page.
- On other pages – i.e. pages transcluding the /doc page – the template will not show. The template page itself (which contains
{{Documentation}}
) will automatically note that the documentation is transcluded from a subpage.
The above documentation is transcluded from Template:Documentation subpage/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |