Widget:Wikipedia image
From CruisersWiki
(Difference between revisions)
Line 1: | Line 1: | ||
<includeonly><!--{ | <includeonly><!--{ | ||
- | assign var="fileEscaped" value=$file|replace:' ':'_'|escape:'url'}--><!-- | + | assign var="fileEscaped" value=$file|replace:' ':'_'|escape:'url' |
- | + | }--><!--{ | |
- | + | assign var="link" value=$link|default:"http://wikipedia.org/wiki/File:$fileEscaped" | |
- | + | }--><!--{ | |
- | + | assign var="width" value=$width|regex_replace:'/^([0-9]*).*$/':'\1' | |
- | + | }--><!--{ | |
- | + | if !$nolink}--><a href="<!--{$link}-->" class="image"><!--{/if | |
- | + | }--><img alt="<!--{$file}-->" src="https://wikipedia.org/wiki/Special:Redirect/file/<!--{$fileEscaped}--><!--{if $width}-->?width=<!--{$width}--><!--{/if}-->"><!--{ | |
- | + | if !$nolink}--></a><!--{ | |
- | + | /if}--></includeonly><noinclude> | |
- | --></includeonly><noinclude> | + | |
<!-- | <!-- | ||
Revision as of 12:11, 16 November 2016