Difference between revisions of "Version"
From Sega Retro
(should look a bit tidier) |
|||
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}}} }} | ||
− | | <div style="max-height: | + | | {{#if: {{{changes|}}} | |
+ | {{{!}} 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 | {{#sub:{{#replace:{{{changes}}}|<br>}}|0|20}}... | ||
+ | {{!}}- | ||
+ | {{!}} <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]] }} | ||
| {{#if: {{{file|}}} | [[File:Download.svg|16px|link=Special:FilePath/{{{file}}}]] ({{filesize|{{{file}}}}}) <small>[[:File:{{{file}}}|i]]</small> | }}{{#if: {{{installer|}}} | {{#if:{{{file|}}}|<br>}}[[File:Download.svg|16px|link=Special:FilePath/{{{installer}}}]] ({{filesize|{{{installer}}}}}) <small>[[:File:{{{installer}}}|i]]</small> | }}</includeonly><noinclude> | | {{#if: {{{file|}}} | [[File:Download.svg|16px|link=Special:FilePath/{{{file}}}]] ({{filesize|{{{file}}}}}) <small>[[:File:{{{file}}}|i]]</small> | }}{{#if: {{{installer|}}} | {{#if:{{{file|}}}|<br>}}[[File:Download.svg|16px|link=Special:FilePath/{{{installer}}}]] ({{filesize|{{{installer}}}}}) <small>[[:File:{{{installer}}}|i]]</small> | }}</includeonly><noinclude> | ||
See [[Template:Versiontable]] for usage. | See [[Template:Versiontable]] for usage. | ||
+ | |||
[[Category:Sega Retro templates]] | [[Category:Sega Retro templates]] | ||
</noinclude> | </noinclude> |
Revision as of 20:40, 22 March 2017
See Template:Versiontable for usage.