Difference between revisions of "Template:Portal suggestions/doc"
Jump to navigation
Jump to search
test>Evad37 (start doc) |
m (6 revisions imported) |
||
| (5 intermediate revisions by 4 users not shown) | |||
| Line 2: | Line 2: | ||
<!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> | ||
== Usage == | == Usage == | ||
| − | Place on a portal talk page for automated suggestions of possible content | + | Place on a portal talk page for automated suggestions of possible content which {{em|might}} be suitable for the portal. |
== Parameters == | == Parameters == | ||
;luapattern | ;luapattern | ||
| − | :Search pattern for DYKs and ITNs. This is a [[mw:LUAREF#Patterns|Lua pattern]] (similar to a [[regex]] pattern), so certain characters have special | + | :Search pattern for DYKs and ITNs. This is a [[mw:LUAREF#Patterns|Lua pattern]] (similar to a [[regex]] pattern), so certain characters have special meanings. |
;commonscat | ;commonscat | ||
| − | :Category name on Commons (without the "Category:" prefix) in which to search for images. The searches will include | + | :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 == | == Example == | ||
For suggestions for [[Portal:Cats]]: | For suggestions for [[Portal:Cats]]: | ||
<pre> | <pre> | ||
| − | {{Portal suggestions|luapattern=%s[Cc]ats?%s|commonscat=Felis silvestris catus}} | + | {{Portal suggestions|luapattern=%s[Cc]ats?%s|commonscat=Felis silvestris catus|category=Cats}} |
</pre> | </pre> | ||
| − | {{Portal suggestions|luapattern=%s[Cc]ats?%s|commonscat=Felis silvestris catus}} | + | {{Portal suggestions|luapattern=%s[Cc]ats?%s|commonscat=Felis silvestris catus|category=Cats}} |
| − | |||
| + | == See Also == | ||
| + | {{Portal templates navbox}} | ||
| + | {{collapse|2=TemplateData|1= | ||
| + | <templatedata> | ||
| + | { | ||
| + | "params": { | ||
| + | "luapattern": { | ||
| + | "label": "Lua Pattern", | ||
| + | "description": "Search pattern for DYK and ITN sections", | ||
| + | "type": "string", | ||
| + | "suggested": true, | ||
| + | "example": "luapattern=%s[Cc]ats?%s" | ||
| + | }, | ||
| + | "commonscat": { | ||
| + | "label": "Commons Category", | ||
| + | "description": "Related category on Wikimedia Commons", | ||
| + | "type": "string", | ||
| + | "suggested": true, | ||
| + | "example": "commonscat=Felis silvestris catus" | ||
| + | }, | ||
| + | "category": { | ||
| + | "label": "Category", | ||
| + | "description": "Related category on Wikipedia", | ||
| + | "type": "string", | ||
| + | "suggested": true, | ||
| + | "example": "category=Cats" | ||
| + | } | ||
| + | }, | ||
| + | "description": "Automated suggestion of content additions to a portal", | ||
| + | "format": "inline" | ||
| + | }</templatedata> | ||
| + | }} | ||
<includeonly>{{sandbox other|| | <includeonly>{{sandbox other|| | ||
<!-- Categories below this line, please; interwikis at Wikidata --> | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
}}</includeonly> | }}</includeonly> | ||
Latest revision as of 16:39, 8 September 2020
| This is a documentation subpage for Template:Portal suggestions. It contains usage information, categories and other content that is not part of the original template page. |
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}}
See Also
TemplateData
| ||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Automated suggestion of content additions to a portal
| ||||||||||||||||||||