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

From blackwiki
Jump to navigation Jump to search
test>John of Reading
(Update, three images allowed)
m (8 revisions imported)
 
(6 intermediate revisions by 4 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
  
This template formats an image using the same size and styling that {{tl|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.
+
{{Template shortcuts|PID|Portal demo|Portal icon demo}}
 +
 
 +
This template displays the format of an image using the same size and styling that the {{tlx|Portal}} template 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 found '''[[Module:Portal/images|here]]'''.
  
 
== Usage ==
 
== Usage ==
The template accepts up to three unnamed parameters, the names of images. Do not include the "File:" prefix.
+
 
 +
The template accepts up to five unnamed parameters: the names of up to five images. Note: Do not include the "File:" prefix.
 +
 
 +
== Example ==
 +
 
 +
{{tlx|Portal icon demonstration|School.svg|Campfire3.png|Communications icon.png}} renders as: {{Portal icon demonstration|School.svg|Campfire3.png|Communications icon.png}}
 +
{{clear}}
  
 
==Template data==
 
==Template data==
 +
 
{{TemplateDataHeader}}
 
{{TemplateDataHeader}}
 
<templatedata>
 
<templatedata>
Line 16: Line 25:
 
                         "description": "The name of a image. Do not include the File: prefix.",
 
                         "description": "The name of a image. Do not include the File: prefix.",
 
                         "type": "wiki-file-name",
 
                         "type": "wiki-file-name",
                         "required": true,
+
                         "required": true
 
                 },
 
                 },
 
                 "2": {
 
                 "2": {
Line 22: Line 31:
 
                         "description": "A second image.",
 
                         "description": "A second image.",
 
                         "type": "wiki-file-name",
 
                         "type": "wiki-file-name",
                         "required": false,
+
                         "required": false
 
                 },
 
                 },
 
                 "3": {
 
                 "3": {
Line 28: Line 37:
 
                         "description": "A third image.",
 
                         "description": "A third image.",
 
                         "type": "wiki-file-name",
 
                         "type": "wiki-file-name",
                         "required": false,
+
                         "required": false
 +
                },
 +
                "4": {
 +
                        "label": "Image name",
 +
                        "description": "A fourth image.",
 +
                        "type": "wiki-file-name",
 +
                        "required": false
 +
                },
 +
                "5": {
 +
                        "label": "Image name",
 +
                        "description": "A fifth image.",
 +
                        "type": "wiki-file-name",
 +
                        "required": false
 
                 }
 
                 }
 
         }
 
         }
Line 34: Line 55:
 
</templatedata>
 
</templatedata>
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
+
<includeonly>{{Sandbox other||
 
<!-- Categories go here and interwikis go in Wikidata. -->
 
<!-- Categories go here and interwikis go in Wikidata. -->
 
[[Category:Wikipedia Portal templates]]
 
[[Category:Wikipedia Portal templates]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 16:38, 8 September 2020

Template:Template shortcuts

This template displays the format of an image using the same size and styling that the {{Portal}} template 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 found here.

Usage

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

Example

{{Portal icon demonstration|School.svg|Campfire3.png|Communications icon.png}} renders as:

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

This is a template to format a proposed portal image.

Template parameters

ParameterDescriptionTypeStatus
Image name1

The name of a image. Do not include the File: prefix.

Filerequired
Image name2

A second image.

Fileoptional
Image name3

A third image.

Fileoptional
Image name4

A fourth image.

Fileoptional
Image name5

A fifth image.

Fileoptional