Template:Infobox game: Difference between revisions

From ALttPR Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
An infobox for a game and its metadata.
<noinclude>An infobox for a game and its metadata.
= Usage =
= Usage =
  <nowiki>{{Infobox game</nowiki>
  <nowiki>{{Infobox game</nowiki>
Line 6: Line 6:
  |crc  = &lt;!-- CRC for game file -->
  |crc  = &lt;!-- CRC for game file -->
  |srdc  = &lt;!-- SpeedRun.com game ID -->
  |srdc  = &lt;!-- SpeedRun.com game ID -->
  |srl  = &lt;!-- SRL game ID --><!--
  |srl  = &lt;!-- SRL game ID -->
  |srtv  = &lt;!-- SRTV game ID --> -->
  |srtv  = &lt;!-- SRTV game ID -->
  |rtgg  = &lt;!-- RT.GG game ID -->
  |rtgg  = &lt;!-- RT.GG game ID -->
  }}
  }}
{{#ifexist: [[Image:Infobox game example.png]] | [[Image:Infobox game example.png|right]] | }}
{{#ifexist: Image:Infobox game example.png | [[Image:Infobox game example.png|right]] | }}</noinclude>
<onlyinclude>{| class="wikitable" style="float:right;"
<includeonly>{| class="wikitable" style="float:right;"
|-
|-
! colspan="2" | {{{name|{{PAGENAME}}}}}
! colspan="2" | {{{name|{{PAGENAME}}}}}
|- {{#ifexist: [[Image:Infobox game {{{name|{{PAGENAME}}}}}.png]] | | style="display:none;" }}
|- {{#ifexist: Image:Infobox game {{{image|{{PAGENAME}}}}}.png | | style="display:none;" }}
! [[Image:Infobox game {{{name|{{PAGENAME}}}}}.png]]
! colspan="2" | [[Image:Infobox game {{{image|{{PAGENAME}}}}}.png]]
|- {{#if: {{{crc|}}} | | style="display:none; }}
|- {{#if: {{{crc|}}} | | style="display:none; }}
! CRC || <code>{{{crc}}}</code>
! CRC
| style="text-align:center;" | <code>{{{crc}}}</code>[[:Image:Infobox game {{{image|{{PAGENAME}}}}}.png|*]]
|- {{#if: {{{srdc|}}} | | style="display:none; }}
|- {{#if: {{{srdc|}}} | | style="display:none; }}
! Speedrun.com || [https://www.speedrun.com/{{{srdc}}} {{{srdc}}}]
! Speedrun.com
| [https://www.speedrun.com/{{{srdc}}} {{{srdc}}}]
|- {{#if: {{{srl|}}} | | style="display:none; }}
|- {{#if: {{{srl|}}} | | style="display:none; }}
! SpeedRunsLive || [https://www.speedrunslive.com/races/game/{{{srl}}} {{{srl}}}]
! SpeedRunsLive
| [https://www.speedrunslive.com/races/game/{{{srl}}} {{{srl}}}]
|- {{#if: {{{srtv|}}} | | style="display:none; }}
|- {{#if: {{{srtv|}}} | | style="display:none; }}
! SpeedRacing.TV || [https://www.speedracing.tv/{{{srtv}}} {{{srtv}}}]
! SpeedRacing.TV
| [https://www.speedracing.tv/games/{{{srtv}}} {{{srtv}}}]
|- {{#if: {{{rtgg|}}} | | style="display:none; }}
|- {{#if: {{{rtgg|}}} | | style="display:none; }}
! RaceTime.GG || [https://racetime.gg/{{{rtgg}}} {{{rtgg}}}]
! RaceTime.GG
|}</onlyinclude>
| [https://racetime.gg/{{{rtgg}}} {{{rtgg}}}]
{{Infobox game
|}</includeonly>
<noinclude>{{Infobox game
|name  = The Legend of Zelda: A Link to the Past
|name  = The Legend of Zelda: A Link to the Past
|crc  = 3322EFFC
|crc  = 3322EFFC
|srdc  = alttp
|srdc  = alttp
|srl  = alttp
|srl  = alttp
|srtv  = alttp
|rtgg  = alttp
|rtgg  = alttp
}}
}}
</noinclude>

Latest revision as of 03:10, 24 January 2024

An infobox for a game and its metadata.

Usage

{{Infobox game
|name  = <!-- Name of game/randomizer -->
|image = <!-- Image preview -->
|crc   = <!-- CRC for game file -->
|srdc  = <!-- SpeedRun.com game ID -->
|srl   = <!-- SRL game ID -->
|srtv  = <!-- SRTV game ID -->
|rtgg  = <!-- RT.GG game ID -->
}}


The Legend of Zelda: A Link to the Past
File:Infobox game Infobox game.png
CRC 3322EFFC*
Speedrun.com alttp
SpeedRunsLive alttp
SpeedRacing.TV alttp
RaceTime.GG alttp