Difference between revisions of "Template:Portal icon demonstration/doc"

From blackwiki
Jump to navigation Jump to search
test>John of Reading
 
test>John of Reading
(Update, three images allowed)
Line 4: Line 4:
  
 
== Usage ==
 
== Usage ==
The template accepts one unnamed parameter, the name of an image. Do not include the "File:" prefix.
+
The template accepts up to three unnamed parameters, the names of images. Do not include the "File:" prefix.
  
 
==Template data==
 
==Template data==
Line 17: Line 17:
 
                         "type": "wiki-file-name",
 
                         "type": "wiki-file-name",
 
                         "required": true,
 
                         "required": true,
 +
                },
 +
                "2": {
 +
                        "label": "Image name",
 +
                        "description": "A second image.",
 +
                        "type": "wiki-file-name",
 +
                        "required": false,
 +
                },
 +
                "3": {
 +
                        "label": "Image name",
 +
                        "description": "A third image.",
 +
                        "type": "wiki-file-name",
 +
                        "required": false,
 
                 }
 
                 }
 
         }
 
         }

Revision as of 07:03, 27 November 2015

This template formats an image using the same size and styling that {{Portal}} would use, were the image to be configured as a portal icon. It is intended for use at Template talk:Portal when discussing proposed changes to the portal icon list.

Usage

The template accepts up to three unnamed parameters, the names of images. Do not include the "File:" prefix.

Template data

This is the TemplateData documentation for this template used by VisualEditor and other tools; see the monthly parameter usage report for this template.

TemplateData for Portal icon demonstration

Syntax error in JSON.