Template:Primary sources section/doc

From Pantonian Republic Wiki
Jump to navigation Jump to search

Usage

{{Primary sources section|date=November 2024}}

Parameters

There are four parameters, all optional:

  • |date= : month and year the section was last checked for references; e.g., |date=November 2024
  • |talk= : discussion section on the talk page.
  • |find= : search keywords for {{find sources}} param 1 (double-quoted search). This optional parameter adds a set of links produced by the {{find sources}} template to the output. If omitted, no "find sources" links are displayed.
  • |find2= : search keywords for {{find sources}} param 2 (unquoted search). Alias: unquoted.

Details

Date
As with most cleanup templates, the |date= parameter sorts the article into subcategories of Category:Articles lacking reliable references, allowing the oldest problems to be identified and dealt with first. You do not need to specify the date manually; a bot will add it later automatically.
Find and find2
  • Generally follows the usage and values as described at Template:Primary sources#Parameters.
  • Suggested usage: |find=Article title and |find2=Section header. This will often yield the best results if the article title is limited to one or two words (e.g., "French Revolution"), or if longer than two words, if it is a set expression unlikely to vary (e.g., "Frankie Goes to Hollywood"). For descriptive titles that are longer than two words, it is often better to limit param |find= to just one or two words, and use the remaining keywords as part of unquoted search in |find2=.
  • There is one main difference in usage between this template and {{Primary sources}}: in this template, the default if no parameters are given is |find=none; this is because the normal default at article level is the article title, but that wouldn't yield good results for find sources links in individual sections; the most important words of the section header should be included in the "find" search keywords.
  • The combination of |find=none and |find2=any value is invalid.

See also

Template data

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template in articles based on this TemplateData.

TemplateData for Primary sources section

<templatedata> { "params": { "date": { "label": "Month and year", "description": "As with most cleanup templates, the date= parameter sorts the article into subcategories of Category:Articles lacking reliable references, allowing the oldest problems to be identified and dealt with first. You do not need to specify the date manually; a bot will add it later automatically.", "type": "string", "autovalue": "{{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}", "suggested": true }, "talk": { "label": "Talk", "description": "Name of talk page section", "type": "string" }, "find": { "label": "Find", "description": "Search keywords for 'find sources' double-quoted (exact) search. May be one or more words. Leave empty to suppress 'find sources' output.", "type": "string", "required": false, "example": "Jane Austen" }, "find2": { "label": "Find2", "description": "Search keywords for 'find sources' unquoted search.", "type": "string", "required": false, "example": "early life", "aliases": ["unquoted"] } }, "paramOrder": [ "date", "talk", "find", "find2" ], "description": "This template alerts people to an article section containing encyclopedic content which appears to rely too much on primary sources.", "format": "block" } </templatedata>