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 | This template is used to include the contents of files. | ||
Example: <pre>{{File|/etc/conf.d/915resolution|<pre> | |||
# Copyright 1999-2006 Gentoo Foundation | |||
# Distributed under the terms of the GNU General Public License v2 | |||
# $Header: /var/cvsroot/gentoo-x86/sys-apps/915resolution/files/confd,v 1.3 2007/04/17 16:52:24 genstef Exp $ | |||
# Config file for /etc/init.d/915resolution | |||
# based on the config file included with sys-apps/855resolution | |||
# | |||
## | # this example will replace mode "4d" with 1280x768x24 | ||
# to replace more than one mode do something like this | |||
#replace="'4d 1280 768 24' '5c 1400 1050 16'" | |||
replace="'5c 800 480 32'" | |||
## | # if you want to log the output add the file here. | ||
# this will be overwritten at every boot | |||
log="/var/log/915resolution" | |||
</pre>}}</pre> | </pre>}}</pre> | ||
Will produce: | Will produce: | ||
{{File| | {{File|/etc/conf.d/915resolution|<pre> | ||
## | # Copyright 1999-2006 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | |||
# $Header: /var/cvsroot/gentoo-x86/sys-apps/915resolution/files/confd,v 1.3 2007/04/17 16:52:24 genstef Exp $ | |||
## | # Config file for /etc/init.d/915resolution | ||
# based on the config file included with sys-apps/855resolution | |||
## | # this example will replace mode "4d" with 1280x768x24 | ||
# to replace more than one mode do something like this | |||
#replace="'4d 1280 768 24' '5c 1400 1050 16'" | |||
replace="'5c 800 480 32'" | |||
# if you want to log the output add the file here. | |||
# this will be overwritten at every boot | |||
log="/var/log/915resolution" | |||
</pre>}} | </pre>}} | ||
[[Category:Template | To markup ''only'' the name of a file (e.g., {{path|/etc/conf.d/915resolution}}), use [[Template:Path]] instead. | ||
<noinclude>[[Category:Template Documentation]]</noinclude> |