Difference between revisions of "Template:Documentation subpage/doc"

From blackwiki
Jump to navigation Jump to search
test>Pathoschild
(rewrote (simpler), cleaned up old links, removed inaccurate interwiki linking template)
test>Pathoschild
(updated)
Line 1: Line 1:
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
+
{{documentation subpage}}
  
 
==Documentation==
 
==Documentation==
 
<pre>
 
<pre>
&lt;noinclude&gt;{{documentation subpage}}&lt;/noinclude&gt;
+
{{documentation subpage}}
or: &lt;noinclude&gt;{{documentation subpage|[[main page to link to]]}}&lt;/noinclude&gt;
+
or: {{documentation subpage|[[main page to link to]]|[[documentation to link to]]}}
 
</pre>
 
</pre>
This template provides a link back to the main page after a user clicks the documentation's 'edit' or 'view' button.
+
This template should 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 (ie, pages transcluding the "/doc" page), it notes that the documentation is transcluded from a subpage.
  
 
===See also===
 
===See also===
 
* [[m:Template:Documentation]] or [[Wikipedia:Template documentation]] for how this template is used.
 
* [[m:Template:Documentation]] or [[Wikipedia:Template documentation]] for how this template is used.
* [[Template:Template doc page transcluded]]
 
  
 
<includeonly>
 
<includeonly>

Revision as of 01:24, 2 October 2007

Documentation

{{documentation subpage}}
or: {{documentation subpage|[[main page to link to]]|[[documentation to link to]]}}

This template should 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 (ie, pages transcluding the "/doc" page), it notes that the documentation is transcluded from a subpage.

See also