Difference between revisions of "Rom"

From Sega Retro

(47 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<includeonly>|-{{#ifeq: {{{prototype}}} | yes | style="background: #DFEEF7" | }}
+
<includeonly>|-style="{{#switch:{{{prototype|}}}{{{undumped|}}}
|style="padding-right:10px"| {{{{{1}}}}} {{#switch: {{{quality}}} | good=<span style="color:green">✔</span> | bad=<span style="color:red">✘</span> | n/a= | ? }}
+
| yesyes=background: repeating-linear-gradient(45deg,#DFEEF7,#DFEEF7 8px,pink 8px,pink 16px);
| {{#if: {{{sha1|}}} | {{{sha1}}} | }}
+
| {{#switch:{{{prototype|}}}|yes=background: #DFEEF7;}}{{#switch:{{{undumped|}}}|yes=background: pink;}}}}{{#if:{{{prototype|}}}{{{undumped|}}}||{{#vardefine:founddump|yes}}}}
| {{#if: {{{size|}}} | {{{size}}} | }}
+
|style="padding-right:10px"| {{{{{1|}}}}} {{#switch: {{{quality|}}} | good=<span style="color:green">✔</span> | bad=<span style="color:red">✘</span> | n/a= | ? }}
| {{#if: {{{date|}}} | {{{date}}} | }}
+
|style="padding:0px"|<div class="toccolours mw-collapsible mw-collapsed">
| {{#if: {{{source|}}} | {{{source}}} | }}
+
<div class="mw-collapsible-content">
| {{#if: {{{comments|}}} | {{{comments}}} | }}
+
{| class="breakout" width="100%" style="border:0px; margin:0px;" |
| {{#if: {{{file|}}} | [[File:Download.svg|16px|link=Media:{{{file}}}]] ({{filesize|{{{file}}}}}) [[:File:{{{file}}}|i]] | }}</includeonly><noinclude>
+
!CRC32
 +
|{{#if: {{{crc32|}}}|{{lc:{{{crc32|}}}}}|[[Category:Missing ROM hashes]] }}
 +
|-
 +
!MD5
 +
|{{#if: {{{md5|}}}|{{lc:{{{md5|}}}}}|[[Category:Missing ROM hashes]] }}
 +
|-
 +
!SHA-1
 +
|{{#if: {{{sha1|}}}|{{lc:{{{sha1|}}}}}|[[Category:Missing ROM hashes]] }}
 +
|}
 +
</div>
 +
</div>{{#vardefine:actualsize|{{#switch:{{{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: {{{source|}}} | {{{source|}}} }}
 +
| {{#if: {{{comments|}}} | {{{comments|}}} }}{{#ifeq: {{{undumped|}}} | yes | [[Category:Undumped games]] }}
 +
| {{#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]][[Category:Games with known prototypes]]|{{#if:{{{date|}}}|[[{{PAGENAME}} (prototype; {{Stripref|{{{date|}}}}})|Page]][[Category:Games with known prototypes]]}}}} }}{{#cargo_store:
 +
_table = roms
 +
|name={{FormatSQL|{{#titleparts:{{PAGENAME}}}}}}
 +
|format={{{1|}}}
 +
|sha1={{lc:{{{sha1|}}}}}
 +
|md5={{lc:{{{md5|}}}}}
 +
|crc32={{lc:{{{crc32|}}}}}
 +
|size={{#var:actualsize}}
 +
|date={{stripref|{{{date|}}}}}
 +
|source={{stripref|{{{source|}}}}}
 +
|comments={{stripref|{{{comments|}}}}}
 +
|quality={{{quality|}}}
 +
|prototype={{{prototype|}}}
 +
|undumped={{{undumped|}}}
 +
}}{{#ifeq:{{{prototype|}}}|yes|
 +
{{StorePrototype
 +
|name={{#titleparts:{{PAGENAME}}}} ({{#if:{{{protoname|}}}|{{{protoname|}}}|{{#if:{{{date|}}}|prototype; {{{date|}}}|prototype}}}})
 +
|final={{#titleparts:{{PAGENAME}}}}
 +
|format={{Code2Format|{{{1|}}}}}
 +
|date={{{date|}}}
 +
}}
 +
|}}</includeonly><noinclude>
 +
{{#cargo_declare:
 +
_table = roms
 +
|name=Text
 +
|format=Text
 +
|sha1=Text
 +
|md5=Text
 +
|crc32=Text
 +
|size=Text
 +
|date=Text
 +
|source=Wikitext
 +
|comments=Text
 +
|quality=Text
 +
|prototype=Text
 +
|undumped=Text
 +
}}
 
See [[Template:Romtable]] for usage.
 
See [[Template:Romtable]] for usage.
[[Category:Sega Retro templates]]</noinclude>
+
 
 +
[[Category:Templates]]</noinclude>

Revision as of 09:36, 26 November 2022

This template defines the table "roms". View table. See Template:Romtable for usage.