Actions

Template

Difference between revisions of "Rom"

From Sonic Retro

 
Line 5: Line 5:
 
{| class="breakout" width="100%" style="border:0px; margin:0px;" |
 
{| class="breakout" width="100%" style="border:0px; margin:0px;" |
 
!CRC32
 
!CRC32
|{{#if: {{{crc32|}}}|{{{crc32}}} }}
+
|{{#if: {{{crc32|}}}|{{lc:{{{crc32|}}}}} }}
 
|-
 
|-
 
!MD5
 
!MD5
|{{#if: {{{md5|}}}|{{{md5}}} }}
+
|{{#if: {{{md5|}}}|{{lc:{{{md5|}}}}} }}
 
|-
 
|-
 
!SHA-1
 
!SHA-1
|{{#if: {{{sha1|}}}|{{{sha1}}} }}
+
|{{#if: {{{sha1|}}}|{{lc:{{{sha1|}}}}} }}
 
|}
 
|}
 
</div>
 
</div>
</div>
+
</div>{{#vardefine:actualsize|{{#switch:{{{size|}}}
| {{#if: {{{size|}}} | {{{size}}} }}
+
|8kB|8KB=8192
 +
|16kB|16KB=16384
 +
|24kB|24KB=24576
 +
|32kB|32KB=32768
 +
|40kB|40KB=40960
 +
|48kB|48KB=49152
 +
|64kB|64KB=65536
 +
|128kB|128KB=131072
 +
|256kB|256KB=262144
 +
|384kB|384KB=393216
 +
|512kB|512KB=524288
 +
|640kB|640KB=655360
 +
|768kB|768KB=786432
 +
|1MB=1048576
 +
|1.25MB=1310720
 +
|1.5MB=1572864
 +
|2MB=2097152
 +
|2.5MB=2621440
 +
|3MB=3145728
 +
|4MB=4194304
 +
|5MB=5242880
 +
|6MB=6291456
 +
|8MB=8388608
 +
|16MB=16777216
 +
|32MB=33554432
 +
|64MB=67108864
 +
|128MB=134217728
 +
|256MB=268435456
 +
|512MB=536870912
 +
|1024MB|1GB=1073741824
 +
|2048MB|2GB=2147483648
 +
|{{#replace:{{{size|}}}|,}}
 +
}}}}{{#if:{{#pos:{{#var:actualsize}}|B}}|[[Category:Games with vague size]]}}
 +
| {{#if: {{{size|}}} | {{#replace:{{{size|}}}|KB|kB}} }}
 
| {{#if: {{{date|}}} | {{{date}}} }}
 
| {{#if: {{{date|}}} | {{{date}}} }}
 
| {{#if: {{{source|}}} | {{{source}}} }}
 
| {{#if: {{{source|}}} | {{{source}}} }}
 
| {{#if: {{{comments|}}} | {{{comments}}} }}{{#ifeq: {{{undumped}}} | yes | [[Category:Undumped games]] }}
 
| {{#if: {{{comments|}}} | {{{comments}}} }}{{#ifeq: {{{undumped}}} | yes | [[Category:Undumped games]] }}
| {{#if: {{{file|}}} | [[File:Download.svg|16px|link=Special:FilePath/{{{file}}}]] ({{filesize|{{{file}}}}}) <small>([[:File:{{{file}}}|info]])</small> }}</includeonly><noinclude>
+
| {{#if: {{{icon|}}} | [[File:{{{icon|}}}|16px]] }}
 +
| {{#if: {{{file|}}} | [[File:Download.svg|16px|link=Special:FilePath/{{{file}}}]] ({{filesize|{{{file}}}}}) <small>([[:File:{{{file}}}|info]])</small> }}
 +
| {{#ifeq:{{{prototype|}}}|yes|{{#if:{{{protoname|}}}|[[{{PAGENAME}} ({{{protoname|}}})|Page]]|{{#if:{{{date|}}}|[[{{PAGENAME}} (prototype; {{Stripref|{{{date|}}}}})|Page]]}}}} }}</includeonly><noinclude>
 
See [[Template:Romtable]] for usage.
 
See [[Template:Romtable]] for usage.
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Latest revision as of 15:20, 28 April 2022

See Template:Romtable for usage.