模板:Self-reference/doc

{{#ifeq:doc |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编辑