Module:File link/doc: Difference between revisions

Content deleted Content added
No edit summary
m Reverted edits by 63.123.133.105 (talk) to last version by Mr. Stradivarius
Line 1:
This module is used to construct wikitext links to files. It is primarily useful for templates and modules that use complicated logic to make file links. Simple file links should be made with wikitext markup directly, as it uses less resources than calling this module. For help with wikitext file markup please refer to the [[mw:Help:Images|documentation at mediawiki.org]].
 
== Usage from wikitext ==
Line 64:
mFileLink.main{
file = 'Example.png',
format ||= 'frameless',
size = '220px',
border = true
}
-- Renders as [[File:Example.png|frameless|border|220px]]
</source>
 
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox||
<!-- Categories go here and interwikis go in Wikidata. -->