{{#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=6月 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}}|| }}