模板:Self-reference

Ph9讨论 | 贡献2020年12月27日 (日) 14:48的版本 (导入1个版本)
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

{{#ifeq:模板|模板||}}

{{#ifeq:{{{small}}}|left|}}{{#switch:模板||Talk=|}}

50px Template documentation[view] [edit] [history] [purge]

{{#ifeq:self-reference |doc

    | 

{{#ifeq:show |show

|
        }}{{#if: |
         |   {{#ifexist:模板:Self-reference
                  | [[Category:{{#switch:模板 |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]]
                  |
                 }}
        }}
    | 
   }}

Usage编辑

The default words "article or section" are replaceable: {{Self-reference|table}} produces:

{{#ifeq:模板|{{subst:NAMESPACE}}||}}{{#ifeq:{{{small}}}|left|}}{{#switch:模板||Talk=|}}

A date parameter can also be used to inform other editors of the time the tag has been in place: {{Self-reference|article|date=11月 2024}} produces something like:

{{#ifeq:模板|{{subst:NAMESPACE}}||}}{{#ifeq:{{{small}}}|left|}}{{#switch:模板||Talk=|}}

This template will categorize articles into Category:Articles containing self-references.

See also编辑

{{#if:{{#ifeq:Self-re|sandbox|1}}{{#ifeq:Self-reference|doc|1}}|| }}