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



YumeWiki
3,037Articles

Template:VersionHistory: Difference between revisions

m (update image padding to hopefully fit it better on smaller screens)
m (add onlyinclude tags and some explanation)
Line 1: Line 1:
{{#if:{{#pos:{{{1}}}|.}}|<div style="clear:both;"></div></div></div><h3>Version {{{1}}}</h3><div style="width:100%; border:4px solid #b2af9c; background:#{{#switch:{{NAMESPACENUMBER}}|3002=dfdbc3|ffffff}};>{{#if:{{{2|}}}|<div style="width:min(93%, -20000 * (50% - 450px)); min-width:370px; float:left; padding:8px; background:#{{#switch:{{NAMESPACENUMBER}}|3002=dfdbc3|ffffff}}; padding-right:min(24px, 6%); line-height:270px">{{#arraymaptemplate:{{{2}}}|VersionHistory/Images|,|\n}}</div>}}}}{{#if:{{#pos:{{{1}}}|.}}||</div>}}<div style="padding:6px 10px; padding-left:32px; border-bottom:1px solid #B7B4A2;"><b>{{#if:{{#pos:{{{1}}}|.}}|C|Patch {{{1}}} / C}}ontributing Authors:</b> {{#arraymaptemplate:{{#if:{{#pos:{{{1}}}|.}}|{{{3}}}|{{{2}}}}}|VersionHistory/Category|,|,&nbsp;}}<br>'''Release Date:''' {{#if:{{#pos:{{{1}}}|.}}|{{{4}}}|{{{3}}}}}</div>
<onlyinclude>{{#if:{{#pos:{{{1}}}|.}}|<div style="clear:both;"></div></div></div><h3>Version {{{1}}}</h3><div style="width:100%; border:4px solid #b2af9c; background:#{{#switch:{{NAMESPACENUMBER}}|3002=dfdbc3|ffffff}};>{{#if:{{{2|}}}|<div style="width:min(93%, -20000 * (50% - 450px)); min-width:370px; float:left; padding:8px; background:#{{#switch:{{NAMESPACENUMBER}}|3002=dfdbc3|ffffff}}; padding-right:min(24px, 6%); line-height:270px">{{#arraymaptemplate:{{{2}}}|VersionHistory/Images|,|\n}}</div>}}}}{{#if:{{#pos:{{{1}}}|.}}||</div>}}<div style="padding:6px 10px; padding-left:32px; border-bottom:1px solid #B7B4A2;"><b>{{#if:{{#pos:{{{1}}}|.}}|C|Patch {{{1}}} / C}}ontributing Authors:</b> {{#arraymaptemplate:{{#if:{{#pos:{{{1}}}|.}}|{{{3}}}|{{{2}}}}}|VersionHistory/Category|,|,&nbsp;}}<br>'''Release Date:''' {{#if:{{#pos:{{{1}}}|.}}|{{{4}}}|{{{3}}}}}</div>
<div style="padding:6px 10px; border-bottom: 1px solid #B7B4A2;">
<div style="padding:6px 10px; border-bottom: 1px solid #B7B4A2;"></onlyinclude>
 
use in a version history page like this
<pre>{{vh
|0.100a
|example.png (Example World)
|author1, author2
|1999/09/19}}
*text
*text
...
</pre>
or for patches like this
<pre>{{vh
|2
|author1, author2
|1999/09/29}}
*text
*text
...
</pre>
after the last template you use, put <nowiki></div></nowiki> a couple of times, so you dont run into problems. ''probably should make a <nowiki>{{vhend}}</nowiki> or something...''
 
[[Template:VersionHistory/Images]]
 
[[Template:VersionHistory/Category]]

Revision as of 06:27, 4 August 2023

Patch {{{1}}} / Contributing Authors: {{{2}}}
Release Date: {{{3}}}

use in a version history page like this

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

or for patches like this

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

after the last template you use, put </div> a couple of times, so you dont run into problems. probably should make a {{vhend}} or something...

Template:VersionHistory/Images

Template:VersionHistory/Category