Answer the question
In order to leave comments, you need to log in
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:
Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question