{{#ifeq:|left|}}

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

{{#ifeq:hook |doc

    | 

{{#ifeq:show |show

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

Usage编辑

{{#ifeq:{{ safesubst:#if:
 | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|模板:Hook}}|1}}
 | {{ safesubst:#if:|{{{1}}}|模板:Hook}}

}}|Wikipedia:Template messages||{{#ifexpr:{{#if:模板|0|1}}+{{#ifeq:no|yes|0|1}}

|{{#if:Templates with missing or incorrect documentation
 |{{#ifexist:Category:  Templates with missing or incorrect documentation
   ||}}
 |[[Category:{{#if:
              |{{{5}}}|}}]]}}{{#if:
     |[[Category:{{{4}}}]]}}}}}}

{{#if:{{#ifeq:Hook|sandbox|1}}{{#ifeq:Hook|doc|1}}||

{{#ifeq:{{{small}}}|left|}}

}}