Template:Main page image/sandbox
< Template:Main page image
Jump to navigation
Jump to search
Revision as of 09:59, 20 July 2020 by test>ProcrastinatingReader (braces will get you every time)
<div class="thumbinner mp-thumb" style="background: transparent; border: none; padding: 0; max-width: Script error: No such module "Sandbox/ProcrastinatingReader/test".px;">
Caption goes here.
| This is the template sandbox page for Template:Main page image (diff). See also the companion subpage for test cases. |
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}}}}}}}
| The above documentation is transcluded from Template:Main page image/doc. (edit | history) Editors can experiment in this template's sandbox (edit | diff) and testcases (edit) pages. Please add categories to the /doc subpage. Subpages of this template. |
