Difference between revisions of "Template:Portal icon demonstration"

From blackwiki
Jump to navigation Jump to search
test>John of Reading
(For use at Template talk:Portal. Formats a proposed portal image with the size and styling that Template:Portal uses.)
 
m (5 revisions imported)
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<div class="noprint tright portal" style="border:solid #aaa 1px;margin:0.5em 0 0.5em 1em;">
+
<div role="navigation" aria-label="Portals" class="noprint portal plainlist tright" style="margin:0.5em 0 0.5em 1em;border:solid #aaa 1px">
<table style="background:#f9f9f9;font-size:85%;line-height:110%;max-width:175px;">
+
<ul style="display:table;box-sizing:border-box;padding:0.1em;max-width:175px;background:#f9f9f9;font-size:85%;line-height:110%;font-style:italic;font-weight:bold">
<tr valign="middle">
+
<li style="display:table-row">
<td style="text-align:center;">[[File:{{{1|Example.jpg}}}|32x28px|alt=Portal icon]]</td>
+
<span style="display:table-cell;padding:0.2em;vertical-align:middle;text-align:center">[[File:{{{1|Example.jpg}}}|32x28px|alt=icon]]</span>
<td style="padding:0 0.2em;vertical-align:middle;font-style:italic;font-weight:bold;">[[:File:{{{1|Example.jpg}}}|{{{1|Example.jpg}}}]]</td>
+
<span style="display:table-cell;padding:0.2em 0.2em 0.2em 0.3em;vertical-align:middle">[[:File:{{{1|Example.jpg}}}|{{{1|Example.jpg}}}]]</span>
</tr>
+
</li>
</table>
+
{{#if:{{{2|}}}|<nowiki/>
 +
<li style="display:table-row">
 +
<span style="display:table-cell;padding:0.2em;vertical-align:middle;text-align:center">[[File:{{{2}}}|32x28px|alt=icon]]</span>
 +
<span style="display:table-cell;padding:0.2em 0.2em 0.2em 0.3em;vertical-align:middle">[[:File:{{{2}}}|{{{2}}}]]</span>
 +
</li>
 +
}}{{#if:{{{3|}}}|<nowiki/>
 +
<li style="display:table-row">
 +
<span style="display:table-cell;padding:0.2em;vertical-align:middle;text-align:center">[[File:{{{3}}}|32x28px|alt=icon]]</span>
 +
<span style="display:table-cell;padding:0.2em 0.2em 0.2em 0.3em;vertical-align:middle">[[:File:{{{3}}}|{{{3}}}]]</span>
 +
</li>
 +
}}{{#if:{{{4|}}}|<nowiki/>
 +
<li style="display:table-row">
 +
<span style="display:table-cell;padding:0.2em;vertical-align:middle;text-align:center">[[File:{{{4}}}|32x28px|alt=icon]]</span>
 +
<span style="display:table-cell;padding:0.2em 0.2em 0.2em 0.3em;vertical-align:middle">[[:File:{{{4}}}|{{{4}}}]]</span>
 +
</li>
 +
}}{{#if:{{{5|}}}|<nowiki/>
 +
<li style="display:table-row">
 +
<span style="display:table-cell;padding:0.2em;vertical-align:middle;text-align:center">[[File:{{{5}}}|32x28px|alt=icon]]</span>
 +
<span style="display:table-cell;padding:0.2em 0.2em 0.2em 0.3em;vertical-align:middle">[[:File:{{{5}}}|{{{5}}}]]</span>
 +
</li>
 +
}}
 +
</ul>
 
</div><noinclude>
 
</div><noinclude>
 
{{Documentation}}
 
{{Documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 16:38, 8 September 2020

Template documentation[view] [edit] [history] [purge]

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