Widget:Wikipedia image

From CruisersWiki

(Difference between revisions)
Jump to: navigation, search
(height)
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="height" value=$height|regex_replace:'/^([0-9]*).*$/':'\1'
}--><!--{
}--><!--{
assign var="noSvg" value=$file|regex_replace:'/\.svg$/':''
assign var="noSvg" value=$file|regex_replace:'/\.svg$/':''
Line 11: Line 13:
}--><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}--><!--{if $file == $noSvg}-->?width=<!--{$width}--><!--{/if}-->" width="<!--{$width}--><!--{/if}-->"><!--{
+
}--><img <!--{if $thumb}-->class="thumbimage" <!--{/if}-->alt="<!--{$file}-->" src="https://en.wikipedia.org/wiki/Special:Redirect/file/<!--{$fileEscaped}--><!--{
 +
if $file == $noSvg
 +
}-->?dummy<!--{if $width}-->&width=<!--{$width}--><!--{/if}--><!--{if $height}-->&height=<!--{$height}--><!--{/if}--><!--{
 +
/if
 +
}-->"<!--{if $width}--> width="<!--{$width}--><!--{/if}-->"><!--{if $height}--> height="<!--{$height}--><!--{/if}-->"><!--{
if !$nolink
if !$nolink
}--></a><!--{
}--></a><!--{

Revision as of 12:48, 14 August 2017

A helper widget for Template:Wikipedia image


Personal tools
advertisement
Friends of Cruisers Wiki