Difference between revisions of "Template:Prototype"

From Hidden Palace
Jump to: navigation, search
(Set max title screenshot width to 320)
 
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<includeonly>{| cellpadding="0" cellspacing="0" class="infobox" style="margin-left:1em" width="{{ #if: {{{boxwidth|}}} | {{{boxwidth}}} | 262 }}px"
 
<includeonly>{| cellpadding="0" cellspacing="0" class="infobox" style="margin-left:1em" width="{{ #if: {{{boxwidth|}}} | {{{boxwidth}}} | 262 }}px"
|  style="text-align: center;" | {{#ifeq:{{{titlescreen|}}}|IMAGE_NAME.png| [[Category:Missing title screens]] |
+
|  style="text-align: center;" | {{#if: {{{noscreen|}}} |  | {{imageexists
{{#if: {{{noscreen|}}} |  | {{imageexists
+
| file = {{#if: {{{titlescreen|}}} | {{{titlescreen}}} | {{PAGENAME}}-title.png }}
| file   = {{#if: {{{titlescreen|}}} | {{{titlescreen}}} | {{PAGENAME}}-title.png }}
+
| maxwidth = 320
| width  = 320
+
 
| caption= Title Screen
 
| caption= Title Screen
| missingcat   = Missing title screens
+
| property= Has title screenshot
}}}}}}
+
| missingcat = Missing title screenshots }}}}
 
|-class="infobox-title"
 
|-class="infobox-title"
! {{ #if: {{{title|}}} | {{{title}}} | {{PAGENAME}} }}
+
! {{#replace:{{PAGENAME}}|!|&#33;}}
 
|-
 
|-
 
|style="padding: 10px; line-height: 1.5em;" |
 
|style="padding: 10px; line-height: 1.5em;" |
 
 
{|
 
{|
 
{{ #if: {{{date|}}} | {{!}}'''Date''' {{!}}{{!}} {{{date}}}
 
{{ #if: {{{date|}}} | {{!}}'''Date''' {{!}}{{!}} {{{date}}}
Line 17: Line 15:
 
{{ #if: {{{version|}}} | {{!}}'''Version''' {{!}}{{!}} {{{version}}}
 
{{ #if: {{{version|}}} | {{!}}'''Version''' {{!}}{{!}} {{{version}}}
 
{{!}}- | }}
 
{{!}}- | }}
{{ #if: {{{builddate|}}} | {{!}}'''Build date''' {{!}}{{!}} [[Has build date::{{{builddate}}}]]
+
{{ #if: {{{builddate|}}} | {{!}}'''Build date''' {{!}}{{!}} [[Has build date::{{{builddate}}}]] [[Has sort date::{{{builddate}}}| ]]  
{{!}}- | }}
+
{{!}}- | [[Has sort date::1970| ]] }}
 
{{ #if: {{{buildname|}}} | {{!}}'''Build name''' {{!}}{{!}} [[Has build name::{{{buildname}}}]]
 
{{ #if: {{{buildname|}}} | {{!}}'''Build name''' {{!}}{{!}} [[Has build name::{{{buildname}}}]]
 
{{!}}- | }}
 
{{!}}- | }}
 
{{ #if: {{{status|}}} | {{!}}'''Dump status''' {{!}}{{!}} [[Has status::{{{status}}}]]
 
{{ #if: {{{status|}}} | {{!}}'''Dump status''' {{!}}{{!}} [[Has status::{{{status}}}]]
 
{{!}}- | }}
 
{{!}}- | }}
{{ #if: {{{dumper|}}} | {{!}}'''Dumped by''' {{!}}{{!}} [[Was dumped by::{{{dumper}}}]]
+
{{ #if: {{{dumper|}}} | {{!}}'''Dumped by''' {{!}}{{!}} {{Autolink user|{{{dumper}}} }} [[Was dumped by::{{{dumper}}}| ]]
 +
{{!}}- | }}
 +
{{ #if: {{{releasedby|}}} | {{!}}'''Released by''' {{!}}{{!}} {{Autolink user|{{{releasedby}}} }} [[Was released by::{{{releasedby}}}| ]]
 
{{!}}- | }}
 
{{!}}- | }}
 +
{{ #if: {{{filereleasedate|}}} | {{!}}'''File release date''' {{!}}{{!}} [[Has file release date::{{{filereleasedate}}}]] [[Has sort date::{{{filereleasedate}}}| ]]
 +
{{!}}- | [[Has sort date::1970| ]] }}
 
{{ #if: {{{origin_type|}}} | {{!}} style="padding-top: 14px" {{!}}'''Origin'''
 
{{ #if: {{{origin_type|}}} | {{!}} style="padding-top: 14px" {{!}}'''Origin'''
 
{{!}} style="padding-top: 14px" {{!}} {{{origin_type}}}
 
{{!}} style="padding-top: 14px" {{!}} {{{origin_type}}}
 
{{!}}- | }}
 
{{!}}- | }}
{{ #if: {{{origin_lot|}}} | {{!}}'''Lot''' {{!}}{{!}} {{{origin_lot}}}
+
{{ #if: {{{origin_lot|}}} | {{!}}'''Lot''' {{!}}{{!}} [[Has origin lot::{{{origin_lot}}}]]
 
{{!}}- | }}
 
{{!}}- | }}
 
{{ #if: {{{origin_eproms|}}} | {{!}}'''EPROMs''' {{!}}{{!}} {{{origin_eproms}}}
 
{{ #if: {{{origin_eproms|}}} | {{!}}'''EPROMs''' {{!}}{{!}} {{{origin_eproms}}}
Line 34: Line 36:
 
{{ #if: {{{origin_label|}}} | {{!}}'''Label''' {{!}}{{!}} {{{origin_label}}}
 
{{ #if: {{{origin_label|}}} | {{!}}'''Label''' {{!}}{{!}} {{{origin_label}}}
 
{{!}}- | }}
 
{{!}}- | }}
{{ #if: {{{origin_labels|}}} | {{!}}'''Labels''' {{!}}{{!}} {{{origin_labels}}}
+
{{ #if: {{{origin_labels|}}} | {{!}}'''Labels''' {{!}}{{!}} [[Has origin labels::{{{origin_labels}}}]]
 
{{!}}- | }}
 
{{!}}- | }}
 
{{ #if: {{{origin_file|}}} | {{!}}'''File''' {{!}}{{!}} <small>{{{origin_file}}}</small>
 
{{ #if: {{{origin_file|}}} | {{!}}'''File''' {{!}}{{!}} <small>{{{origin_file}}}</small>
 
{{!}}- | }}
 
{{!}}- | }}
{{ #if: {{{origin_files|}}} | {{!}}'''Files''' {{!}}{{!}} <small>{{{origin_files}}}</small>
+
{{ #if: {{{origin_files|}}} | {{!}}'''Files''' {{!}}{{!}} <small>{{{origin_files}}}</small> }} [[Has origin files::{{{origin_files}}}|]]
 
{{!}}- | }}
 
{{!}}- | }}
 
{{ #if: {{{origin_dumpmethod|}}} | {{!}}'''Dump method''' {{!}}{{!}} {{{origin_dumpmethod}}}
 
{{ #if: {{{origin_dumpmethod|}}} | {{!}}'''Dump method''' {{!}}{{!}} {{{origin_dumpmethod}}}
Line 45: Line 47:
 
{{!}}- | }}
 
{{!}}- | }}
 
{{ #if: {{{game|}}} | {{!}} style="padding-top: 14px" {{!}}'''Game'''
 
{{ #if: {{{game|}}} | {{!}} style="padding-top: 14px" {{!}}'''Game'''
{{!}} style="padding-top: 14px" {{!}} [[Is a prototype of::{{{game}}}]] [[Category:{{{game}}} prototypes]]
+
{{!}} style="padding-top: 14px" {{!}} [[Has game::{{{game}}}]] [[Category:{{{game}}} prototypes]]
 
{{!}}- | }}
 
{{!}}- | }}
 
{{ #if: {{{name|}}} | {{!}} style="padding-top: 14px" {{!}}'''Name'''
 
{{ #if: {{{name|}}} | {{!}} style="padding-top: 14px" {{!}}'''Name'''
Line 56: Line 58:
 
{{ #if: {{{final_builddate|}}} | {{!}}'''Final build''' {{!}}{{!}} [[Has final build date::{{{final_builddate}}}]]
 
{{ #if: {{{final_builddate|}}} | {{!}}'''Final build''' {{!}}{{!}} [[Has final build date::{{{final_builddate}}}]]
 
{{!}}- | }}
 
{{!}}- | }}
{{ #if: {{{release_date|}}} | {{!}}'''Release&nbsp;date''' {{!}}{{!}} {{{release_date}}}
+
{{ #if: {{{release_date|}}} | {{!}}'''Release&nbsp;date''' {{!}}{{!}} [[Has final release date::{{{release_date}}}]]
 
{{!}}- | }}
 
{{!}}- | }}
{{ #if: {{{unreleased|}}} | {{!}}'''Release&nbsp;date''' {{!}}{{!}} Unreleased [[Category:Unreleased game prototypes]] [[Is unreleased::true]]
+
{{ #switch: {{{unreleased|}}} | yes | Yes = {{!}}'''Release&nbsp;date''' {{!}}{{!}} Unreleased [[Category:Unreleased game prototypes]] [[Is unreleased::true| ]]
{{!}}- | [[Is unreleased::false]] }}
+
{{!}}- | [[Is unreleased::false| ]] }}
 
|}
 
|}
|}</includeonly>
+
|}{{#default_form:Prototype}}</includeonly>
<noinclude>
+
<templatedata>{
+
  "description": "Prototype info box",
+
  "params": {
+
    "titlescreen": {
+
      "label": "Title screenshot",
+
      "description": "Screenshot of the title screen",
+
      "type": "wiki-file-name",
+
      "autovalue": "InsertPrototypeName_Title.png",
+
      "suggested": true
+
    },
+
    "builddate": {
+
      "label": "Build date",
+
      "description": "The date when the prototype was built. Use this date format: Nov 7, 2006.",
+
      "type": "string",
+
      "example": "Sep 18, 1992"
+
    },
+
    "buildname": {
+
      "label": "Build name",
+
      "description": "The official name of the build (if any).",
+
      "type": "string"
+
    },
+
    "status": {
+
      "label": "Status",
+
      "description": "This should be either: Released, Dumped, or Undumped.",
+
      "type": "string",
+
      "example": "Released"
+
    },
+
    "dumper": {
+
      "label": "Dumper",
+
      "description": "The person who dumped the prototype.",
+
      "type": "string"
+
    },
+
    "game": {
+
      "label": "Game",
+
      "description": "The game the prototype is of.",
+
      "type": "string",
+
      "required": true,
+
      "example": "Sonic the Hedgehog"
+
    },
+
    "system": {
+
      "label": "System",
+
      "description": "The system the prototype is for.",
+
      "type": "string",
+
      "required": true,
+
      "example": "Sega Mega Drive"
+
    },
+
    "genre": {
+
      "label": "Genre",
+
      "description": "The genre of the game.",
+
      "type": "string",
+
      "example": "Platform"
+
    },
+
    "final_builddate": {
+
      "label": "Final build date",
+
      "description": "The build date of the final version of the game.",
+
      "type": "string"
+
    },
+
    "release_date": {
+
      "label": "Release date",
+
      "description": "The date when the game was released. Use the RegionDate template as provided automatically. Order the dates chronologically.",
+
      "type": "string",
+
      "autovalue": "{{RegionDate|JP|Nov 21, 1992}} {{RegionDate|US|Nov 24, 1992}} {{RegionDate|EU|Nov 24, 1992}}"
+
    },
+
    "unreleased": {
+
      "label": "Unreleased",
+
      "description": "Set to yes if (and only if) the game was never released. Use either 'Release date' or 'Unreleased', but not both.",
+
      "type": "string",
+
      "autovalue": "yes"
+
    }
+
  }
+
}
+
</templatedata>
+
Template adapted from TCRF, who in turn took it from Sonic Retro.
+
</noinclude>
+

Latest revision as of 22:56, January 31, 2019