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)
m (4 revisions imported)
 
(2 intermediate revisions by 2 users not shown)
Line 2: Line 2:
 
|image=Cog-scripted-svg-blue.svg
 
|image=Cog-scripted-svg-blue.svg
 
|heading = Automated portal content suggestions {{nobold|''({{Purge|purge}})''}}
 
|heading = Automated portal content suggestions {{nobold|''({{Purge|purge}})''}}
|1 = {{resize|The following suggestions have been automatically generated as content that {{em|might}} be suitable for the portal, subject to review by a human editor. Please {{darkred|{{strong|do not}}}} mindlessly copy items to the portal page without first checking that the suggestions are appropriate.}}
+
|1 = {{resize|The following suggestions have been automatically generated as content that {{em|might}} be suitable for the portal, <u>subject to review by a human editor</u>. Please {{darkred|{{strong|do not}}}} mindlessly copy items to the portal page without first checking that the suggestions are appropriate.}}
  
 
{{cot|Recent ''Did you know?'' items}}
 
{{cot|Recent ''Did you know?'' items}}
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>

Latest revision as of 16:39, 8 September 2020

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