Template:Main page image/sandbox

From blackwiki
< Template:Main page image
Revision as of 09:59, 20 July 2020 by test>ProcrastinatingReader (braces will get you every time)
Jump to navigation Jump to search

<div class="thumbinner mp-thumb" style="background: transparent; border: none; padding: 0; max-width: Script error: No such module "Sandbox/ProcrastinatingReader/test".px;">

Example image not to be used in article namespace.jpg

Caption goes here.
Template documentation[view] [edit] [history] [purge]

This module provides utility for wrappers of {{Main page image}}.

Usage

{{#invoke:Main page image|width|ImageTitle}} Get image width from ImageTitle.

ImageTitle must not contain the namespace prefix (eg "File:"). You can use Template:T to strip it, if it exists, when sanitising template params. Example: {{#invoke:Main page image|width|{{Remove file prefix|{{{image}}}}}}}