Difference between revisions of "Template:Portal suggestions"
Jump to navigation
Jump to search
test>Evad37 (Automated portal content suggestions -- to go on a portal's talkpage) |
test>Evad37 (adjust to reduce height, adjust image search urls and add instructions) |
||
| Line 1: | Line 1: | ||
{{Notice | {{Notice | ||
|image=Cog-scripted-svg-blue.svg | |image=Cog-scripted-svg-blue.svg | ||
| − | |heading = Automated portal content suggestions | + | |heading = Automated portal content suggestions {{nobold|''({{Purge|purge}})''}} |
| − | |1 = 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, 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.}} |
| − | + | ||
| − | |||
| − | |||
{{cot|Recent ''Did you know?'' items}} | {{cot|Recent ''Did you know?'' items}} | ||
{{Transclude selected recent additions|{{{luapattern|{{PAGENAME}}}}}|latest=yes|wikitext=yes}} | {{Transclude selected recent additions|{{{luapattern|{{PAGENAME}}}}}|latest=yes|wikitext=yes}} | ||
| Line 15: | Line 13: | ||
{{cot|Featured, valued, and quality images (on Commons)}} | {{cot|Featured, valued, and quality images (on Commons)}} | ||
| − | * [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= | + | {{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=Valued%20images%0D{{urlencode:{{{commonscat|{{PAGENAME}}}}}}}&ns%5B6%5D=1&max_age=2400&search_max_results=500&interface_language=en&active_tab= | + | * [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=2&categories=Quality%20images%0D{{urlencode:{{{commonscat|{{PAGENAME}}}}}}}&ns%5B6%5D=1&max_age=2400&search_max_results=500&interface_language=en&active_tab= | + | * [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=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] | ||
{{cob}} | {{cob}} | ||
}}<noinclude> | }}<noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
</noinclude> | </noinclude> | ||
Revision as of 09:33, 9 March 2019
Contents
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}}
Automated portal content suggestions (Script error: No such module "Purge".) The following suggestions have been automatically generated as content that might be suitable for the portal, subject to review by a human editor. Please do not mindlessly copy items to the portal page without first checking that the suggestions are appropriate.
|
See Also
TemplateData
| ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Automated suggestion of content additions to a portal
| ||||||||||||||||||||
| The above documentation is transcluded from Template:Portal suggestions/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |