Template:Expand/doc:修订间差异

无编辑摘要
无编辑摘要
第1行: 第1行:
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
<includeonly>{{template doc page transcluded}}</includeonly><noinclude>{{template doc page viewed directly}}</noinclude>
    <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
    <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE -->
''' 需要完善''' 可以用于强调需要完善的页面。
'''Expand''' can be used to highlight articles that need expansion.
 
== Usage ==
This table may be added by copy-pasting the template as shown below into an article.


== 用法 ==
<div style="background:#ddd; border:1px solid black; padding:0.5em 1em 0.5em 1em;">
<div style="background:#ddd; border:1px solid black; padding:0.5em 1em 0.5em 1em;">
<pre>
<pre>
第10行: 第12行:
</div>
</div>


== 参数 ==
== Parameters ==
{| class="wikitable"
{| class="wikitable"
|-
|-
! 参数
! Parameter
! 描述
! Description
! 默认值
! Default
! 状态
! Status
|-
|-
| with
| with
| 解释需要解决的问题
| explain what issues need to be addressed
| –
| –
| ''' 选填'''
| '''optional'''
|-
|-
| talksection
| talksection
| 引导至讨论页面中关于此问题的标题
| section heading in the talk page where the issue is discussed
| –
| –
| ''' 选填'''
| '''optional'''
|}
|}
请使用这些选项之一。
Please use one of these options.


== 效果 ==
== Effects ==
在需要完善的页面放置提示框,使用本模板的页面将自动添加至分类[[: 分类: 需要完善]] 中。
Puts a table onto the page that needs expansion and auto-categorizes tagged articles into [[:Category:Expand]].


== 更新此模板 ==
== Updating this template ==
联系[[User:Pokewiz|Pokewiz]]。
You shouldn't have to.


== 举例 ==
== Examples ==
<pre>{{Expand‎}}</pre>
<pre>{{Expand‎}}</pre>
则显示:
Will display this:
{{Ambox_2020
{{Ambox_2020
|type=warning
|type=warning
|fa=pencil
|fa=pencil
|text1=此页面尚未完成
|text1=此页面尚未完成
|text2={{#if: |,需要完善以下内容:|,请简要说明需要补充的内容以方便他人完善}}
|text2={{#if:{{{1}}} |,需要完善以下内容:{{{1}}}|,请简要说明需要补充的内容以方便他人完善}}
{{#if:| {{#ifexist: {{TALKPAGENAME}}|<br/>Further information might be found on the [[{{TALKPAGENAME}}#{{{talksection}}}|talk page]]。}} }}
{{#if:| {{#ifexist: {{TALKPAGENAME}}|<br/>Further information might be found on the [[{{TALKPAGENAME}}#{{{talksection}}}|talk page]]。}} }}
}}
}}[[Category:需要完善]]


<pre>{{Expand‎|with= 一个例子}}</pre>
<pre>{{Expand‎|with=an example}}</pre>
则显示:
Will display this:
{{Ambox_2020
{{Ambox_2020
|type=warning
|type=warning
|fa=pencil
|fa=pencil
|text1=此页面尚未完成
|text1=此页面尚未完成
|text2={{#if: 一个例子 |,需要完善以下内容 :一个例子|,请简要说明需要补充的内容以方便他人完善}}
|text2={{#if:an example |,需要完善以下内容 :an example|,请简要说明需要补充的内容以方便他人完善}}
{{#if:| {{#ifexist: {{TALKPAGENAME}}|<br/>Further information might be found on the [[{{TALKPAGENAME}}#{{{talksection}}}|talk page]]。}} }}
{{#if:| {{#ifexist: {{TALKPAGENAME}}|<br/>Further information might be found on the [[{{TALKPAGENAME}}#{{{talksection}}}|talk page]]。}} }}
}}
}}[[Category:需要完善]]


<pre>{{Expand‎|with=<nowiki />
<pre>{{Expand‎|with=<nowiki />
* 计算公式
*calculation formula
* 举例计算</pre>
*example calculation}}</pre>
则显示:
Will display this:
{{Ambox_2020
{{Ambox_2020
|type=warning
|type=warning
第66行: 第68行:
|text1=此页面尚未完成
|text1=此页面尚未完成
|text2={{#if:<nowiki />
|text2={{#if:<nowiki />
* 计算公式
*calculation formula
* 举例计算 |,需要完善以下内容:<nowiki />
*example calculation |,需要完善以下内容:<nowiki />
* 计算公式
*calculation formula
* 举例计算|,请简要说明需要补充的内容以方便他人完善}}
*example calculation|,请简要说明需要补充的内容以方便他人完善}}
{{#if:| {{#ifexist: {{TALKPAGENAME}}|<br/>Further information might be found on the [[{{TALKPAGENAME}}#{{{talksection}}}|talk page]]。}} }}
{{#if:| {{#ifexist: {{TALKPAGENAME}}|<br/>Further information might be found on the [[{{TALKPAGENAME}}#{{{talksection}}}|talk page]]。}} }}
}}
}}[[Category:需要完善]]<noinclude>
 
[[en:Template:Expand/doc]]

2020年10月19日 (一) 17:51的版本

这是 Template:Expand模板文档
当直接浏览时,使用变量可能会失效,请不要使用硬编码来代替页面名或地址。

Expand can be used to highlight articles that need expansion.

Usage

This table may be added by copy-pasting the template as shown below into an article.

{{Expand}}

Parameters

Parameter Description Default Status
with explain what issues need to be addressed optional
talksection section heading in the talk page where the issue is discussed optional

Please use one of these options.

Effects

Puts a table onto the page that needs expansion and auto-categorizes tagged articles into Category:Expand.

Updating this template

You shouldn't have to.

Examples

{{Expand‎}}

Will display this:

{{Expand‎|with=an example}}

Will display this:

{{Expand‎|with=<nowiki />
*calculation formula
*example calculation}}

Will display this: