Difference between revisions of "Template:Main page image"

From blackwiki
Jump to navigation Jump to search
test>MusikAnimal
m (Protected "Template:Main page image": Highly visible template; thousands of transclusions ([Edit=Require autoconfirmed or confirmed access] (indefinite) [Move=Require administrator access] (indefinite)))
test>Primefac
m (Changed protection level for "Template:Main page image": high-risk template with 4000+ transclusions ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)))
(No difference)

Revision as of 16:30, 23 February 2018

Example image not to be used in article namespace.jpg
Caption goes here.
Template documentation[view] [edit] [history] [purge]

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

Usage

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