{{#ifeq:left|left|}}

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

{{#ifeq:expand section |doc

    | 

{{#ifeq:show |show

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

Usage编辑

Place this template at the beginning of article sections that need expansion, after that section's title. You can use this template in the Main/Article or Wikipedia namespaces.

{{#if: | {{{alt}}} | {{#if:|{{#ifeq: {{{lc}}} | | s | S }}ince | {{#ifeq: {{{lc}}} | | a | A }}s of}} {{#if:|{{{pre}}} }}{{#if: | {{#ifeq:|us|{{#if:August|{{#switch:{{#if:August

|{{#switch:august
 |january|jan=1
 |february|feb=2
 |march|mar=3
 |apr|april=4
 |may=5
 |june|jun=6
 |july|jul=7
 |august|aug=8
 |september|sep|sept=9
 |october|oct=10
 |november|nov=11
 |december|dec=12
 |{{#ifexpr:August<0
  |{{#ifexpr:((August)round 0)!=(August)
   |{{#expr:12-(((0.5-(August))round 0)mod 12)}}
   |{{#expr:12-(((11.5-(August))round 0)mod 12)}}
  }}
 |{{#expr:(((10.5+August)round 0)mod 12)+1}}
 }}
}}
|Missing required parameter 1=month!

}}|1=January|2=February|3=March|4=April|5=May|6=June|7=July|8=August|9=September|10=October|11=November|12=December|Incorrect required parameter 1=month!}}|Missing required parameter 1=month!}} {{#expr:{{{3}}}}}, |{{#expr:{{{3}}}}} {{#if:August|{{#switch:{{#if:August

|{{#switch:august
 |january|jan=1
 |february|feb=2
 |march|mar=3
 |apr|april=4
 |may=5
 |june|jun=6
 |july|jul=7
 |august|aug=8
 |september|sep|sept=9
 |october|oct=10
 |november|nov=11
 |december|dec=12
 |{{#ifexpr:August<0
  |{{#ifexpr:((August)round 0)!=(August)
   |{{#expr:12-(((0.5-(August))round 0)mod 12)}}
   |{{#expr:12-(((11.5-(August))round 0)mod 12)}}
  }}
 |{{#expr:(((10.5+August)round 0)mod 12)+1}}
 }}
}}
|Missing required parameter 1=month!

}}|1=January|2=February|3=March|4=April|5=May|6=June|7=July|8=August|9=September|10=October|11=November|12=December|Incorrect required parameter 1=month!}}|Missing required parameter 1=month!}} }}2016|{{#if: August |{{#if:August|{{#switch:{{#if:August

|{{#switch:august
 |january|jan=1
 |february|feb=2
 |march|mar=3
 |apr|april=4
 |may=5
 |june|jun=6
 |july|jul=7
 |august|aug=8
 |september|sep|sept=9
 |october|oct=10
 |november|nov=11
 |december|dec=12
 |{{#ifexpr:August<0
  |{{#ifexpr:((August)round 0)!=(August)
   |{{#expr:12-(((0.5-(August))round 0)mod 12)}}
   |{{#expr:12-(((11.5-(August))round 0)mod 12)}}
  }}
 |{{#expr:(((10.5+August)round 0)mod 12)+1}}
 }}
}}
|Missing required parameter 1=month!

}}|1=January|2=February|3=March|4=April|5=May|6=June|7=July|8=August|9=September|10=October|11=November|12=December|Incorrect required parameter 1=month!}}|Missing required parameter 1=month!}} }}2016}}}}{{#if:|{{{post}}}}}{{#ifeq:{{ safesubst:#if:

 | {{ safesubst:#titleparts:{{ safesubst:#if:|{{{1}}}|模板:Expand section}}|1}}
 | {{ safesubst:#if:|{{{1}}}|模板:Expand section}}

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

|{{#if:{{#if: {{#ifexpr: 2016 = 1 }} | {{#ifexpr: {{#time:Y|2016}} > 2004 | 2016 | {{#ifexpr: {{#time:Y|2016}} > 1989 | {{#time:Y|2016}} | before 1990 }}}} | {{#ifexpr: 2016 > 2004 | {{#if:August | {{#if:August|{{#switch:{{#if:August
|{{#switch:august
 |january|jan=1
 |february|feb=2
 |march|mar=3
 |apr|april=4
 |may=5
 |june|jun=6
 |july|jul=7
 |august|aug=8
 |september|sep|sept=9
 |october|oct=10
 |november|nov=11
 |december|dec=12
 |{{#ifexpr:August<0
  |{{#ifexpr:((August)round 0)!=(August)
   |{{#expr:12-(((0.5-(August))round 0)mod 12)}}
   |{{#expr:12-(((11.5-(August))round 0)mod 12)}}
  }}
 |{{#expr:(((10.5+August)round 0)mod 12)+1}}
 }}
}}
|Missing required parameter 1=month!

}}|1=January|2=February|3=March|4=April|5=May|6=June|7=July|8=August|9=September|10=October|11=November|12=December|Incorrect required parameter 1=month!}}|Missing required parameter 1=month!}} }} 2016 | {{#ifexpr:2016 > 1989 | 2016 | before 1990 }}}}}}

 |[[Category:Articles containing potentially dated statements from {{#if: {{#ifexpr: 2016 = 1 }} | {{#ifexpr: {{#time:Y|2016}} > 2004 | 2016 | {{#ifexpr: {{#time:Y|2016}} > 1989 | {{#time:Y|2016}} | before 1990 }}}} | {{#ifexpr: 2016 > 2004 | {{#if:August | {{#if:August|{{#switch:{{#if:August
|{{#switch:august
 |january|jan=1
 |february|feb=2
 |march|mar=3
 |apr|april=4
 |may=5
 |june|jun=6
 |july|jul=7
 |august|aug=8
 |september|sep|sept=9
 |october|oct=10
 |november|nov=11
 |december|dec=12
 |{{#ifexpr:August<0
  |{{#ifexpr:((August)round 0)!=(August)
   |{{#expr:12-(((0.5-(August))round 0)mod 12)}}
   |{{#expr:12-(((11.5-(August))round 0)mod 12)}}
  }}
 |{{#expr:(((10.5+August)round 0)mod 12)+1}}
 }}
}}
|Missing required parameter 1=month!

}}|1=January|2=February|3=March|4=April|5=May|6=June|7=July|8=August|9=September|10=October|11=November|12=December|Incorrect required parameter 1=month!}}|Missing required parameter 1=month!}} }} 2016 | {{#ifexpr:2016 > 1989 | 2016 | before 1990 }}}}}}]]{{#ifexist:Category:Articles containing potentially dated statements from {{#if: {{#ifexpr: 2016 = 1 }} | {{#ifexpr: {{#time:Y|2016}} > 2004 | 2016 | {{#ifexpr: {{#time:Y|2016}} > 1989 | {{#time:Y|2016}} | before 1990 }}}} | {{#ifexpr: 2016 > 2004 | {{#if:August | {{#if:August|{{#switch:{{#if:August

|{{#switch:august
 |january|jan=1
 |february|feb=2
 |march|mar=3
 |apr|april=4
 |may=5
 |june|jun=6
 |july|jul=7
 |august|aug=8
 |september|sep|sept=9
 |october|oct=10
 |november|nov=11
 |december|dec=12
 |{{#ifexpr:August<0
  |{{#ifexpr:((August)round 0)!=(August)
   |{{#expr:12-(((0.5-(August))round 0)mod 12)}}
   |{{#expr:12-(((11.5-(August))round 0)mod 12)}}
  }}
 |{{#expr:(((10.5+August)round 0)mod 12)+1}}
 }}
}}
|Missing required parameter 1=month!

}}|1=January|2=February|3=March|4=April|5=May|6=June|7=July|8=August|9=September|10=October|11=November|12=December|Incorrect required parameter 1=month!}}|Missing required parameter 1=month!}} }} 2016 | {{#ifexpr:2016 > 1989 | 2016 | before 1990 }}}}}}

   ||}}
 |[[Category:{{#if:
              ||Articles containing potentially dated statements}}]]}}{{#if:All articles containing potentially dated statements
     |}}}}}}, this template only uses the "article message box" (Ambox) style; this will be fixed in the future.

Recommended use is with a talk page link explaining what is needed and especially any justification for your judgement.

Note: {{sect-stub}} is a shortcut used for consistency with other cleanup templates.

{{Expand section
 | 1           = (or with= or for=)
 | section     = (section number)
 | small       = no (default is "yes")
 | talksection = (link with NO brackets, "[[]]"; displays only if small=no)
 | date        = Month YYYY
 | period      = <!--no--> (included after the input for "1=" from above by default - use this only in instances where terminal punctuation should be placed before a reference)
}}

or inline short form

{{Expand section | 1 = (or with= or for=) | section = (section number) | small = no (default is "yes") | talksection= (or talk= or discuss=) | date= }}

Parameters编辑

This template may be used without parameters, and a BOT will add the date when necessary.

date=
The current month and year can be used in the |{{SAFESUBST:#if:date|date=}} parameter. This will add the page to a sub-category sorted by date used (see the Categorisation section of this page for more information:
{{Expand section|date=11月 2024}}
or
{{Expand section|{{subst:DATE}}}}
results in:
{{#ifeq:left|left|}}


section=
The |{{SAFESUBST:#if:section|section=}} parameter is used to link to the edit screen of the article's section in which this template is placed. If this template is placed in the second section after the TOC, then use |{{SAFESUBST:#if:section|section=}}2:
{{Expand section|section=2|{{subst:DATE}}}}
results in:
{{#ifeq:left|left|}}
and links to the edit screen for the second section of the page after the TOC.


1=, with=, or for=
An unnamed parameter, |{{SAFESUBST:#if:1|1=}} (or one of the named parameters, |{{SAFESUBST:#if:with|with=}} or |{{SAFESUBST:#if:for|for=}}), may be used to explain what expansion is needed in the section:
{{Expand section|1=examples and additional citations|section=1|date=11月 2024}}
results in:
{{#ifeq:left|left|}}
When multiple expansion issues need to be raised, explain them in a new section on the article's discussion page, and use the next two parameters for reader convenience.


small= and talksection=
The default for the |{{SAFESUBST:#if:small|small=}} parameter is "yes", which means that if this parameter is omitted, then the size of the tag will default to the sizes shown above. Use |{{SAFESUBST:#if:small|small=}}no to result in a larger section tag and to enable the |{{SAFESUBST:#if:talksection|talksection=}} parameter (|{{SAFESUBST:#if:talk|talk=}} or |{{SAFESUBST:#if:discuss|discuss=}} may also be used):
{{Expand section|1=examples and additional citations|section=1|date=11月 2024|small=no|talksection=Template talk:Expand section#When should this template be used?}}
results in:
{{#ifeq:no|left|}}

Categorisation编辑

When {{Expand section}} is used without a |{{SAFESUBST:#if:date|date=}} parameter in an article in the main article namespace, the article is sorted to Category:Articles to be expanded. A bot or an editor will then add the date parameter, and the article will be sorted to a category with a name that reflects the date given. For example, if the |{{SAFESUBST:#if:date|date=}}11月 2024 is used, the article will be added to Category:Articles to be expanded from 11月 2024.

No matter what parameters are used with this template, it also adds the article to Category:All articles to be expanded.

Choosing the right template编辑

For an empty section编辑

If the section is completely empty, the {{Empty section}} template should be used instead of this template.

The exception would be an empty section used for references as explained in the following subsection.

For a References or Notes section编辑

When the section that needs expansion is used to list cited sources, then either {{No footnotes}} or {{More footnotes needed}} should be used instead of {{Empty section}} or {{Expand section}}.

Note: Unlike the other templates mentioned, those "footnotes" templates should go at the beginning/TOP of the page, just under any hatnotes, rather than at the beginning of a section.

In the main article namespace, citing sources is an important part of the article, performed by using the tags, <ref></ref>, which in turn are collected and formatted into text in the section containing the {{Reflist}} template or the <references /> tag. This section (or sub-section, as might be the case if the sources are listed separately) is often titled "References", and can have other names.

If the article has a section that contains either {{Reflist}} or <references />, the section can still appear blank on the saved, rendered page if the article has no text within <ref></ref> tags. Such a section is still considered blank, even though the template or tag wikitext can be seen in Edit mode. In that case the {{No footnotes}} template should be used at the TOP of the page just beneath any hatnotes.

TemplateData编辑

{{#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:Expand 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:Expand section}}.
|#default=[2]

}}}}

TemplateData for Expand section

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

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

}} | other | #default = }} <templatedata> { "description": "Can be placed at the beginning of article sections that need expansion, after the section title.", "params": { "1": { "label": "Reason", "description": "Reason the template was added, an explanation of what expansion the section needs. A bulleted list with lines beginning '*' can be given.", "type": "content", "required": false, "aliases": [ "with", "for" ] }, "period": { "label": "Terminal punctuation", "description": "If set to 'no', this parameter omits the terminal punctuation after the input for the 'with'/'for' parameter (i.e., the reason the template was added); this is normally only used if references are included after terminal punctuation.", "type": "boolean", "required": false, "example": "no", "default": "yes", "autovalue": "", "aliases": [ "punctuation" ] }, "talksection": { "label": "Talk section", "description": "A section heading in the talk page where the issue is discussed. Note: The talksection parameter only displays if the parameter small is set to 'no'.", "type": "string", "required": false, "aliases": [ "discuss", "talk" ] }, "date": { "label": "Month and year", "description": "The month and year the template was added, e.g. 'July 2017'.", "type": "string", "required": false, "autovalue": "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}", "suggested": true }, "small": { "label": "Small", "description": "By default the template will be displayed in a small size. This can be changed by setting small to no. Not recommended in articles.", "type": "boolean", "required": false, "example": "no", "default": "yes", "autovalue": "" } }, "format": "inline" } </templatedata>

See also编辑

{{#if:{{#ifeq:Expand |sandbox|1}}{{#ifeq:Expand section|doc|1}}||

}}