Jump to content

Module:Main page image/doc

From Wikipedia, the free encyclopedia
This is the current revision of this page, as edited by 64.114 etc (talk | contribs) at 03:13, 19 October 2024. The present address (URL) is a permanent link to this version.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)

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