User:JL-Bot/Project content/documentation: Difference between revisions

Content deleted Content added
Content Parameters: vp got killed :(
clarify "mergeable" templates plus add support for multiple templates & categories
Line 1:
{{Documentation subpage}}__NOTOC__
This template is used to have the bot generate a listing of a Project's recognized content.

For an example, see [[Wikipedia:WikiProject Physics/Recognized content]].
 
===Usage===
Line 31 ⟶ 33:
*<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|physicsWikiProject Physics}} template so the parameter for them would be <code>|template = Physics</code>. If there are redirects to the template (ex. {{tl|WPPhysics}} to {{tl|physicsWikiProject 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 <code>category</code> 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 ([http://en.wikipedia.org/w/index.php?title=Talk%3ASamuel_Adams&action=historysubmit&diff=431218663&oldid=415712940 example]), than the <code>category</code> parameter is probably a better option as not all the project's articles will be tagged with the template.
The <code>template</code> parameter will override the <code>category</code> parameter if both are present.
 
Multiple <code>template</code> and <code>category</code> 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===
Line 65 ⟶ 69:
 
The content will be listed in the order the parameters appear in the template.
 
Multiple <code>content-a-class-articles</code> parameters can be specified and the bot will list the articles from all the specified categories.
 
===Optional Parameters===