Modèle:Expand section/doc

De Wikisisar
Aller à : navigation, rechercher

{{#ifeq:doc |doc

    | 

{{#ifeq:show |show

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

This is the {{{{#if: |subst:}}Expand section{{#if: ||{{{2}}}}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||}}}} message box template.

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:|}} {{#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}}}|Modèle:Expand section/doc}}|1}}
 | {{ safesubst:#if:|{{{1}}}|Modèle:Expand section/doc}}

}}|Wikipedia:Template messages||{{#ifexpr:{{#if:Modèle|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" style, but 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.

{{sect-stub
 | reason = (or Arg1)
 | small  = no
 | talksection = (LINK, displays only if small is 'no')
 | date   = Month YYYY
 | 
}}
or inline short form
{{sect-stub | reason = (or Arg1) | small  = no | talksection= | date= }}

3.) {{#switch:¬

|¬=
|SUBST=

}}{{#if:

|
|[{{#if:
 | 
}}clarification needed{{#if:
 | 
}}]

}} You can use this template without any parameters: (But a BOT edit will occur if you do not add the date as hereafter, so please do so.)

{{{{#if: |subst:}}Expand section{{#if: ||{{{2}}}}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||}}}}
{{#ifeq:left|left|}

4.) {{#switch:¬

|¬=
|SUBST=

}}{{#if:

|
|[{{#if:
 | 
}}clarification needed{{#if:
 | 
}}]

}} You can also use the current month and year as a parameter, which adds the page to a template-related category's sub-category sorted by time:

{{{{#if: |subst:}}Expand section{{#if:date=mai 2024 ||date=mai 2024 }}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||}}}}

or

{{{{#if: |subst:}}Expand section{{#if:{{subst:DATE}} ||{{subst:DATE}}}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||}}}}
{{#ifeq:left|left|}

See the section Categorisation for more information.

There are bots that edit the pages and add the date= parameter if you forget to do it.

You can add a |{{#if:1|1=}} (a.k.a. {{#switch:¬

|¬=
|SUBST=

}}{{#if:

|
|[{{#if:
 | 
}}clarification needed{{#if:
 | 
}}]

}} |{{#if:with|with=}} or |{{#if:for|for=}}) parameter with an explanation of what expansion the section needs, and you can of course use the date parameter at the same time:

{{{{#if: |subst:}}Expand section{{#if:1=examples and additional citations ||1=examples and additional citations}}{{#if:date=mai 2024 ||date=mai 2024}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||}}}}
{{#ifeq:left|left|}

When you need to raise multiple yet simply explainable expansion issues, you can make a bullet list within the template:

{{{{#if: |subst:}}Expand section{{#if:1=<nowiki />
* Career from 1952 to 1960
* Final days after 1972 retirement
 ||1=<nowiki />
* Career from 1952 to 1960
* Final days after 1972 retirement

}}{{#if:{{subst:DATE}} ||{{subst:DATE}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||}}}}

{{#ifeq:left|left|}

(The <nowiki /> is required or the first item may not display correctly.)

However, if you want to raise more than a few simple points, your issues would better be raised in a new section of the talk page.

Categorisation

When {{{{#if: |subst:}}Expand section{{#if: ||{{{2}}}}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||}}}} is used without a date= parameter in an article in the Main/Article namespace, the article is placed in Category:Articles to be expanded. Once a bot or an editor adds the parameter, the article is placed in a category whose name reflects the date given. For example, if you use the parameter, date=mai 2024, the article will be added to Category:Articles to be expanded from mai 2024.

No matter what parameters you use 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, you should use {{{{#if: |subst:}}Empty section{{#if: ||{{{2}}}}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||}}}} instead.

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

=== For a section for references (aka footnotes {{#switch:¬

|¬=
|SUBST=

}}{{#if:

|
|[{{#if:
 | 
}}clarification needed{{#if:
 | 
}}]

}}) and sources ===

When the section you think needs expansion is a section for citing sources, use either {{{{#if: |subst:}}No footnotes{{#if: ||{{{2}}}}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||}}}} or {{{{#if: |subst:}}More footnotes{{#if: ||{{{2}}}}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||}}}} instead of {{{{#if: |subst:}}Empty section{{#if: ||{{{2}}}}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||}}}} or {{{{#if: |subst:}}Expand section{{#if: ||{{{2}}}}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||}}}}.

Note: Unlike the other templates mentioned, these footnote/reference templates should go at the beginning of the page, rather than the beginning of the section.

In the Main/Article namespace, citing sources is an important part of the article, done using the tags, <ref></ref>, which in turn are collected and formatted into text in the section containing {{{{#if: |subst:}}Reflist{{#if: ||{{{2}}}}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||}}}} or <references />. This section (or sub-section, as might be done if the sources are listed separately) is most often named References, but can have other names.

If the article has a section that contains either {{{{#if: |subst:}}Reflist{{#if: ||{{{2}}}}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||}}}} 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, so use {{{{#if: |subst:}}No footnotes{{#if: ||{{{2}}}}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||}}}}.

TemplateData

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

See the monthly error report for this template.

TemplateData for Expand section

{{#ifeq:doc|sandbox||

}} <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" ] }, "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: |subst:}}Clarify{{#if: ||{{{2}}}}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||}}}} and {{{{#if: |subst:}}Elucidate{{#if: ||{{{2}}}}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||}}}} (both inline)
  • {{{{#if: |subst:}}Expand list{{#if: ||{{{2}}}}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||}}}}
  • {{{{#if: |subst:}}Empty section{{#if: ||{{{2}}}}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||}}}}
  • {{{{#if: |subst:}}Incomplete{{#if: ||{{{2}}}}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||}}}}
  • {{{{#if: |subst:}}Missing information{{#if: ||{{{2}}}}}{{#if: ||{{{3}}}}}{{#if: ||{{{4}}}}}{{#if: ||{{{5}}}}}{{#if: ||{{{6}}}}}{{#if: ||{{{7}}}}}{{#if: ||{{{8}}}}}{{#if: ||{{{9}}}}}{{#if: ||{{{10}}}}}{{#if: ||{{{11}}}}}{{#if: ||}}}}