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