Module:Main page image/doc

Revision as of 21:22, 31 July 2020 by imported>ProcrastinatingReader (remove file prefix)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

This is the documentation page for Module:Main page image

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

Usage edit source

{{#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}}}}}}}