“模板:快速分类”的版本间的差异
模板:快速分类
跳到导航
跳到搜索
第3行: | 第3行: | ||
{{快速分类}} | {{快速分类}} | ||
</pre> | </pre> | ||
− | </noinclude>{{#regex: {{PAGENAME}} | /^(?:(W{{!}}X)\/([^:]+)(:)?)?.*/ |}}{{#vardefine: wtype| {{#regex_var: $1|}}}}{{#vardefine: wname | {{#regex_var: $2|}} }}{{#vardefine: isnotindex | {{#regex_var: $3|}} }}{{#if: {{#var: wname}}| | + | </noinclude>{{#set: 设定标题|{{PAGENAME}} }}{{#regex: {{PAGENAME}} | /^(?:(W{{!}}X)\/([^:]+)(:)?)?.*/ |}}{{#vardefine: wtype| {{#regex_var: $1|}}}}{{#vardefine: wname | {{#regex_var: $2|}} }}{{#vardefine: isnotindex | {{#regex_var: $3|}} }}{{#if: {{#var: wname}}| |
{{#switch: {{#var: wtype}} | {{#switch: {{#var: wtype}} | ||
|W={{#if: {{#var: isnotindex}} | |W={{#if: {{#var: isnotindex}} | ||
第15行: | 第15行: | ||
}}| | }}| | ||
{{快速分类/公共设定}} | {{快速分类/公共设定}} | ||
+ | }}{{#vardefine: usercount| {{#ask: [[设定标题::{{{PAGENAME}}]] [[Editable by user::+]] | ||
+ | |?Editable by user | ||
+ | |format=count | ||
+ | }} }}{{#ifeq: {{#var: usercount}} | 0 | | ||
+ | {{InfoBox|content=本页面无维护者,请使用"创作者信息"模板设置维护者信息}} | ||
+ | [[Category:无维护者的页面]] | ||
}} | }} |