Difference between revisions of "Template:Prototype"

From Hidden Palace
Jump to: navigation, search
m
 
(34 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"
| {{#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  = {{#if: {{{screenwidth|}}} | {{{screenwidth}}} | }}
+
 
| 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: {{{builddate|}}} | {{!}}'''Build date''' {{!}}{{!}} {{{builddate}}}
+
{{ #if: {{{date|}}} | {{!}}'''Date''' {{!}}{{!}} {{{date}}}
 
{{!}}- | }}
 
{{!}}- | }}
{{ #if: {{{buildname|}}} | {{!}}'''Build name''' {{!}}{{!}} {{{buildname}}}
+
{{ #if: {{{version|}}} | {{!}}'''Version''' {{!}}{{!}} {{{version}}}
 
{{!}}- | }}
 
{{!}}- | }}
{{ #if: {{{status|}}} | {{!}}'''Status''' {{!}}{{!}} {{{status}}}
+
{{ #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: {{{dumper|}}} | {{!}}'''Dumped by''' {{!}}{{!}} {{{dumper}}}
+
{{ #if: {{{status|}}} | {{!}}'''Dump status''' {{!}}{{!}} [[Has status::{{{status}}}]]
 +
{{!}}- | }}
 +
{{ #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'''
 +
{{!}} style="padding-top: 14px" {{!}} {{{origin_type}}}
 +
{{!}}- | }}
 +
{{ #if: {{{origin_lot|}}} | {{!}}'''Lot''' {{!}}{{!}} [[Has origin lot::{{{origin_lot}}}]]
 +
{{!}}- | }}
 +
{{ #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'''
 
{{ #if: {{{game|}}} | {{!}} style="padding-top: 14px" {{!}}'''Game'''
{{!}} style="padding-top: 14px" {{!}} {{{game}}} [[Category:{{{game}}} prototypes]]
+
{{!}} style="padding-top: 14px" {{!}} [[Has game::{{{game}}}]] [[Category:{{{game}}} prototypes]]
 
{{!}}- | }}
 
{{!}}- | }}
{{ #if: {{{system|}}} | {{!}}'''System''' {{!}}{{!}} {{system|{{{system}}}}}
+
{{ #if: {{{name|}}} | {{!}} style="padding-top: 14px" {{!}}'''Name'''
 +
{{!}} style="padding-top: 14px" {{!}} {{{name}}}
 
{{!}}- | }}
 
{{!}}- | }}
{{ #if: {{{genre|}}} | {{!}}'''Genre''' {{!}}{{!}} {{{genre}}}
+
{{ #if: {{{system|}}} | {{!}}'''System''' {{!}}{{!}} {{ #if: {{{game|}}} | {{system|{{{system}}}}} | {{{system}}} }} [[Has system::{{{system}}}| ]]
 
{{!}}- | }}
 
{{!}}- | }}
{{ #if: {{{final_builddate|}}} | {{!}}'''Final build''' {{!}}{{!}} {{{final_builddate}}}
+
{{ #if: {{{genre|}}} | {{!}}'''Genre''' {{!}}{{!}} [[Has genre::{{{genre}}}]]
 
{{!}}- | }}
 
{{!}}- | }}
{{ #if: {{{release_date|}}} | {{!}}'''Release&nbsp;date''' {{!}}{{!}} {{{release_date}}}
+
{{ #if: {{{final_builddate|}}} | {{!}}'''Final build''' {{!}}{{!}} [[Has final build date::{{{final_builddate}}}]]
 
{{!}}- | }}
 
{{!}}- | }}
{{ #if: {{{unreleased|}}} | {{!}}'''Release&nbsp;date''' {{!}}{{!}} Unreleased
+
{{ #if: {{{release_date|}}} | {{!}}'''Release&nbsp;date''' {{!}}{{!}} [[Has final release date::{{{release_date}}}]]
 
{{!}}- | }}
 
{{!}}- | }}
 +
{{ #switch: {{{unreleased|}}} | yes | Yes = {{!}}'''Release&nbsp;date''' {{!}}{{!}} Unreleased [[Category:Unreleased game prototypes]] [[Is unreleased::true| ]]
 +
{{!}}- | [[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": "{{subst:PAGENAME}}_Title.png",
+
      "required": false,
+
      "suggested": true
+
    }
+
  }
+
}</templatedata>
+
Template adapted from TCRF, who in turn took it from Sonic Retro.
+
</noinclude>
+

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