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

From blackwiki
Jump to navigation Jump to search
test>Evad37
(start doc)
 
test>Evad37
(category param)
Line 8: Line 8:
 
: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 meaningd.
 
;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}}
  
  

Revision as of 10:21, 9 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}}