Widget:LayoutImage: Difference between revisions
Jump to navigation
Jump to search
m Typo |
Allowing only files within the wiki |
||
Line 1: | Line 1: | ||
<includeonly><img src="<!--{$src|escape:'url'}-->" class="<!--{$class|default:''|escape:'html'}-->" loading="lazy"/></includeonly><noinclude>== Summary == | <includeonly><img src="{{filepath:<!--{$src|escape:'url'}-->}}" class="<!--{$class|default:''|escape:'html'}-->" loading="lazy"/></includeonly><noinclude>== Summary == | ||
Simple widget to display an image as there is no img tag in the MediaWiki Parser anymore. | Simple widget to display an image as there is no img tag in the MediaWiki Parser anymore. | ||
Line 6: | Line 6: | ||
{{Testcase | {{Testcase | ||
|title=Simple call | |title=Simple call | ||
|<pre><nowiki>{{#widget:LayoutImage|src= | |<pre><nowiki>{{#widget:LayoutImage|src=Icon_{{{2|Holographic Sight}}}.png}}</nowiki></pre> | ||
|main={{#widget:LayoutImage|src= | |main={{#widget:LayoutImage|src=Icon_{{{2|Holographic Sight}}}.png}} | ||
|sandbox={{#widget:LayoutImage/sandbox|src= | |sandbox={{#widget:LayoutImage/sandbox|src=Icon_{{{2|Holographic Sight}}}.png}} | ||
}} | }} | ||
</noinclude> | </noinclude> |
Revision as of 19:29, 21 July 2024
Summary
Simple widget to display an image as there is no img tag in the MediaWiki Parser anymore.
Example usages
Simple call | |
---|---|
Wiki code | {{#widget:LayoutImage|src=Icon_{{{2|Holographic Sight}}}.png}} |
Main version | ![]() |
Sandbox version | Error in widget LayoutImage/sandbox: Unable to load template 'wiki:LayoutImage/sandbox'
|