Difference between revisions of "CDROMID"

From Sega Retro

(reworked the template to require a parameter for discs that do not have text files, and added usage instructions)
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{#ifeq:{{{noabs|}}}|yes|This disc has no abstract file.<br/>|{{#if:{{{abs|}}}{{{absblank|}}}|{{TextFile|filename=Abstract ({{{absname|ABS.TXT}}})|blankfile={{{absblank|}}}|{{{abs|}}}}}|{{red|This disc needs to be checked for an abstract text file.}}[[Category:Missing CD-ROM identifier]]<br/>}}}}
+
<includeonly>{{#ifeq:{{{noabs|}}}|yes|This disc has no abstract file.<br/>|{{#if:{{{abs|}}}{{{absblank|}}}|{{TextFile|filename=Abstract ({{#if:{{{absname|}}}|{{{absname|}}}|ABS.TXT}})|blankfile={{{absblank|}}}|{{{abs|}}}}}|{{red|This disc needs to be checked for an abstract text file.}}[[Category:Missing CD-ROM identifier]]<br/>}}}}
{{#ifeq:{{{nobib|}}}|yes|This disc has no bibliography file.<br/>|{{#if:{{{bib|}}}{{{bibblank|}}}|{{TextFile|filename=Bibliography ({{{bibname|BIB.TXT}}})|blankfile={{{bibblank|}}}|{{{bib|}}}}}|{{red|This disc needs to be checked for a bibliography text file.}}[[Category:Missing CD-ROM identifier]]<br/>}}}}
+
{{#ifeq:{{{nobib|}}}|yes|This disc has no bibliography file.<br/>|{{#if:{{{bib|}}}{{{bibblank|}}}|{{TextFile|filename=Bibliography ({{#if:{{{bibname|}}}|{{{bibname|}}}|BIB.TXT}})|blankfile={{{bibblank|}}}|{{{bib|}}}}}|{{red|This disc needs to be checked for a bibliography text file.}}[[Category:Missing CD-ROM identifier]]<br/>}}}}
{{#ifeq:{{{nocpy|}}}|yes|This disc has no copyrights file.<br/>|{{#if:{{{cpy|}}}{{{cpyblank|}}}|{{TextFile|filename=Copyrights ({{{cpyname|CPY.TXT}}})|blankfile={{{cpyblank|}}}|{{{cpy|}}}}}|{{red|This disc needs to be checked for a copyrights text file.}}[[Category:Missing CD-ROM identifier]]<br/>}}}}</includeonly><noinclude>[[Category:Templates]]Template for listing the contents of [[PC content#CD-ROM identifiers|CD-ROM identifier]] text files (abstract, bibliography and copyrights) located on the PC-readable portions of [[Mega-CD]], [[Saturn]] and [[Dreamcast]] discs. For use on [[:Category:Game technical information|technical information]] sub-pages.
+
{{#ifeq:{{{nocpy|}}}|yes|This disc has no copyrights file.<br/>|{{#if:{{{cpy|}}}{{{cpyblank|}}}|{{TextFile|filename=Copyrights ({{#if:{{{cpyname|}}}|{{{cpyname|}}}|CPY.TXT}})|blankfile={{{cpyblank|}}}|{{{cpy|}}}}}|{{red|This disc needs to be checked for a copyrights text file.}}[[Category:Missing CD-ROM identifier]]<br/>}}}}</includeonly><noinclude>[[Category:Templates]]Template for listing the contents of [[PC content#CD-ROM identifiers|CD-ROM identifier]] text files (abstract, bibliography and copyrights) located on the PC-readable portions of [[Mega-CD]], [[Saturn]] and [[Dreamcast]] discs. For use on [[:Category:Game technical information|technical information]] sub-pages.
  
 
==Usage==
 
==Usage==
The following parameters define the filenames of the text files. If they are not used, the template will default to "<tt>ABS.TXT</tt>", "<tt>BIB.TXT</tt>" and "<tt>CPY.TXT</tt>" respectively:
+
The following parameters define the filenames of the text files. If they are not used or left blank, the template will default to "<tt>ABS.TXT</tt>", "<tt>BIB.TXT</tt>" and "<tt>CPY.TXT</tt>" respectively:
 
<pre>| absname=
 
<pre>| absname=
 
| bibname=
 
| bibname=

Latest revision as of 21:23, 2 August 2024

Template for listing the contents of CD-ROM identifier text files (abstract, bibliography and copyrights) located on the PC-readable portions of Mega-CD, Saturn and Dreamcast discs. For use on technical information sub-pages.

Usage

The following parameters define the filenames of the text files. If they are not used or left blank, the template will default to "ABS.TXT", "BIB.TXT" and "CPY.TXT" respectively:

| absname=
| bibname=
| cpyname=


The raw contents of the text files should be copied from the files and pasted into the respective fields:

| abs=
| bib=
| cpy=


If one or more of the text files are blank, use the following parameters accordingly:

| absblank=yes
| bibblank=yes
| cpyblank=yes


If a disc does not have one or more text files, do not use the above parameters and instead use the following parameters accordingly:

| noabs=yes
| nobib=yes
| nocpy=yes

Example

{{CDROMID
| noabs=yes
| bibname=BIBLIOGR.TXT
| cpyname=COPYRIGH.TXT
| bibblank=yes
| cpy=(C) SOTSU AGENCY.SUNRISE  (C) BANDAI 1999

}}


This disc has no abstract file.

Bibliography (BIBLIOGR.TXT) contents (blank file) 

Copyrights (COPYRIGH.TXT) contents 
(C) SOTSU AGENCY.SUNRISE  (C) BANDAI 1999