Template:Expand section/doc: Difference between revisions

No edit summary
m Text replacement - "[[WP:" to "[[wikipedia:WP:"
 
Line 52: Line 52:
;date
;date


The {{para|date}} 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 [[WP:Bots|bot]] will add it later automatically.
The {{para|date}} 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 [[wikipedia:WP:Bots|bot]] will add it later automatically.


;find parameters
;find parameters
Line 59: Line 59:
* {{para|find}} to specify keywords for an exact search (double-quoted query); this corresponds to {{tl|find sources}} positional param one.
* {{para|find}} to specify keywords for an exact search (double-quoted query); this corresponds to {{tl|find sources}} positional param one.
* {{para|find2}} to specify keywords for an unquoted search; this corresponds to {{tl|find sources}} param two.
* {{para|find2}} to specify keywords for an unquoted search; this corresponds to {{tl|find sources}} param two.
If you want to display {{tl|find sources}} links in the box, but are not sure of what search keywords to use, try setting {{para|find|''Article title''}} and {{para|find2|''Section title''}}. If the article title is a long, [[WP:NDESC|descriptive title]] unlikely to generate good results as a long, double-quoted search query, try swapping the values of the two params.
If you want to display {{tl|find sources}} links in the box, but are not sure of what search keywords to use, try setting {{para|find|''Article title''}} and {{para|find2|''Section title''}}. If the article title is a long, [[wikipedia:WP:NDESC|descriptive title]] unlikely to generate good results as a long, double-quoted search query, try swapping the values of the two params.


==Examples==
==Examples==
Line 102: Line 102:
{{Expand section|1=examples and additional citations|section=1|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}|talksection=Template talk:Expand section#When should this template be used? }}
{{Expand section|1=examples and additional citations|section=1|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}|talksection=Template talk:Expand section#When should this template be used? }}


:When multiple expansion issues need to be raised, explain them in a new section on the article's [[WP:Talk page|discussion page]], and use the next two parameters for reader convenience.
:When multiple expansion issues need to be raised, explain them in a new section on the article's [[wikipedia:WP:Talk page|discussion page]], and use the next two parameters for reader convenience.




Line 121: Line 121:
== Categorisation ==
== Categorisation ==


When {{Tlx|Expand section}} is used without a {{para|date}} parameter in an article in the [[WP:Mainspace|main article]] [[WP:Namespace|namespace]], the article is sorted to {{Cat|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 {{para|date|{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}} is used, the article will be added to {{Cat|Articles to be expanded from {{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}.   
When {{Tlx|Expand section}} is used without a {{para|date}} parameter in an article in the [[wikipedia:WP:Mainspace|main article]] [[wikipedia:WP:Namespace|namespace]], the article is sorted to {{Cat|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 {{para|date|{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}} is used, the article will be added to {{Cat|Articles to be expanded from {{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}.   


No matter what parameters are used with this template, it also adds the article to {{Cat|All articles to be expanded}}.
No matter what parameters are used with this template, it also adds the article to {{Cat|All articles to be expanded}}.
Line 139: Line 139:
'''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.  
'''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, [[WP:Citing sources|citing sources]] is an important part of the article, performed by using the tags, <code><nowiki><ref></ref></nowiki></code>, which in turn are collected and formatted into text in the section containing the {{Tlx|Reflist}} template or the <code><nowiki><references /></nowiki></code> 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.
In the main article namespace, [[wikipedia:WP:Citing sources|citing sources]] is an important part of the article, performed by using the tags, <code><nowiki><ref></ref></nowiki></code>, which in turn are collected and formatted into text in the section containing the {{Tlx|Reflist}} template or the <code><nowiki><references /></nowiki></code> 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 {{Tlx|Reflist}} or <code><nowiki><references /></nowiki></code>, ''the section can still appear blank'' on the saved, rendered page if the article has no text within <code><nowiki><ref></ref></nowiki></code> 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 {{Tlx|No footnotes}} template should be used at the TOP of the page just beneath any hatnotes.
If the article has a section that contains either {{Tlx|Reflist}} or <code><nowiki><references /></nowiki></code>, ''the section can still appear blank'' on the saved, rendered page if the article has no text within <code><nowiki><ref></ref></nowiki></code> 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 {{Tlx|No footnotes}} template should be used at the TOP of the page just beneath any hatnotes.