Template:One source/doc: Difference between revisions

Content deleted Content added
Find: Improve description.
Find parameters: Adjust indent and section hdr.
Line 40:
As with most cleanup templates, the <code>date=</code> parameter sorts the article into subcategories of [[:Category:Articles lacking sources]], allowing the oldest problems 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.
 
===Find parameters ===
 
TheThere {{para|are two 'find}} parameter' isparameters available to control the presentation and operation of the {{tl|find sources}} links optionally displayed by the template. By default, the template displays the {{tlftl|find sources}} wording with a quoted search termquery equivalent to the exact article title. Sometimes, especially if the article has a long, [[WP:NDESC|descriptive title]], or if it includes [[WP:PARENDIS|parenthetical disambiguation terms]], this may not give useful results. The find parameterparameters can then be used to addprovide the search keywords of your choice to the {{tlftl|find sources mainspace}} links. Conversely, the value "none" may be passed ({{para|find|none}}) to suppress display of ''find sources''.Use:
:* {{para|find}} to specify keywords for an exact search (double-quoted query); this corresponds to {{tl|find sources}} positional param <code>|1</code>.
 
:* {{para|find2}} to specify keywords for an unquoted search; this corresponds to {{tl|find sources}} param <code>|2</code>. The alias {{para|unquoted}} may be used instead.
'''Find parameters:'''
: There are two 'find' parameters available to control the presentation and operation of the {{tl|find sources}} links optionally displayed by the template. By default, the template displays {{tl|find sources}} with a quoted search query equivalent to the exact article title. Sometimes, especially if the article has a long, [[WP:NDESC|descriptive title]], or if it includes [[WP:PARENDIS|parenthetical disambiguation terms]], this may not give useful results. The find parameters can be used to provide the search keywords of your choice to the {{tl|find sources}} links. Use:
:* {{para|find}} to specify keywords for an exact search (double-quoted query); this corresponds to {{tl|find sources}} positional param <code>|1</code>.
:* {{para|find2}} to specify keywords for an unquoted search; this corresponds to {{tl|find sources}} param <code>|2</code>. The alias {{para|unquoted}} may be used instead.
The second param is especially useful with the 'section' version of the template. Try setting <code><nowiki>|find=</nowiki>''Article title''{{zwsp}}<nowiki>|find2=</nowiki>''Section title''<nowiki>}}</nowiki></code> for improved search results in this case.