“模板:File”的版本间的差异
来自Ubuntu中文
(以内容'<noinclude> '''A 'File' box used to display file contents.''' ====Usage==== {{Codeline|1=<nowiki>{{File|name=file_name|content=Content of file_name}}</nowiki>}} {{Note|…'创建新页面) |
(没有差异)
|
2010年9月23日 (四) 20:22的版本
A 'File' box used to display file contents.
Usage
{{File|name=file_name|content=Content of file_name}}
附注: Named parameters are required, or formatting fails whenever an 'equal' sign is encountered in the 'content'. Additionally, 'content' containing wiki markup should be surrounded in <nowiki> tags, like so:
{{File|name=file_name|content=<nowiki>Content of file_name with [[wiki markup]] and '''other''' {{weirdness}}</nowiki>}}
{{File|name=file_name|content=<nowiki>Content of file_name with [[wiki markup]] and '''other''' {{weirdness}}</nowiki>}}
Example
文件: file_name
<pre<noinclude></noinclude> style="padding: 0.25em; margin: 0 0 0.50em 0; background-color: #F7F7F7; border: thin dashed #7F7F7F; border-top: none">Content of file_name</pre<noinclude></noinclude>>