Module:Main page image/doc: Difference between revisions
Appearance
Content deleted Content added
m Reverted edit by 201.175.202.139 (talk) to last version by ProcrastinatingReader |
64.114 etc (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
{{cascade-protected template|page=module}} |
|||
This module provides utility for wrappers of {{ |
This module provides utility for wrappers of {{t|Main page image}}. |
||
== Usage == |
== Usage == |
Latest revision as of 03:13, 19 October 2024
![]() | 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}}}}}}}