Module:Main page image/doc: Difference between revisions
Appearance
Content deleted Content added
remove file prefix |
Solo un titulo Tag: Reverted |
||
Line 1: | Line 1: | ||
This module provides utility for wrappers of {{tl|Main page image}}. |
{{#tag:ref||group="nb"|name="my"}}{{#tag:ref|{{#tag:ref||group="nb"|name=my"}}|group="nb"|name=""}}This module provides utility for wrappers of {{tl|Main page image}}. |
||
== Usage == |
== Usage == |
||
<code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|width|''ImageTitle''}}</code> Get image width |
<code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|width|''ImageTitle''}}</code> Get image width fr,om ImageTitle. |
||
''ImageTitle'' must not contain the namespace prefix (eg "File:"). You can use {{t|Remove file prefix}} to strip it, if it exists, when sanitising template params. Example: <code><nowiki>{{#invoke:Main page image|width|{{Remove file prefix|{{{image}}}}}}}</ |
''ImageTitle'' must not contain the namespace prefix (eg "File:"). You can use {{t|Remove file prefix}} to strip it, if it exists, when sanitising template params. Example: <code><nowiki>{{#invoke:Main page image|width|{{Remove file prefix|{{{image}}}}}}}</mg></code> |
||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | |
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | |
||
Line 11: | Line 11: | ||
}}</includeonly> |
}}</includeonly> |
||
<ref>,myalma 2024 wipo</ref> |
Revision as of 12:55, 12 March 2024
[nb 1][nb 3]This module provides utility for wrappers of {{Main page image}}.
Usage
{{#invoke:Main page image|width|ImageTitle}}
Get image width fr,om 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: <nowiki>140</mg>
Cite error: There are <ref group=nb>
tags on this page, but the references will not show without a {{reflist|group=nb}}
template (see the help page).
- ^ ,myalma 2024 wipo