跳转到内容

模組:Main page image/doc

维基百科,自由的百科全书

这是本页的一个历史版本,由en>Annh072024年3月20日 (三) 04:58 (Reverted edit by 201.175.202.139 (talk) to last version by ProcrastinatingReader)编辑。这可能和当前版本存在着巨大的差异。

(差异) ←上一修订 | 最后版本 (差异) | 下一修订→ (差异)

这是Module:Main page image的文档页面

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 {{Remove file prefix}} to strip it, if it exists, when sanitising template params. Example: {{#invoke:Main page image|width|{{Remove file prefix|{{{image}}}}}}}