Actions

Template

Difference between revisions of "UnusedTable"

From Sonic Retro

m
 
(6 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{|class="prettytable"
+
<includeonly>{{#vardefine:ids|{{{ids|}}}}}{{#vardefine:offsets|{{{offsets|}}}}}
!Art
+
{|class="prettytable" style="width:auto"
 +
!{{{type|}}}{{#ifeq:{{#var:ids}}|yes|
 +
!!ID}}{{#ifeq:{{#var:offsets}}|yes|
 +
!!Offset}}
 
!Description
 
!Description
 
|-
 
|-
 
{{{1|}}}
 
{{{1|}}}
|}</includeonly><noinclude>
+
|}[[Category:Hidden content]]</includeonly><noinclude>
 
Template for displaying unused content in a table.
 
Template for displaying unused content in a table.
  
<pre>{{UnusedTable|
+
==Usage==
 +
<pre>{{UnusedTable|type=|ids=yes|offsets=yes|
 
{{UnusedRow
 
{{UnusedRow
| sprite=
+
| content=
 +
| id=
 +
| offset=
 
| desc=
 
| desc=
 
}}
 
}}
 
}}</pre>
 
}}</pre>
  
{{UnusedTable|
+
The "<tt>type</tt>" variable is for defining what type of content is unused, such as "Art", "Audio" or "Model", and is required.
 +
 
 +
The "<tt>ids</tt>" and "<tt>offsets</tt>" variables are optional. If neither are needed, omit "<tt>ids=yes</tt>" and "<tt>offsets=yes</tt>".
 +
 
 +
==Examples==
 +
{{UnusedTable|type=Art|
 
{{UnusedRow
 
{{UnusedRow
| sprite={{SpriteImage|Aquatic ruin door.png}}
+
| content={{SpriteImage|Aquatic ruin door.png}}
 
| desc=Unused door barriers from [[Aquatic Ruin Zone]].
 
| desc=Unused door barriers from [[Aquatic Ruin Zone]].
 
}}
 
}}
 
}}
 
}}
  
[[Category:Sonic Retro templates]]</noinclude>
+
{{UnusedTable|type=Audio|ids=yes|
 +
{{UnusedRow
 +
| content=[[File:SonicChaos GG SoundCode08EH.ogg]]
 +
| id=08EH
 +
| desc=Sound code '''08EH''' in the sound test is a short jingle that is not used in either version.
 +
}}
 +
}}
 +
 
 +
==Tests==
 +
{{UnusedTable|type=Art|
 +
{{UnusedRow
 +
| content={{SpriteImage|Sonic3K MD Sprite Monitors.png|crop_width=28}}
 +
| desc=A blank monitor that harms the player when broken. Set a monitor subtype to {{hex|00}} to view it in-game.
 +
}}
 +
}}
 +
{{UnusedTable|type=Art|ids=yes|
 +
{{UnusedRow
 +
| content={{SpriteImage|Sonic3K MD Sprite Monitors.png|crop_width=28}}
 +
| id=1
 +
| desc=A blank monitor that harms the player when broken. Set a monitor subtype to {{hex|00}} to view it in-game.
 +
}}
 +
}}
 +
{{UnusedTable|type=Art|offsets=yes|
 +
{{UnusedRow
 +
| content={{SpriteImage|Sonic3K MD Sprite Monitors.png|crop_width=28}}
 +
| offset=2
 +
| desc=A blank monitor that harms the player when broken. Set a monitor subtype to {{hex|00}} to view it in-game.
 +
}}
 +
}}
 +
{{UnusedTable|type=Art|ids=yes|offsets=yes|
 +
{{UnusedRow
 +
| content={{SpriteImage|Sonic3K MD Sprite Monitors.png|crop_width=28}}
 +
| id=1
 +
| offset=2
 +
| desc=A blank monitor that harms the player when broken. Set a monitor subtype to {{hex|00}} to view it in-game.
 +
}}
 +
}}
 +
[[Category:Templates]]</noinclude>

Latest revision as of 14:39, 4 December 2022

Template for displaying unused content in a table.

Usage

{{UnusedTable|type=|ids=yes|offsets=yes|
{{UnusedRow
| content=
| id=
| offset=
| desc=
}}
}}

The "type" variable is for defining what type of content is unused, such as "Art", "Audio" or "Model", and is required.

The "ids" and "offsets" variables are optional. If neither are needed, omit "ids=yes" and "offsets=yes".

Examples

Art Description
Aquatic ruin door.png
Unused door barriers from Aquatic Ruin Zone.


Audio ID Description
08EH Sound code 08EH in the sound test is a short jingle that is not used in either version.

Tests

Art Description
Sonic3K MD Sprite Monitors.png
A blank monitor that harms the player when broken. Set a monitor subtype to 00 to view it in-game.
Art ID Description
Sonic3K MD Sprite Monitors.png
1 A blank monitor that harms the player when broken. Set a monitor subtype to 00 to view it in-game.
Art Offset Description
Sonic3K MD Sprite Monitors.png
2 A blank monitor that harms the player when broken. Set a monitor subtype to 00 to view it in-game.
Art ID Offset Description
Sonic3K MD Sprite Monitors.png
1 2 A blank monitor that harms the player when broken. Set a monitor subtype to 00 to view it in-game.