模板:Empty section

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

{{#ifeq:left|left|}}

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

{{#ifeq:empty section |doc

    | 

{{#ifeq:show |show

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

Usage编辑

{{#ifeq:{{safesubst:#switch: {{{header}}}

|no
|n
|f
|false
|off
|0        = no
|         = yes
|¬        = yes
|yes
|y
|t
|true
|on
|1        = yes
|#default = yes
}}|yes|
{{#if:|{{#switch:
|={{#ifeq:{{safesubst:#switch: {{{lc}}}
|no
|n
|f
|false
|off
|0        = no
|         = no
|¬        = no
|yes
|y
|t
|true
|on
|1        = yes
|#default = no

}}|no|S|s}}ee the monthly parameter usage report for {{#if:|[[Template:]]|this template}}.

|None|none=Parameter usage report
|for|For=Parameter usage report for {{#if:|[[Template:]]|Template:Empty section}}.
|#default=[1]

}}|This is the {{#if:|TemplateData|TemplateData}} documentation for this template used by VisualEditor and other tools; {{#switch:

|={{#ifeq:{{safesubst:#switch: yes
|no
|n
|f
|false
|off
|0        = no
|         = no
|¬        = no
|yes
|y
|t
|true
|on
|1        = yes
|#default = no

}}|no|S|s}}ee the monthly parameter usage report for {{#if:|[[Template:]]|this template}}.

|None|none=Parameter usage report
|for|For=Parameter usage report for {{#if:|[[Template:]]|Template:Empty section}}.
|#default=[2]

}}}}

TemplateData for Empty section

{{#switch:
 {{#if:
 | {{{demospace}}}    
 | {{#ifeq:模板|模板
   | template
   | other
   }}
 }}

| template = {{#if:{{#ifeq:Empty s|sandbox|1}}{{#ifeq:Empty section|doc|1}}||

}} | other | #default = }}

}}
To be placed in sections that are empty, containing neither text nor sub-sections. Before tagging an empty section, consider removing the section heading instead – for example, an empty "Gallery", "See also" or "External links" section can safely be deleted.

{{Empty section}} puts articles into Category:Articles with empty sections and Category:Articles to be expanded.

Common form


{{Empty section|date=11月 2024|section= }}
⧼templatedata-doc-param-name⧽⧼templatedata-doc-param-desc⧽⧼templatedata-doc-param-type⧽⧼templatedata-doc-param-status⧽
Month and yeardate
The month and year that the template was placed (in full).
⧼templatedata-doc-param-example⧽
February 2020
⧼templatedata-doc-param-autovalue⧽
11月 2024
⧼templatedata-doc-param-type-line⧽⧼templatedata-doc-param-status-suggested⧽
Section numbersection
The section number to be edited (or whatever the &section= parameter accepts).
⧼templatedata-doc-param-type-string⧽⧼templatedata-doc-param-status-optional⧽
Make smallsmall
Anything except left: Uses an in-line default-sized message box.
left (default): Uses smaller left-aligned message box designed for the head of sections. (See Template:Ambox/doc#The small parameters.)
⧼templatedata-doc-param-type-string⧽⧼templatedata-doc-param-status-optional⧽

Format: inline

Test of raw TemplateData output:
<templatedata>{"format":"inline","description":"To be placed in sections that are empty, containing neither text nor sub-sections. Before tagging an empty section, consider removing the section heading instead – for example, an empty \"Gallery\", \"See also\" or \"External links\" section can safely be deleted., , puts articles into Category:Articles with empty sections and Category:Articles to be expanded.","paramOrder":["date","section","small"],

"params":{ "date":{"suggested":true,"type":"line","description":"The month and year that the template was placed (in full).","label":"Month and year","example":"February 2020","autovalue":"11月 2024"},

"section":{"type":"string","description":"The section number to be edited (or whatever the  parameter accepts).","label":"Section number"},

"small":{"type":"string","description":"Anything except : Uses an in-line default-sized message box., ' (default): Uses smaller left-aligned message box designed for the head of sections. (See Template:Ambox/doc#The small parameters.)","label":"Make small"} }

}</templatedata>

Tracking categories编辑

  • [[:Category:{{#ifeq:All artic|Category:|模板:Str right|All articles to be expanded}}|{{#if:|{{{name}}}|Category:{{#ifeq:All artic|Category:|模板:Str right|All articles to be expanded}}}}]] (0)
  • [[:Category:{{#ifeq:All artic|Category:|模板:Str right|All articles with empty sections}}|{{#if:|{{{name}}}|Category:{{#ifeq:All artic|Category:|模板:Str right|All articles with empty sections}}}}]] (0)

Redirects编辑

See also编辑

{{#if:{{#ifeq:Empty s|sandbox|1}}{{#ifeq:Empty section|doc|1}}||

}}