Widget:Wikipedia image

From CruisersWiki

(Difference between revisions)
Jump to: navigation, search
Line 5: Line 5:
}--><!--{
}--><!--{
assign var="width" value=$width|regex_replace:'/^([0-9]*).*$/':'\1'
assign var="width" value=$width|regex_replace:'/^([0-9]*).*$/':'\1'
 +
}--><!--{
 +
assign var="noSvg" value=$file|regex_replace:'/\.svg$/':''
}--><!--{
}--><!--{
if !$nolink
if !$nolink
}--><a href="<!--{$link}-->" class="image"><!--{
}--><a href="<!--{$link}-->" class="image"><!--{
/if
/if
-
}--><img <!--{if $thumb}-->class="thumbimage" <!--{/if}-->alt="<!--{$file}-->" src="https://en.wikipedia.org/wiki/Special:Redirect/file/<!--{$fileEscaped}--><!--{if $width}-->" width="<!--{$width}--><!--{/if}-->"><!--{
+
}--><img <!--{if $thumb}-->class="thumbimage" <!--{/if}-->alt="<!--{$file}-->" src="https://en.wikipedia.org/wiki/Special:Redirect/file/<!--{$fileEscaped}--><!--{if $width}--><!--{if $file == $noSvg}-->?width=<!--{$width}--><!--{/if}-->" width="<!--{$width}--><!--{/if}-->"><!--{
if !$nolink
if !$nolink
}--></a><!--{
}--></a><!--{
Line 16: Line 18:
A helper widget for [[Template:Wikipedia image]]
A helper widget for [[Template:Wikipedia image]]
-
?width=<!--{$width}-->
 
</noinclude>
</noinclude>

Revision as of 16:35, 19 January 2017

A helper widget for Template:Wikipedia image


Personal tools
advertisement
Friends of Cruisers Wiki