Template:Prototype: Difference between revisions

From Hidden Palace
Jump to navigation Jump to search
No edit summary
(make the lot check case insensitive)
 
(98 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<includeonly>{|cellpadding="0" cellspacing="0" class="breakout" style="margin-left:1em" width="262px"
<includeonly>{| cellpadding="0" cellspacing="0" class="infobox" style="margin-left:1em" width="{{ #if: {{{boxwidth|}}} | {{{boxwidth}}} | 262 }}px"
| style="text-align: center;"|
|  style="text-align: center;" | {{#if: {{{noscreen|}}} |  | {{imageexists
{{#ifeq:{{{titlescreen|}}}|IMAGE_NAME.png| [[Category:{{namespace detect|main=Missing title screens}}]] |
| file = {{#if: {{{titlescreen|}}} | {{{titlescreen}}} | {{PAGENAME}}-title.png }}
{{#if: {{{noscreen|}}} |  | {{imageexists
| maxwidth = 320
| file   = {{#if: {{{titlescreen|}}} | {{{titlescreen}}} | {{PAGENAMEE}}-title.png }}
| width  = {{#if: {{{screenwidth|}}} | {{{screenwidth}}} | }}
| caption= Title Screen
| caption= Title Screen
| mcat  = {{namespace detect|main=Missing title screens}}
| property= Has title screenshot
}}}}}}
| missingcat = Missing title screenshots }}}}
|-class="breakouttitle"
|-class="infobox-title"
! ''{{ #if: {{{title|}}} | {{{title}}} | {{PAGENAME}} }}''
! {{#replace:{{PAGENAME}}|!|&#33;}}
|-
|-
|style="padding: 0.3em; line-height: 1.5em; padding-left: 5px;" |
|style="padding: 10px; line-height: 1.5em;" |
 
{|
{{ #if: {{{game|}}} | '''Game''': {{game|{{{game}}}}}<br> | }}
{{ #if: {{{date|}}} | {{!}}'''Date''' {{!}}{{!}} {{{date}}}
{{ #if: {{{builddate|}}} | '''Build date''': {{builddate}<br> | }}
{{!}}- | }}
{{ #if: {{{buildname|}}} | '''Official build name''': {{builddate}<br> | }}
{{ #if: {{{version|}}} | {{!}}'''Version''' {{!}}{{!}} {{{version}}}
{{ #if: {{{system|}}} | '''System''': {{system|{{{system}}}}}<br> | }}
{{!}}- | }}
{{ #if: {{{status|}}} | '''Status''': {{status}}<br> | }}
{{ #if: {{{builddate|}}} | {{!}}'''Build date''' {{!}}{{!}} [[Has build date::{{{builddate}}}]] [[Has sort date::{{{builddate}}}| ]]
{{ #if: {{{dumper|}}} | '''Dumped by''': {{dumper}}<br> | }}
{{!}}- | {{ #if: {{{filereleasedate|}}} | |  [[Has sort date::1970| ]] }} }}
 
{{ #if: {{{buildname|}}} | {{!}}'''Build name''' {{!}}{{!}} [[Has build name::{{{buildname}}}]]
 
{{!}}- | }}
|}</includeonly>
{{ #if: {{{status|}}} | {{!}}'''Dump status''' {{!}}{{!}} [[Has status::{{{status}}}]]
<noinclude>
{{!}}- | }}
Template adapted from TCRF, who in turn took it from Sonic Retro.
{{ #if: {{{datstatus|}}} | {{!}}'''Dat status''' {{!}}{{!}} [[Has status::{{{datstatus}}}]]
</noinclude>
{{!}}- | }}
{{#arraydefine: dumped_bys
| {{{dumper|}}}
| , | sort=asc, unique
}}
{{ #if: {{{dumper|}}} | {{!}}'''Dumped by''' {{!}}{{!}} {{#arrayprint:dumped_bys|,&nbsp;|@@@@|[[Was dumped by::@@@@| ]]{{Autolink user|@@@@}}|}}
{{!}}- | }}
{{#arraydefine: released_bys
| {{{releasedby|}}}
| , | sort=asc, unique
}}
{{ #if: {{{releasedby|}}} | {{!}}'''Released by''' {{!}}{{!}} {{#arrayprint:released_bys|,&nbsp;|@@@@|[[Was released by::@@@@| ]]{{Autolink user|@@@@}}|}}
{{!}}- | }}
{{ #if: {{{filedumpdate|}}} | {{!}}'''File dump date''' {{!}}{{!}} [[Has file dump date::{{{filedumpdate}}}]]
{{!}}- |  }}
{{ #if: {{{filereleasedate|}}} | {{!}}'''File release date''' {{!}}{{!}} [[Has file release date::{{{filereleasedate}}}]] {{ #if: {{{builddate|}}} | | [[Has sort date::{{{filereleasedate}}}| ]] }}
{{!}}- | {{ #if: {{{builddate|}}} | |  [[Has sort date::1970| ]] }} }}
{{ #if: {{{origin_type|}}} | {{!}} style="padding-top: 14px" {{!}}'''Origin'''
{{!}} style="padding-top: 14px" {{!}} {{{origin_type}}}
{{!}}- | }}
{{ #if: {{{origin_lot|}}} | {{!}}'''Lot''' {{!}}{{!}} [[Has origin lot::{{{origin_lot}}}]] [[Category:{{#regex: {{{origin_lot}}} | /(.*) lot$/i | $1}} lot prototypes]]
{{!}}- |  }}
{{ #if: {{{origin_eproms|}}} | {{!}}'''EPROMs''' {{!}}{{!}} {{{origin_eproms}}}
{{!}}- | }}
{{ #if: {{{origin_label|}}} | {{!}}'''Label''' {{!}}{{!}} {{{origin_label}}}
{{!}}- | }}
{{ #if: {{{origin_labels|}}} | {{!}}'''Labels''' {{!}}{{!}} [[Has origin labels::{{{origin_labels}}}]]
{{!}}- | }}
{{ #if: {{{origin_file|}}} | {{!}}'''File''' {{!}}{{!}} <small>{{{origin_file}}}</small>
{{!}}- | }}
{{ #if: {{{origin_files|}}} | {{!}}'''Files''' {{!}}{{!}} <small>{{{origin_files}}}</small> }} [[Has origin files::{{{origin_files}}}|]]
{{!}}- | }}
{{ #if: {{{origin_dumpmethod|}}} | {{!}}'''Dump method''' {{!}}{{!}} {{{origin_dumpmethod}}}
{{!}}- | }}
{{ #if: {{{origin_ownership|}}} | {{!}}'''Ownership''' {{!}}{{!}} {{{origin_ownership}}}
{{!}}- | }}
{{ #if: {{{game|}}} | {{!}} style="padding-top: 14px" {{!}}'''Game'''
{{!}} style="padding-top: 14px" {{!}} [[Has game::{{{game}}}]] [[Category:{{{game}}} prototypes]]
{{!}}- | }}
{{ #if: {{{name|}}} | {{!}} style="padding-top: 14px" {{!}}'''Name'''
{{!}} style="padding-top: 14px" {{!}} {{{name}}}
{{!}}- | }}
{{ #if: {{{system|}}} | {{!}}'''System''' {{!}}{{!}} {{ #if: {{{game|}}} | {{system|{{{system}}}}} | {{{system}}} }} [[Has system::{{{system}}}| ]]
{{!}}- | }}
{{ #if: {{{genre|}}} | {{!}}'''Genre''' {{!}}{{!}} [[Has genre::{{{genre}}}]]
{{!}}- | }}
{{ #if: {{{final_builddate|}}} | {{!}}'''Final build''' {{!}}{{!}} [[Has final build date::{{{final_builddate}}}]]
{{!}}- | }}
{{ #if: {{{release_date|}}} | {{!}}'''Release&nbsp;date''' {{!}}{{!}} [[Has final release date::{{{release_date}}}]]
{{!}}- | }}
{{ #if: {{{sortnumber|}}} | [[Has sort number::{{{sortnumber}}}| ]] | [[Has sort number::999999| ]]  }}
{{ #if: {{{builtafter|}}} | [[Has built after::{{{builtafter}}}| ]] | {{ #if: {{{builddate|}}} | [[Has built after::{{{builddate}}}| ]] | {{ #if: {{{filereleasedate|}}} | [[Has built after::{{{filereleasedate}}}| ]] | [[Has built after::1970| ]] }}  }} }}
{{ #switch: {{{unreleased|}}} | yes | Yes = {{!}}'''Release&nbsp;date''' {{!}}{{!}} Unreleased [[Category:Unreleased game prototypes]] [[Is unreleased::true| ]]
{{!}}- | [[Is unreleased::false| ]] }}
{{ #if: {{{news_page|}}} | {{!}} style="padding-top: 14px" {{!}}'''Article'''
{{!}} style="padding-top: 14px" {{!}} [[{{{news_page}}}|{{#replace:{{#regex: {{{news_page}}} | /News\/(.*?)/ | $1}}|_|<nowiki/> <nowiki/>}} ]]
{{!}}- | [[Is community release::true| ]] }}
|}
|}[[Has article type::Prototype| ]]{{#default_form:Prototype}}</includeonly>

Latest revision as of 16:24, March 2, 2024