Editing Template:File/Doc
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
This template is used to include the contents of files. The first argument is the filename/filepath | This template is used to include the contents of files. The first argument is the filename/filepath. Note that the actual code still needs to be inside a <nowiki><pre>...</pre></nowiki> block. To markup ''only'' the name of a file (e.g., {{path|/etc/conf.d/915resolution}}), use [[Template:Path]] instead. | ||
Example: <pre>{{File|~/.octaverc|<pre> | |||
Example: | |||
<pre>{{File|~/.octaverc|<pre> | |||
## make prompt look like python | ## make prompt look like python | ||
PS1(">>> ") | PS1(">>> ") | ||
Line 34: | Line 30: | ||
</pre>}} | </pre>}} | ||
[[Category:Template | <noinclude>[[Category:Template Documentation]]</noinclude> |