This template is used to have the bot generate a listing of recognized content.
For an example, see Wikipedia:WikiProject Physics/Recognized content.
Usage
Place the template where you want the content displayed:
{{User:JL-Bot/Project content |project parameter (see below) |content parameters (see below) |optional parameters (see below) }}
The bot expects to see a single parameter per line with the closing }}
on its own line. Failure to follow that will cause the bot to ignore parameters.
The template contains no content so it does not impact the visual appearance of the page which transcludes it.
It will only work in the following namespaces:
User:
User talk:
Project:
Project talk:
Portal:
Portal talk:
Project Parameter
The project parameter defines how the bot is to identify project content. One of the two following parameters needs to be provided:
|template = Name of project template
|category = Name of project category
The template
parameter needs to have the name of the talk page template that is used by the project to identify articles within its scope. For example, WikiProject Physics uses the {{WikiProject Physics}} template so the parameter for them would be |template = Physics
. If there are redirects to the template (ex. {{WPPhysics}} to {{WikiProject Physics}}), pages tagged with the redirect will still be picked up as they show up in the target's transclusions. However, do not use a redirect as the template name as only pages tagged with the redirect will be picked up.
The category
parameter needs to have the name of the category that is used by the project to identify articles within its scope.
If the project's template can be "merged" into another project's template (example), than the category
parameter is probably a better option as not all the project's articles will be tagged with the template.
Multiple template
and category
parameters can be specified and the bot will pick up articles in all the templates and categories specified. This can be useful in cases such as portals with multiple applicable projects.
Content Parameters
The content parameters define the content types to be listed. The following types are supported:
|content-featured-articles
-- lists Category:Wikipedia featured articles content|content-former-featured-articles
-- lists Category:Wikipedia former featured articles content|content-featured-lists
-- lists Category:Wikipedia featured lists content|content-former-featured-lists
-- lists Category:Wikipedia former featured lists content|content-good-articles
-- lists Category:Wikipedia good articles content|content-former-good-articles
-- lists Category:Delisted good articles content|content-did-you-know-articles
-- lists Category:Wikipedia Did you know articles content|content-featured-pictures
-- lists Category:Featured pictures content|content-former-featured-pictures
-- lists Category:Wikipedia former featured pictures content|content-featured-portals
-- lists Category:Wikipedia featured portals content|content-former-featured-portals
-- lists Category:Wikipedia former featured portals content|content-featured-article-candidates
-- lists Category:Wikipedia featured article candidates content|content-featured-list-candidates
-- lists Category:Wikipedia featured list candidates content|content-good-article-nominees
-- lists Category:Good article nominees content|content-a-class-articles = Name of project A-Class category
-- lists specified category's content|content-mainpage-in-the-news
-- lists Category:Wikipedia In the news articles content|content-mainpage-featured
-- lists Category:Featured articles that have appeared on the main page content|content-picture-of-the-day
-- lists Template:Picture of the day content|content-featured-topics
-- lists Category:Wikipedia featured topics & Category:Wikipedia fully featured topics content|content-former-featured-topics
-- lists Category:Wikipedia former featured topics content|content-good-topics
-- lists Category:Wikipedia Good topics content|content-featured-sounds
-- lists Category:Featured sounds content|content-featured-sound-candidates
-- lists Category:Wikipedia featured sound candidates content
The content will be listed in the order the parameters appear in the template.
Multiple content-a-class-articles
parameters can be specified and the bot will list the articles from all the specified categories.
Optional Parameters
The following optional parameters are supported:
|compact
-- specifies compact layout instead of column layout (ex: article1 · article2)|maximum = #
-- specifies the maximum articles to list incompact
mode|columns = #
-- defines the # of columns to be displayed in default column layout|icons
-- specifies the use of content type icons before page names|icons-heading
-- specifies the use of content type icons before the headings|heading = #
-- defines the heading level (number of "="s) to use; the default is level 2|pictures-list
-- specifies pictures should be listed (obeying the columns, icons, and compact options)|dates
-- specifies including in the output the date the content was on the Main Page (where applicable)|sorting = <value>
-- specifies the sorting to use (see below)|date-order = <value>
-- specifies the sorting order for dates (see below)|display-total
-- specifies that a count of the number of pages in the content type is displayed|overflow-FA = Name of overflow page
-- specifies an overflow page forcontent-featured-articles
when usingmaximum
|overflow-GA = Name of overflow page
-- specifies an overflow page forcontent-good-articles
when usingmaximum
|overflow-DYK = Name of overflow page
-- specifies an overflow page forcontent-did-you-know-articles
when usingmaximum
The compact
option overrides the columns
and icons
options.
The maximum
option only applies when the compact
option is set.
The heading
option allows for 0 and 2-6. A value of 2-6 defines the heading level (i.e. the number of "="s to use). A value of 0 means to not use a formal heading level, but instead use the ";Title" syntax.
Pictures will use the <gallery></gallery>
syntax if the pictures-list
option is not set.
The sorting
option may be set to default
(sort by DEFAULTSORT key), alpha
(sort alphabetically), date-default
(sort Main Page content by date, remainder by DEFAULTSORT key), and date-alpha
(sort Main Page content by date, remainder alphabetically). The default is default
if not specified.
The date-order
option may be set to increasing
or decreasing
. This option only applies when the sorting
option is set to date-default
or date-alpha
. The default is increasing
if not specified.
The overflow-FA
, overflow-GA
, and overflow-DYK
options only apply when the maximum
option is set. They allow a page name to be specified that will be added as a link after the maximum number of articles are outputted. This is designed to allow linking to a page that contains a full listing of the content type. See this page for an usage example.
Output
The results will be written to same page as the template. They will be prefaced by a comment header and followed by a comment footer. This header and footer are not visible on the displayed page, but are needed to allow the bot to identify prior results.
- header =
<!-- Start of content generated by JL-Bot -->
- footer =
<!-- End of content generated by JL-Bot -->
If the bot doesn't find a valid header and footer (ex. first run), it will place the results immediately below the template. If it does find a valid header and footer (updates), it will replace the content between the header and footer with the new results.