Template:TemplateDoc: Difference between revisions

From Octave
Jump to navigation Jump to search
(created doc for Template:Path)
 
(fix link to use png image instead of svg)
 
(One intermediate revision by the same user not shown)
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.png|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>

Latest revision as of 02:23, 7 December 2011

[edit]

Template-info.png 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.