Template:Fix:修订间差异
外观
删除的内容 添加的内容
enwiki>Ahecht Reduce WP:PEIS |
IdleTap-bot(留言 | 贡献) 导入自求闻百科 |
||
| 第1行: | 第1行: | ||
{{#switch:{{{subst|¬}}} |
{{#switch:{{{subst|¬}}} |
||
|¬={{ |
|¬={{category handler |
||
|template=[[Category: |
|template=[[Category:需要检查替代引用的模板]] |
||
|nocat={{{nocat|<noinclude>true</noinclude>}}} |
|nocat={{{nocat|<noinclude>true</noinclude>}}} |
||
}} |
}} |
||
|SUBST=[[Category: |
|SUBST=[[Category:錯誤使用替換引用的頁面]] |
||
}}{{ |
}}{{Category handler |
||
|main={{Fix/category |
|main={{Fix/category |
||
|cat-date={{{cat-date|}}} |
|cat-date={{{cat-date|}}} |
||
| 第15行: | 第15行: | ||
|date={{{date|}}} |
|date={{{date|}}} |
||
}} |
}} |
||
|template={{#if:{{{name|}}}|{{#ifeq:{{{name}}}|{{ROOTPAGENAME}}||{{#if:{{{date|}}}||[[Category: |
|template={{#if:{{{name|}}}|{{#ifeq:{{{name}}}|{{ROOTPAGENAME}}||{{#if:{{{date|}}}||[[Category:包含缺少日期的清理标记的模板]]}}}}}} |
||
|subpage=no |
|subpage=no |
||
}}{{#if:{{{text|}}} |
}}{{#if:{{{text|}}} |
||
|<sup class="noprint Inline-Template {{{class|}}}" style="white-space:nowrap;">[ |
|<sup class="noprint Inline-Template {{{class|}}}" style="white-space:nowrap;">[{{#if:{{{pre-text|}}} |
||
|{{{pre-text}}} |
|{{{pre-text}}} |
||
}}[[{{{link| |
}}{{#if:{{{link|}}}|[[{{{link|}}}|<span title="{{#if:{{{date|}}}|自{{{date}}}}}{{{title|{{{link|需要清理}}}}}}">{{{text|}}}</span>]]|<span title="{{#if:{{{date|}}}|自{{{date}}}}}{{{title|{{{link|需要清理}}}}}}">{{{text|}}}</span>}}{{#if:{{{post-text|}}} |
||
| |
|{{{post-text}}} |
||
}} |
}}]</sup>|{{{special|}}} |
||
}}<noinclude> |
|||
}}{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using Template:Fix with unknown parameters|_VALUE_{{PAGENAME}}]]|preview=Page using [[Template:Fix]] with unknown parameter "_VALUE_"|ignoreblank=y| cat | cat-date | cat-date2 | cat-date3 | cat2 | cat3 | class | date | link | name | nocat | post-text | pre-text | special | subst | text | title }}<noinclude> |
|||
{{Documentation}} |
{{Documentation}} |
||
<!-- Add cats and interwikis to the /doc subpage, not here! --> |
<!-- Add cats and interwikis to the /doc subpage, not here! --> |
||
2026年8月3日 (一) 14:54的最新版本
如您希望使用此模板创建内联条目,请考虑使用专为中文求闻百科设计的模板链接:{{Mark I}}模板。
用法
[编辑源代码]{{fix
|link = <需要链接到的页面,不需要[[]]> (默认 Qiuwen:Cleanup)
|text = <链接所显示的内容>
|pre-text = <在被显示的文字前加上的可选文本>
|post-text = <在被显示的文字后加上的可选文本>
|class = <显示文本的class> (默认 "noprint Inline-Template" 新增的类
应在不移除这两个类的情况下添加,如 "noprint Inline-Template FooBarBazQuux")
|title = <鼠标悬停时的提示>
|special = <绕过 text link title pre-text and post-text,完全自定义文本>
|date = <可以显示在cat-date里的可选日期参数,会自动显示在title后>
|cat = <把有这个模板的页面放到指定的分类里>
|cat-date = <为分类名提供可选的日期参数>}}
设计目的
[编辑源代码]大多数的内联提示性模板都使用几乎相同的格式。这个模板用于提供一个单一标准化而又能根据不同的模板适应不同文字、链接和分类的格式。
比如说这个模板[提供的资料太模糊而不足证实]的源码是:
{{fix
|link=Qiuwen:可供查证
|pre-text=提供的资料太模糊而
|text=不足证实
|title=该标记周围有一段文字缺乏具体的信息来查证
|date={{{date|}}}
|cat=[[Category:需补充来源的条目]]}}
用这种方法创建的内联模板只需要填充上述参数,这样一来无论是格式,功能还是语法都能够达到高度统一。