Content deleted Content added
→Usage: ce |
Wikipedia:Featured sounds decomissioned |
||
(41 intermediate revisions by 12 users not shown) | |||
Line 1:
{{Documentation subpage}}
{{Shortcut|WP:RECOG}}
[[Apple Inc.|This]] template is used to have {{U|JL-Bot}} generate a listing of ''Recognized Content'', like [[WP:FA|featured articles]], [[WP:GA|good articles]], articles featured in the [[WP:DYK|''Did you know?'']] or [[WP:ITN|''In the News'']] section of the main page, and so on. For some examples, see [[Wikipedia:WikiProject Physics/Recognized content]] or [[Wikipedia:WikiProject Women in Red/Recognized content]].
You can also use it to generate lists of [[WP:DYK|''Did You Know?'']] blurbs (e.g. [[Wikipedia:WikiProject Physics/Did you know]] or [[Wikipedia:WikiProject Women in Red/DYK]]).
For details on what ''Recognized Content'' is exactly and how to make the most out of it, see [[Wikipedia:Wikipedia Signpost/2023-07-17/Tips and tricks|this ''Signpost'' article]].
==Usage==
Place the template where you want the content displayed:
Line 20 ⟶ 24:
The template contains no content so it does not impact the visual appearance of the page which transcludes it.
* <code>Wikipedia:</code>
* <code>Portal:</code>
* <code>User:</code>
* <code>User talk:</code>
While it will technically work in the following namespaces
* <code>Portal talk:</code>
* <code>Wikipedia talk:</code>
it should normally not be used there (at least on the root of talk pages of Portals and WikiProject).
===Project parameter===
Line 36 ⟶ 41:
*<code>|category = Name of project category</code>
The <code>template</code> 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, [[Wikipedia:WikiProject Physics|WikiProject Physics]] uses the {{tl|WikiProject Physics}} template so the parameter for them would be <code>|template = WikiProject Physics</code>. If there are redirects to the template (ex. {{tl|
The <code>category</code> parameter needs to have the name of the category that is used by the project to identify articles within its scope.
Line 72 ⟶ 77:
*<code>|content-mainpage-lists</code> -- lists [[:Category:Featured lists that have appeared on the main page]] content
*<code>|content-picture-of-the-day</code> -- lists [[:Template:Picture of the day]] content
*<code>|content-featured-topics</code> -- lists [[:Category:
*<code>|content-former-featured-topics</code> -- lists [[:Category:Wikipedia former featured topics]] content
*<code>|content-good-topics</code> -- lists [[:Category:Wikipedia Good topics]] content
*<code>|content-
*<code>|content-vital-articles-level-
*<code>|content-vital-articles-level-
*<code>|content-vital-articles-level-
*<code>|content-vital-articles-level-
The content will be listed in the order the parameters appear in the template.
Line 93 ⟶ 97:
The following optional parameters are supported:
; {{para|gallery-heights|<var>number</var>}} : specifies the minimum height (in px) to be used for a picture gallery (see <code>heights=</code> option at [[Help:Gallery tag]])
; {{para|sorting|<var>value</var>}} : specifies the sorting to use. The <code>sorting</code> option may be set to <code>default</code> (sort by DEFAULTSORT key), <code>alpha</code> (sort alphabetically), <code>date-default</code> (sort Main Page content by date, remainder by DEFAULTSORT key), and <code>date-alpha</code> (sort Main Page content by date, remainder alphabetically). The default is <code>default</code> if not specified.
; {{para|date-order|<var>value</var>}} : specifies the sorting order for dates. The <code>date-order</code> option may be set to <code>increasing</code> or <code>decreasing</code>. This option only applies when the <code>sorting</code> option is set to <code>date-default</code> or <code>date-alpha</code>. The default is <code>increasing</code> if not specified.
; {{para|overflow-FA|<var>page name</var>}}
; {{para|overflow-GA|<var>page name</var>}}
; {{para|overflow-DYK|<var>page name</var>}}
; {{para|overflow-a-class|<var>page name</var>}}
; {{para|overflow-b-class|<var>page name</var>}}
; {{para|overflow-c-class|<var>page name</var>}}
; {{para|overflow-vital-1|<var>page name</var>}}
; {{para|overflow-vital-2|<var>page name</var>}}
; {{para|overflow-vital-3|<var>page name</var>}}
; {{para|overflow-vital-4|<var>page name</var>}}
; {{para|overflow-vital-5|<var>page name</var>}}
: specifies an overflow page for corresponding kind of article when using <code>maximum</code>. These options only apply when the <code>maximum</code> 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 [[Wikipedia:WikiProject National Register of Historic Places/Recognized content|this page]] for an usage example.
; <code>|dyk-blurb</code> or {{para|dyk-blurb|<var>N</var>}} : specifies displaying DYK blurbs instead of page names. The <code>dyk-blurb</code> option displays the DYK blurb (if available) instead of the page name. If a number is specified, then the first <code><var>N</var></code> blurbs will be displayed normally and the remaining blurbs will be wrapped in <code><nowiki><include></noinclude></nowiki></code>. This can be used to limit the number of blurbs that are transcluded onto another page.
; <code>|dyk-blurb-paged</code> : specifies displaying DYK blurbs on subpages by year. This can be useful if the content would otherwise exceed the Wikipedia's maximum page size. The DYK blurbs will be saved to subpages organized by year. The subpages will be transcluded to the project content page with 10 blurbs per subpage. The subpages will follow the blurb formatting and sorting order specified for the main page.
::Note: These subpages are only for the bot's content. The subpages' content will be completely replaced when the project content is updated by the bot.
; <code>|italics</code>: specifies displaying {{tl|italic title}} in italics. The <code>italics</code> option will display pages marked as {{tl|italic title}}s in italics. If the page title ends in a parenthesized text, only the part before the parenthesizes will be italicized. However, it does not support the <code>|string</code> parameter (allowing a subset of the title to be in italics) or other italic templates that require parsing the page content to determine what portion of the title is to be italicized. This option should only be utilized if those limitations are suitable for the recognized content being displayed.
; {{para|type|<var>text</var>}} : replace text "recognized content" with <code><var>text</var></code> in the wikitext output.
==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.
Line 146 ⟶ 137:
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.
==Example==
<pre><nowiki>
{{User:JL-Bot/Project content
|template = <!-- name of WikiProject template without the prefix "Template:" -->
|content-featured-articles
|content-former-featured-articles
|content-featured-lists
|content-former-featured-lists
|content-good-articles
|content-former-good-articles
|content-did-you-know-articles
|content-featured-pictures
|content-former-featured-pictures
|content-featured-portals
|content-former-featured-portals
|content-featured-article-candidates
|content-featured-list-candidates
|content-good-article-nominees
|content-a-class-articles =
|content-b-class-articles =
|content-c-class-articles =
|content-mainpage-in-the-news
|content-mainpage-featured
|content-mainpage-lists
|content-picture-of-the-day
|content-featured-topics
|content-former-featured-topics
|content-good-topics
|content-vital-articles-level-1
|content-vital-articles-level-2
|content-vital-articles-level-3
|content-vital-articles-level-4
|content-vital-articles-level-5
|columns = 2
|heading = 3
|icons
}}
<!-- Start of content generated by JL-Bot -->
<!-- End of content generated by JL-Bot -->
</nowiki></pre>
==Tracking category==
* {{clc|Category:Wikipedia lists of recognized content}} – For standalone/Near-standalone list pages. It will not list [[Wikipedia:WikiProject Physics]] if <code><nowiki>{{</nowiki>User:JL-Bot/Project content<nowiki>}}</nowiki></code> is directly embedded, but will list the standalone [[Wikipedia:WikiProject Physics/Recognized content]] (and similar lists).
<includeonly>
[[Category:Wikipedia lists of recognized content|*]]
</includeonly>
|