V
V
Vitaly Jazator2012-12-16 19:36:43
MediaWiki
Vitaly Jazator, 2012-12-16 19:36:43

Difficulties with the MediaWiki template

Maybe someone knows how to write a template for MediaWiki based on html code.
The template is needed to display photos in the wiki hosted on another site, but in the style provided for displaying photos uploaded through the wiki.

Available html code:
<div class="thumb tleft"> <div class="thumbinner" style="width:202px;"> <a href="ссылка на внешний сайт" class="image"> <img alt="" src="ссылка на привьюшку" width="200" height="150" class="thumbimage" /></a> <div class="thumbcaption"> <div class="magnify"> <a href="ссылка на внешний сайт" class="internal" title="Увеличить"> <img src="/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a> </div> Подпись для фотографии </div> </div> </div>

... and an example of how it looks now on the site:
Click here to view full size

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mithgol, 2012-12-17
@Mithgol

To display photos hosted on a wiki on another site, it's enough to populate the $wgForeignFileRepos array through the configuration file of your own wiki, specifying the API parameters of that remote wiki.
See the MediaWiki help for details .
After that, no template is needed, just the same code as for the illustrations on our own wiki will suffice.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question