Template:Infobox game: Difference between revisions

That actually ruined the template on some pages, and made some options visible when not needed :|
(Infobox updated using the portable infobox migration tool)
(That actually ruined the template on some pages, and made some options visible when not needed :|)
Line 1: Line 1:
<infobox>
{| class="roundy" style="float: right; padding: 2px; background: #8EB9DE; margin-left: 10px; {{roundy|10px}} margin-bottom: 10px; border: 2px solid #6B9BC2; width: 330px"
<data source="text"><label>text</label></data>
|- style="text-align:center"
<title source="name"><default>Rhythm Heaven</default></title>
| class="roundy" style="background: #BDDEFF;" {{roundy|5px}} colspan="2" | {{#if: {{{text|}}}|<span style="color:#FFF">}}<big>'''{{{name|Rhythm Heaven}}}'''</big>{{#if:{{{ensongname|Test}}}
<data source="ensongname"><label>ensongname</label><default>Test</default></data>
|<br><span lang="ja">'''{{{jname|リズム天国ゴールド}}}''' ''{{{rname|Rhythm Tengoku Gold}}}''</span> {{#if: {{{text|}}}|</span>}}|}}
<data source="jname"><label>jname</label><default>リズム天国ゴールド</default></data>
|- style="text-align:center;" style="background:#D891C3;
<data source="rname"><label>rname</label><default>Rhythm Tengoku Gold</default></data>
| class="roundy" {{roundy|2px}} style="background: #FFFFFF;" {{roundy|2px}} colspan="2" | {{{image}}}{{#if:{{{caption|}}}|<br><small>{{{caption}}}</small>}}
<image source="image"/>
|- style="text-align:center"
<data source="developer"><label>'''Developer(s)'''</label></data>
|-
<data source="publisher"><label>'''Publisher'''</label></data>
| class="roundybl" style="text-align:right; font-size:13px; {{roundy|2px}} background: #BDDEFF; padding-left: 6px; padding-right: 6px;" | '''Developer(s)'''
<data source="platform"><label>'''Platform'''</label></data>
| class="roundybr" style="background:#FFFFFF; font-size:13px; {{roundy|2px}} padding-left: 6px; padding-right: 6px;" | {{{developer}}}
<data source="release"><label>'''Release Date'''</label></data>
|-
<data source="rating"><label>'''Ratings'''</label></data>
| class="roundyleft" style="text-align:right; font-size:13px; {{roundy|2px}} background: #BDDEFF; padding-left: 6px; padding-right: 6px;" | '''Publisher'''
<data source="mode"><label>'''Mode'''</label></data>
| class="roundyright" style="background:#FFFFFF; font-size:13px; {{roundy|2px}} padding-left: 6px; padding-right: 6px;" | {{{publisher}}}
<data source="games"><label>'''Music Games'''</label></data>
|-
<data source="previous"><label>'''Previous'''</label></data>
| class="roundyleft" style="text-align:right; font-size:13px; {{roundy|2px}} background: #BDDEFF; padding-left: 6px; padding-right: 6px;" | '''Platform'''
<data source="next"><label>'''Next'''</label></data>
| class="roundyright" style="background:#FFFFFF; font-size:13px; {{roundy|2px}} padding-left: 6px; padding-right: 6px;" | {{{platform}}}
<data source="jpbox"><label>jpbox</label><default>no</default></data>
|-
</infobox>
| class="roundyleft" style="text-align:right; font-size:13px; {{roundy|2px}} background: #BDDEFF; padding-left: 6px; padding-right: 6px;" | '''Release Date'''
<noinclude>
| class="roundyright" style="background:#FFFFFF; font-size:13px; {{roundy|2px}} padding-left: 6px; padding-right: 6px;" | {{{release}}}
== Usage & preview ==
|-
Type in this:
| class="roundyleft" style="text-align:right; font-size:13px; {{roundy|2px}} background: #BDDEFF; padding-left: 6px; padding-right: 6px;" | '''Ratings'''
 
| class="roundyright" style="background:#FFFFFF; font-size:13px; {{roundy|2px}} padding-left: 6px; padding-right: 6px;" | {{{rating}}}
<pre>
|-
{{Infobox game
| class="roundyleft" style="text-align:right; font-size:13px; {{roundy|2px}} background: #BDDEFF; padding-left: 6px; padding-right: 6px;" | '''Mode'''
|text=
| class="roundyright" style="background:#FFFFFF; font-size:13px; {{roundy|2px}} padding-left: 6px; padding-right: 6px;" | {{{mode}}}
|name=
|-
|ensongname=
| class="roundyleft" style="text-align:right; font-size:13px; {{roundy|2px}} background: #BDDEFF; padding-left: 6px; padding-right: 6px;" | '''Music Games'''
|jname=
| class="roundyright" style="background:#FFFFFF; font-size:13px; {{roundy|2px}} padding-left: 6px; padding-right: 6px;" | {{{games}}}
|rname=
|-
|image=
| class="roundyleft" style="text-align:right; font-size:13px; {{roundy|2px}} background: #BDDEFF; padding-left: 6px; padding-right: 6px;" | '''Previous'''
|caption=
| class="roundyright" style="background:#FFFFFF; font-size:13px; {{roundy|2px}} padding-left: 6px; padding-right: 6px;" | {{{previous}}}
|developer=
|-
|publisher=
| class="roundyleft" style="text-align:right; font-size:13px; {{roundy|2px}} background: #BDDEFF; padding-left: 6px; padding-right: 6px;" | '''Next'''
|platform=
| class="roundyright" style="background:#FFFFFF; font-size:13px; {{roundy|2px}} padding-left: 6px; padding-right: 6px;" | {{{next}}}
|release=
|-
|rating=
{{#ifeq: {{{jpbox|no}}}|no||- style="text-align:center;" style="background:#D891C3;
|mode=
| class="roundy" {{roundy|2px}} style="background: #FFFFFF;" {{roundy|2px}} colspan="2" | {{{image}}}
|games=
{{!}}-}}
|previous=
|}
|next=
<noinclude>[[Category:infoboxes]]</noinclude><noinclude>
|jpbox=
<br clear="all">
}}
----
 
:
</pre>
 
to see this:
 
{{Infobox game
|text=This is a test
|name=This is a test
|ensongname=This is a test
|jname=This is a test
|rname=This is a test
|image=This is a test
|caption=This is a test
|developer=This is a test
|publisher=This is a test
|platform=This is a test
|release=This is a test
|rating=This is a test
|mode=This is a test
|games=This is a test
|previous=This is a test
|next=This is a test
|jpbox=This is a test
}}
 
 
[{{fullurl:{{ns:Template}}:{{PAGENAME}}}}?action=purge Click here to refresh the preview above]
</noinclude>
</noinclude>
94

edits