Template:TemplateDoc: Difference between revisions

no edit summary
(created doc for Template:Path)
 
No edit summary
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>