604 bytes added
, 04:45, 16 July 2021
This module provides utility for wrappers of {{tl|Main page image}}.
== Usage ==
<code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|width|''ImageTitle''}}</code> Get image width from ImageTitle.
''ImageTitle'' must not contain the namespace prefix (eg "File:"). You can use {{t|Remove file prefix}} to strip it, if it exists, when sanitising template params. Example: <code><nowiki>{{#invoke:Main page image|width|{{Remove file prefix|{{{image}}}}}}}</nowiki></code>
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<!-- Categories below this line, please; interwikis at Wikidata -->
}}</includeonly>