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

From blackwiki
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 that, which {{em|might}} be suitable for the portal.
+
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 meaningd.
+
: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 2 levels of sub-categories below this category.
+
: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

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