Difference between revisions of "Template:TemplateDoc"

From Octave
Jump to navigation Jump to search
(created doc for Template:Path)
 
Line 1: Line 1:
This template is for (inline) file paths.
+
{|style="width:100%; padding:2px; margin:0; margin-bottom:10px; background-color:#E9EDF6; border:1px solid #aaa;"
 +
|
 +
<span class="editsection plainlinks" id="doc_editlinks">{{#ifexist:{{#rel2abs:{{{List|./Doc}}}}}
 +
    |<!--**    /doc EXISTS**  -->[[{{fullurl:{{#rel2abs:{{{List|./Doc}}}}}|action=edit}} edit]]
 +
    |<!--**/doc DOESN'T EXIST**-->[[{{fullurl:{{#rel2abs:{{{List|./Doc}}}}}|action=edit}} create]]
 +
  }}</span>
 +
<div style="font-size: 1.5em; font-weight:bold;"> [[Image:Template-info.svg|50px]] Template Documentation </div>
 +
----
 +
{{#ifexist: {{#rel2abs:{{{List|./Doc}}}}} |
 +
{{ {{#rel2abs:{{{List|./Doc}}}}} }} |
 +
To use this template insert <nowiki>{{</nowiki>{{SUBJECTPAGENAME}}<nowiki>}}</nowiki> into the page you wish to use it on and the page you wish.
  
Example: <nowiki>{{Path|/etc/octave.conf}}</nowiki>
+
''This template does not have documentation, please [[{{#rel2abs:{{{List|./Doc}}}}}|add it]]'' [[Category:Template No Doc]]
 
+
}}
Will produce: {{Path|/etc/octave.conf}}
+
|}<noinclude>[[Category:Templates]]</noinclude>
 
 
<noinclude>[[Category:Template Documentation]]</noinclude>
 

Revision as of 06:13, 6 December 2011

[edit]

Template-info.svg Template Documentation

This document can be placed into all templates. You can add it by typing <noinclude>{{TemplateDoc}}</noinclude> at the bottom of the template page.