Difference between revisions of "Version"

From Sega Retro

(maybe do changes a different way, it's a mess)
Line 4: Line 4:
 
| {{#if: {{{size|}}} | {{{size}}} }}
 
| {{#if: {{{size|}}} | {{{size}}} }}
 
| {{#if: {{{date|}}} | <span style="display:none">{{#replace:{{{date}}}|-}}</span>{{{date}}} }}
 
| {{#if: {{{date|}}} | <span style="display:none">{{#replace:{{{date}}}|-}}</span>{{{date}}} }}
| {{#if: {{{changes|}}} |  
+
| {{#if: {{{comment|}}} | {{{comment}}} }}
{{{!}} class="{{#ifexpr: {{#len:{{{changes}}}}}>19 | mw-collapsible mw-collapsed }}" style="padding:0px; margin:0px; border:0px;"
 
!style="background-color:transparent; border:0px; text-align:left;"{{!}} {{#ifexpr: {{#len:{{{changes}}}}}>19 | <div style="max-height:24px; overflow:hidden;">{{nobr|{{#sub:{{#explode:{{{changes}}}|<br>|0}}|0|20}}...}}</div>
 
{{!}}-
 
{{!}} <div style="max-height:200px; overflow-y:auto;">{{{changes}}}</div>
 
|
 
{{{changes}}} }}
 
{{!}}}
 
}}
 
 
| {{#if: {{{ref|}}} | {{ref|1={{{ref}}}}}{{#if: {{{ref2|}}} |{{ref|1={{{ref2}}}}}}} }}
 
| {{#if: {{{ref|}}} | {{ref|1={{{ref}}}}}{{#if: {{{ref2|}}} |{{ref|1={{{ref2}}}}}}} }}
 
| {{#if: {{{icon|}}} | [[File:{{{icon}}}|16px]] }}
 
| {{#if: {{{icon|}}} | [[File:{{{icon}}}|16px]] }}

Revision as of 18:16, 24 March 2017

See Template:Versiontable for usage.