Module:Main page image/doc
Appearance
This is a documentation subpage for Module:Main page image. It may contain usage information, categories and other content that is not part of the original module page. |
This module can only be edited by administrators because it is transcluded onto one or more cascade-protected pages. |
This module provides utility for wrappers of {{Main page image}}.
Usage
[edit]{{#invoke:Main page image|width|ImageTitle}}
Get image width from ImageTitle.
ImageTitle must not contain the namespace prefix (eg "File:"). You can use {{Remove file prefix}} to strip it, if it exists, when sanitising template params. Example: {{#invoke:Main page image|width|{{Remove file prefix|{{{image}}}}}}}