Difference between revisions of "Template:Portal suggestions/doc"

From blackwiki
Jump to navigation Jump to search
test>Evad37
(category param)
test>AfroThundr3007730
(navbox + templatedata)
Line 19: Line 19:
 
{{Portal suggestions|luapattern=%s[Cc]ats?%s|commonscat=Felis silvestris catus|category=Cats}}
 
{{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 Wikimedai 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>

Revision as of 05:04, 10 March 2019

Usage

Place on a portal talk page for automated suggestions of possible content that, 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 meaningd.
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 Wikimedai Commons

Example
commonscat=Felis silvestris catus
Stringsuggested
Categorycategory

Related category on Wikipedia

Example
category=Cats
Stringsuggested