Difference between revisions of "Template:Portal suggestions"

From blackwiki
Jump to navigation Jump to search
test>Evad37
(adjust to reduce height, adjust image search urls and add instructions)
test>Evad37
(Articles: FAs promoted in current year. Changing all catscan depths to 3)
Line 14: Line 14:
 
{{cot|Featured, valued, and quality images (on Commons)}}
 
{{cot|Featured, valued, and quality images (on Commons)}}
 
{{resize|Open a link, then click the "Do it" button. If there are results, you can click the "Thumbnails" button to preview all the images.}}
 
{{resize|Open a link, then click the "Do it" button. If there are results, you can click the "Thumbnails" button to preview all the images.}}
* [https://petscan.wmflabs.org/?language=commons&project=wikimedia&depth=2&categories=Featured%20pictures%20on%20Wikimedia%20Commons%0D{{urlencode:{{{commonscat|{{PAGENAME}}}}}}}&ns%5B6%5D=1&max_age=2400&search_max_results=500&interface_language=en&active_tab=&doit= Featured pictures for ''{{{commonscat|{{PAGENAME}}}}}'' with recent edits]
+
* [https://petscan.wmflabs.org/?language=commons&project=wikimedia&depth=3&categories=Featured%20pictures%20on%20Wikimedia%20Commons%0D{{urlencode:{{{commonscat|{{PAGENAME}}}}}}}&ns%5B6%5D=1&max_age=2400&search_max_results=500&interface_language=en&active_tab=&doit= Featured pictures for ''{{{commonscat|{{PAGENAME}}}}}'' with recent edits]
* [https://petscan.wmflabs.org/?language=commons&project=wikimedia&depth=2&categories=Valued%20images%0D{{urlencode:{{{commonscat|{{PAGENAME}}}}}}}&ns%5B6%5D=1&max_age=2400&search_max_results=500&interface_language=en&active_tab=&doit= Valued images for ''{{{commonscat|{{PAGENAME}}}}}'' with recent edits]
+
* [https://petscan.wmflabs.org/?language=commons&project=wikimedia&depth=3&categories=Valued%20images%0D{{urlencode:{{{commonscat|{{PAGENAME}}}}}}}&ns%5B6%5D=1&max_age=2400&search_max_results=500&interface_language=en&active_tab=&doit= Valued images for ''{{{commonscat|{{PAGENAME}}}}}'' with recent edits]
* [https://petscan.wmflabs.org/?language=commons&project=wikimedia&depth=2&categories=Quality%20images%0D{{urlencode:{{{commonscat|{{PAGENAME}}}}}}}&ns%5B6%5D=1&max_age=2400&search_max_results=500&interface_language=en&active_tab=&doit= Quality images for ''{{{commonscat|{{PAGENAME}}}}}'' with recent edits]
+
* [https://petscan.wmflabs.org/?language=commons&project=wikimedia&depth=3&categories=Quality%20images%0D{{urlencode:{{{commonscat|{{PAGENAME}}}}}}}&ns%5B6%5D=1&max_age=2400&search_max_results=500&interface_language=en&active_tab=&doit= Quality images for ''{{{commonscat|{{PAGENAME}}}}}'' with recent edits]
 +
{{cob}}
 +
 
 +
{{cot|Articles}}
 +
* [https://petscan.wmflabs.org/?language=en&project=wikipedia&depth=3&categories={{urlencode:{{{category|{{PAGENAME}}}}}}}&ns%5B0%5D=1&outlinks_any=Wikipedia%3AFeatured%20articles%20promoted%20in%20{{CURRENTYEAR}}&search_max_results=500&interface_language=en&doit= Featured articles for ''Category:{{{category|{{PAGENAME}}}}}'' promoted in {{CURRENTYEAR}}]
 
{{cob}}
 
{{cob}}
 
}}<noinclude>
 
}}<noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 10:19, 9 March 2019

Template documentation[view] [edit] [history] [purge]

Usage

Place on a portal talk page for automated suggestions of possible content which might be suitable for the portal.

Parameters

luapattern
Search pattern for DYKs and ITNs. This is a Lua pattern (similar to a regex pattern), so certain characters have special meanings.
commonscat
Category name on Commons (without the "Category:" prefix) in which to search for images. The searches will include 3 levels of sub-categories below this category.
category
Category name on Wikipedia (without the "Category:" prefix) in which to search for articles. The searches will include 3 levels of sub-categories below this category.

Example

For suggestions for Portal:Cats:

{{Portal suggestions|luapattern=%s[Cc]ats?%s|commonscat=Felis silvestris catus|category=Cats}}

See Also

TemplateData

Automated suggestion of content additions to a portal

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Lua Patternluapattern

Search pattern for DYK and ITN sections

Example
luapattern=%s[Cc]ats?%s
Stringsuggested
Commons Categorycommonscat

Related category on Wikimedia Commons

Example
commonscat=Felis silvestris catus
Stringsuggested
Categorycategory

Related category on Wikipedia

Example
category=Cats
Stringsuggested