Difference between revisions of "Template:Featured portal/doc"

From blackwiki
Jump to navigation Jump to search
imported>Nihonjoe
(rv empty star notice, has been changed back to regular featured star)
imported>Andrybak
m (+category sort key)
 
(2 intermediate revisions by 2 users not shown)
Line 4: Line 4:
 
=== Usage ===
 
=== Usage ===
  
This template places a small star ([[Image:Cscr-featured.svg|14px]]) in the top right corner of a portal to indicate that it is a [[Wikipedia:Featured portal|featured portal on Wikipedia]] before that process ceased operation in 2017.
+
This template places a small empty star ([[File:Linecons big-star.svg|14px]]) in the top right corner of a portal to indicate that it had been designed as a [[Wikipedia:Featured portal|featured portal on Wikipedia]] before that process ceased operation in 2017.
  
 
This template should be placed at the bottom of the portal.
 
This template should be placed at the bottom of the portal.
Line 14: Line 14:
 
{
 
{
 
"params": {
 
"params": {
"sortkey": {
+
"FPOCyear": {
"label": "SortKey",
+
"label": "FPOCyear",
"description": "Allows ordering the icons according to the sortkey given",
+
"description": "Year the portal was a successful featured portal candidate.",
"example": "sortkey=foo",
+
"example": "FPOCyear=2008",
"type": "string",
+
"required": true,
"default": "empty"
+
"type": "number"
},
 
"width": {
 
"label": "Width",
 
"description": "Specify a width for the image",
 
"example": "width=24",
 
"type": "number",
 
"default": "20"
 
},
 
"height": {
 
"label": "Height",
 
"description": "Specify a height for the image",
 
"example": "height=24",
 
"type": "number",
 
"default": "20"
 
 
}
 
}
 
},
 
},
Line 41: Line 27:
 
</templatedata>
 
</templatedata>
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
+
<includeonly>{{Sandbox other||
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. -->
 
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS BELOW THIS LINE, THANK YOU. -->
 
[[Category:Top icon content award templates]]
 
[[Category:Top icon content award templates]]
[[Category:Wikipedia featured content templates]]
+
[[Category:Wikipedia featured content templates|Portal]]
 
[[Category:Title templates]]
 
[[Category:Title templates]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 14:53, 18 April 2020

Usage

This template places a small empty star (Linecons big-star.svg) in the top right corner of a portal to indicate that it had been designed as a featured portal on Wikipedia before that process ceased operation in 2017.

This template should be placed at the bottom of the portal.

TemplateData

This template places a small empty star in the top right corner of a portal to indicate that it had been designed as a featured portal

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
FPOCyearFPOCyear

Year the portal was a successful featured portal candidate.

Example
FPOCyear=2008
Numberrequired