Template:Expand section/doc
| File:Edit-copy green.svg | This is a documentation subpage for Template:Expand section. It may contain usage information, categories and other content that is not part of the original template page. |
| Warning | This template is used on approximately 38,000 pages and changes may be widely noticed. Test changes in the template's /sandbox or /testcases subpages, or in your own user subpage. Consider discussing changes on the talk page before implementing them. |
This template may be used at the beginning of article sections that need expansion.
Usage[edit source]
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.
Long form:
<syntaxhighlight lang="wikitext"> Template:Expand section </syntaxhighlight>
Parameters[edit source]
Overview[edit source]
This template may be used without parameters, and a BOT will add the date when necessary.
- Template:ParaTemplate:Snd (or with= or for=) add a few words about what needs expansion and why
- Template:Para Template:Snd (default when omitted: a small message box flush left)[lower-alpha 1]
- Template:Para Template:Snd (link with NO brackets, "[[]]"; displays only if small=no)
- Template:Para
- Template:Para Template:Snd search terms for Template:Tl param 1 (double-quoted search). This optional parameter adds a set of links produced by the Template:Tl template to the output. If omitted, no "find sources" links are displayed. Details below.
- Template:Para Template:Snd search keywords for Template:Tl param 2 (unquoted search).
- Template:Para Template:Snd (section number)
- Template:Para Template:Snd <!--no--> (included after the input for "1=" from above by default - use this
Details[edit source]
- small
When the Template:Para parameter is omitted, a small, left-justified message box is displayed. This can be overridden: use Template:Para with any value (such as no) to result in a wider message box.[lower-alpha 1]
Use of the wider box with Template:Para also enables display of the Template:Para parameter. (Template:Para or Template:Para may also be used). In most cases, display of "find sources" results will be easier to read in a wide box, but are permitted in the default, smaller box.
- date
The Template:Para parameter sorts the article into subcategories of Category:Articles to be expanded, allowing the oldest ones to be identified and dealt with first. You do not need to specify the date manually; a bot will add it later automatically.
- find parameters
There are two 'find' parameters available to control the presentation and operation of the Template:Tl links optionally displayed by the template. The find parameters can be used to provide the search keywords of your choice to the Template:Tl links. Use:
- Template:Para to specify keywords for an exact search (double-quoted query); this corresponds to Template:Tl positional param one.
- Template:Para to specify keywords for an unquoted search; this corresponds to Template:Tl param two.
If you want to display Template:Tl links in the box, but are not sure of what search keywords to use, try setting Template:Para and Template:Para. If the article title is a long, descriptive title unlikely to generate good results as a long, double-quoted search query, try swapping the values of the two params.
Examples[edit source]
or inline short form
- date=
- The current month and year can be used in the Template:Para parameter. This will add the page to a sub-category sorted by date used (see the Categorisation section of this page for more information:
- or
- results in:
- section=
- The Template:Para 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 Template:Para:
- results in:
- and links to the edit screen for the second section of the page after the TOC.
- 1=, with=, or for=
- An unnamed parameter, Template:Para (or one of the named parameters, Template:Para or Template:Para), may be used to explain what expansion is needed in the section:
- results in:
- 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=
Specify Template:Para to generate a wide box, and enable param Template:Para.
- talksection=
Prerequisite: requires Template:Para, otherwise presence and values of Template:Para are ignored.
- results in:
Categorisation[edit source]
When Template:Tlx is used without a Template:Para parameter in an article in the main article namespace, the article is sorted to
- REDIRECT Template:Category link
This page is a redirect. The following categories are used to track and monitor this redirect:
Template:R from template shortcut When appropriate, protection levels are automatically sensed, described and categorized. |
. 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 Template:Para is used, the article will be added to
- REDIRECT Template:Category link
This page is a redirect. The following categories are used to track and monitor this redirect:
Template:R from template shortcut When appropriate, protection levels are automatically sensed, described and categorized. |
.
No matter what parameters are used with this template, it also adds the article to
- REDIRECT Template:Category link
This page is a redirect. The following categories are used to track and monitor this redirect:
Template:R from template shortcut When appropriate, protection levels are automatically sensed, described and categorized. |
.
Choosing the right template[edit source]
For an empty section[edit source]
If the section is completely empty, the Template:Tlx 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[edit source]
When the section that needs expansion is used to list cited sources, then either Template:Tlx or Template:Tlx should be used instead of Template:Tlx or Template:Tlx.
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 Template:Tlx 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 Template:Tlx 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 Template:Tlx template should be used at the TOP of the page just beneath any hatnotes.
TemplateData[edit source]
Template:TemplateData header <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": "line", "suggestedvalues": [ "yes", "no" ], "required": false, "example": "no", "default": "yes", "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": "line", "required": false, "aliases": [ "discuss", "talk" ] }, "date": { "label": "Month and year", "description": "The month and year the template was added.", "type": "line", "required": false, "autovalue": "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}", "suggested": true, "example": "July 2017" }, "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": "line", "required": false, "suggestedvalues": [ "no" ] }, "find": { "label": "Find", "description": "Search keywords for double-quoted search to pass to 'find sources'.", "required": false, "example": "Article title", "type": "line" }, "find2": { "label": "Find2", "description": "Search keywords for unquoted search to pass to 'find sources'.", "required": false, "example": "Section title", "type": "line" }, "section": { "description": "Section number of the section with the template", "type": "number" } }, "format": "inline" } </templatedata>
See also[edit source]
- Template:Tlx and Template:Tlx (both inline)
- Template:Tlx
- Template:Tlx
- Template:Tlx
Notes[edit source]
Cite error: <ref> tags exist for a group named "lower-alpha", but no corresponding <references group="lower-alpha"/> tag was found