×
Create a new article
Write your page title here:
We currently have 3,036 articles on YumeWiki. Type your article name above or click on one of the titles below and start writing!



YumeWiki
3,036Articles

Template:VersionHistory: Difference between revisions

(lighter, faster, no subpage dependencies, better image presentation (also on mobile), better image links, ensures headers dont get fragmented, better wiki support, i forgot what else)
(bring back dependency on Images subpage, it allows for more consistent mobile support)
Line 11: Line 11:
   --><div style="border:4px solid #b2af9c;><!-- Open main box div
   --><div style="border:4px solid #b2af9c;><!-- Open main box div
       -->{{#if:{{{2|}}}<!-- Check for images
       -->{{#if:{{{2|}}}<!-- Check for images
       -->|<div id="mw-content" class="floatleft" style="padding:12px;padding-bottom:1px;margin-right:2%;font-size:1px;"><!-- Open image div
       -->|{{#arraymaptemplate:{{{2}}}|VersionHistory/Images|,|}}<!-- Array for images and their annotations
        -->{{#arraymap:{{{2}}}|,|?|[[File:{{#sub:?|0|{{#pos:?|(}}}}{{!}}left{{!}}border{{!}}370x370px{{!}}link={{#if:{{#pos:?|(}}|{{NAMESPACE}}:{{#replace:{{#sub:?|{{#expr:1 + {{#pos:?|(}}}}}}|)|}}}}]]|\n}}<!-- Array for images and their annotations
      --></div><!-- Close image div
       -->}}<!-- End image check
       -->}}<!-- End image check
-->|</div><!-- If patch, close div of border bottom from previous template use
-->|</div><!-- If patch, close div of border bottom from previous template use

Revision as of 13:56, 3 July 2024


use in a version history page like this

{{vh
|0.100a
|example.png (Example World), two.png (Another World)
|author1, author2
|1999/09/19}}
*text
*text
...

or for patches like this

{{vh
|2
|author1, author2
|1999/09/29}}
*text
*text
...

If there is normal page content below a usage of this template, put a couple </div> in there to stop the css from bleeding onto it

Template:VersionHistory/Images

Template:VersionHistory/Category