Template:File

From ParabolaWiki
Jump to: navigation, search
This page is a template. It contains no Arch Linux-related information, but should be used as part of other articles. For more information, read Help:Template.

Please do not experiment with this template; you could ruin all pages using this template. If you want to edit this template, copy the text to Template:Sandbox, edit and test it there, and copy it back when it works.

Feel free to voice your opinion regarding this template.

A 'File' box used to display file contents.

1 Usage

{{File|name=file_name|content=Content of file_name}}

Note: If the equal sign ( = ) is used inside the name or content parameters, MediaWiki will break the template's output. You need to enclose the equal sign (or the entire block of text) in <nowiki> tags and/or use named parameters like so:
{{File|name=/tmp/bk==g.tmp|content=<nowiki>Content of /tmp/bk==g.tmp with [[wiki markup]] and '''other''' {{weirdness}}</nowiki>}}
File: /tmp/bk==g.tmp
Content of /tmp/bk==g.tmp with [[wiki markup]] and '''other''' {{weirdness}}

2 Example

{{File|/etc/passwd|<nowiki>root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/bin/false
daemon:x:2:2:daemon:/sbin:/bin/false</nowiki>}}

File: /etc/passwd
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/bin/false
daemon:x:2:2:daemon:/sbin:/bin/false