模板:File:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Qiii2006留言 | 贡献
撤销由Qiii2006对话)所作出的修订141409
Qiii2006留言 | 贡献
无编辑摘要
 
第5行: 第5行:
====用法====
====用法====


{{Codeline|1=<nowiki>{{File|name=file_name|content=Content of file_name}}</nowiki>}}
{{Codeline|1=<nowiki>{{File|name=文件名|content=文件内容}}</nowiki>}}


{{Note|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 &lt;nowiki&gt; tags, like so: <br/>
{{Note|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 &lt;nowiki&gt; tags, like so: <br/>
第13行: 第13行:
====示例====
====示例====


{{File|name=file_name|content=Content of file_name}}</noinclude><includeonly><div style="padding: 0.25em; margin: 0.50em 0 0 0; background-color: #E7FFE7; border: thin dashed #7F7F7F; border-bottom: thin solid #7F7F7F"><strong>File: <tt>{{{name}}}</tt></strong></div>
{{File|name=文件名|content=文件内容}}</noinclude><includeonly><div style="padding: 0.25em; margin: 0.50em 0 0 0; background-color: #E7FFE7; border: thin dashed #7F7F7F; border-bottom: thin solid #7F7F7F"><strong>文件: <tt>{{{name}}}</tt></strong></div>
<pre&lt;noinclude&gt;&lt;/noinclude&gt; style="padding: 0.25em; margin: 0 0 0.50em 0; background-color: #F7F7F7; border: thin dashed #7F7F7F; border-top: none">{{{content}}}</pre&lt;noinclude&gt;&lt;/noinclude&gt;></includeonly>
<pre&lt;noinclude&gt;&lt;/noinclude&gt; style="padding: 0.25em; margin: 0 0 0.50em 0; background-color: #F7F7F7; border: thin dashed #7F7F7F; border-top: none">{{{content}}}</pre&lt;noinclude&gt;&lt;/noinclude&gt;></includeonly>

2010年9月23日 (四) 20:39的最新版本


用来显示文件内容的文件框。

用法

{{File|name=文件名|content=文件内容}}

附注: 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>}}

示例

文件: 文件名

<pre<noinclude></noinclude> style="padding: 0.25em; margin: 0 0 0.50em 0; background-color: #F7F7F7; border: thin dashed #7F7F7F; border-top: none">文件内容</pre<noinclude></noinclude>>