0

I tried to add a linked image to a wiki page without luck. The HTML syntax for the linked image is below:

<a href="External Link" class="fancybox-iframe {width:800,height:600}"><img width="300" height="220" alt="Virtual Tour" src="Path to Image" title="Virtual Tour" class="alignleft size-full wp-image-8517"></a>

What's the right syntax for linked image in MediaWiki?

I am using [[File:Fielname.jpg|frame|||||link=External Link|alt=ALT|Caption]]

But I need to add CSS class to both A and IMG tag and it seems I cannot.

Thank you.

4

1 回答 1

1

创建模板一次Template:MyReusedImage使用正确大小、标题等的图像。然后在页面 {{MyReusedImage}} 上重用模板

于 2012-12-05T08:37:38.033 回答