Module:Main page image/doc: Difference between revisions
From Kenshi Wiki
More actions
Created page with "{{documentation subpage}} {{cascade-protected template|page=module}} This module provides utility for wrappers of {{t|Main page image}}. == Usage == <code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|width|''ImageTitle''}}</code> Get image width from 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 ima..." |
No edit summary |
||
| Line 1: | Line 1: | ||
{{documentation subpage}} | {{documentation subpage}} | ||
This module provides utility for wrappers of {{t|Main page image}}. | This module provides utility for wrappers of {{t|Main page image}}. | ||
| Line 11: | Line 10: | ||
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | | | ||
<!-- Categories below this line, please; interwikis at Wikidata --> | <!-- Categories below this line, please; interwikis at Wikidata --> | ||
[[Category:Modules]] | |||
}}</includeonly> | }}</includeonly> | ||
<noinclude> | |||
[[Category:Module documentation pages]] | |||
</noinclude> | |||
Revision as of 02:12, 2 March 2025
| This is a documentation subpage for Module:Main page image. It may contain usage information, categories and other content that is not part of the original module page. |
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}}}}}}}