Template:Infobox mission: Difference between revisions

No edit summary
No edit summary
Line 2: Line 2:
{{pipe}}- style="margin:0;"
{{pipe}}- style="margin:0;"
!colspan="2" style="text-align: center;"{{pipe}}<small>MISSION</small><br /><span class="fn" style="font-size:18px;">{{{name|{{PAGENAME}}}}}</span>
!colspan="2" style="text-align: center;"{{pipe}}<small>MISSION</small><br /><span class="fn" style="font-size:18px;">{{{name|{{PAGENAME}}}}}</span>
{{#if:{{{image|}}}|
{{#if:{{{image|}}}|
{{pipe}}-
{{pipe}}-
{{pipe}} colspan="2" align="center"{{pipe}}[[Image:{{{image}}}|{{#if:{{{size|}}}|{{{size|}}}|200px}}|center]]{{#if:{{{caption|}}}|<div style="line-height:1.25em;">{{{caption}}}</div>|}}|}}
{{pipe}} colspan="2" align="center"{{pipe}}[[Image:{{{image}}}|{{#if:{{{size|}}}|{{{size|}}}|200px}}|center]]{{#if:{{{caption|}}}|<div style="line-height:1.25em;">{{{caption}}}</div>|}}|}}
{{pipe}}- valign="top"
{{pipe}}- valign="top"
! style="text-align:right;"{{pipe}}Game:
! style="text-align:right;"{{pipe}}Game:
|{{#ifeq: {{{game|}}} | IV| [[Grand Theft Auto IV]]}}{{#ifeq: {{{game|}}} | VCS | [[Grand Theft Auto: Vice City Stories]]}}{{#ifeq: {{{game|}}} | LCS | [[Grand Theft Auto: Liberty City Stories]]}}{{#ifeq: {{{game|}}} | A | [[Grand Theft Auto Advance]]}}{{#ifeq: {{{game|}}} | SA | [[Grand Theft Auto: San Andreas]]}}{{#ifeq: {{{game|}}} | VC | [[Grand Theft Auto: Vice City]]}}{{#ifeq: {{{game|}}} | III | [[Grand Theft Auto III]]}}{{#ifeq: {{{game|}}} | 2 | [[Grand Theft Auto 2]]}}{{#ifeq: {{{game|}}} | L1961 | [[Grand Theft Auto: London 1961]]}}{{#ifeq: {{{game|}}} | L1969 | [[Grand Theft Auto: London 1969]]}}{{#ifeq: {{{game|}}} | GTA1 | [[Grand Theft Auto 1]]}}{{#ifeq: {{{game|}}} | TLAD| [[The Lost and Damned]]}}{{#ifeq: {{{game|}}} | CW | [[Grand Theft Auto: Chinatown Wars]]}}
|{{#ifeq: {{{game|}}} | IV| [[Grand Theft Auto IV]]}}{{#ifeq: {{{game|}}} | VCS | [[Grand Theft Auto: Vice City Stories]]}}{{#ifeq: {{{game|}}} | LCS | [[Grand Theft Auto: Liberty City Stories]]}}{{#ifeq: {{{game|}}} | A | [[Grand Theft Auto Advance]]}}{{#ifeq: {{{game|}}} | SA | [[Grand Theft Auto: San Andreas]]}}{{#ifeq: {{{game|}}} | VC | [[Grand Theft Auto: Vice City]]}}{{#ifeq: {{{game|}}} | III | [[Grand Theft Auto III]]}}{{#ifeq: {{{game|}}} | 2 | [[Grand Theft Auto 2]]}}{{#ifeq: {{{game|}}} | L1961 | [[Grand Theft Auto: London 1961]]}}{{#ifeq: {{{game|}}} | L1969 | [[Grand Theft Auto: London 1969]]}}{{#ifeq: {{{game|}}} | GTA1 | [[Grand Theft Auto 1]]}}{{#ifeq: {{{game|}}} | TLAD| [[The Lost and Damned]]}}{{#ifeq: {{{game|}}} | CW | [[Grand Theft Auto: Chinatown Wars]]|}}
{{#if: {{{for|}}}|
{{#if: {{{for|}}}|
{{pipe}}-
{{pipe}}-
!style="text-align:right;"{{pipe}}For:
!style="text-align:right;"{{pipe}}For:
{{pipe}}{{{for|}}}|}}
{{pipe}}{{{for|}}}|
{{pipe}}-
}}
{{#if: {{{location|}}}|
{{#if: {{{location|}}}|
{{pipe}}-
{{pipe}}-
!style="text-align:right;"{{pipe}}Location:
!style="text-align:right;"{{pipe}}Location:
{{pipe}}{{{location|}}}|}}
{{pipe}}{{{location|}}}|
{{pipe}}-
}}
{{#if: {{{target|}}}|
{{#if: {{{target|}}}|
{{pipe}}-
{{pipe}}-
!style="text-align:right;"{{pipe}}Target:
!style="text-align:right;"{{pipe}}Target:
{{pipe}}{{{target|}}}|}}
{{pipe}}{{{target|}}}|
{{pipe}}-
}}
{{#if: {{{reward|}}}|
{{#if: {{{reward|}}}|
{{pipe}}-
{{pipe}}-
!style="text-align:right;"{{pipe}}Reward:
!style="text-align:right;"{{pipe}}Reward:
{{pipe}}{{{reward|}}}|}}
{{pipe}}{{{reward|}}}|
{{pipe}}-
}}
{{#if: {{{unlocks|}}}|
{{#if: {{{unlocks|}}}|
{{pipe}}-
{{pipe}}-
!style="text-align:right;"{{pipe}}Unlocks:
!style="text-align:right;"{{pipe}}Unlocks:
{{pipe}}{{{unlocks|}}}|}}
{{pipe}}{{{unlocks|}}}|
{{pipe}}-
}}
{{#if: {{{unlockedby|}}}|
{{#if: {{{unlockedby|}}}|
{{pipe}}-
{{pipe}}-
!style="text-align:right;"{{pipe}}Unlocked By:
!style="text-align:right;"{{pipe}}Unlocked By:
{{pipe}}{{{unlockedby|}}}|}}
{{pipe}}{{{unlockedby|}}}|
{{pipe}}-
}}
{{#if: {{{fail|}}}|
{{#if: {{{fail|}}}|
{{pipe}}-
{{pipe}}-
!style="text-align:right;"{{pipe}}Fail Conditions:
!style="text-align:right;"{{pipe}}Fail Conditions:
{{pipe}}{{{fail|}}}|}}
{{pipe}}{{{fail|}}}|
{{pipe}}-
}}
|}<noinclude>
|}<noinclude>


:'''Warning:''' There is a problem with this template. We have fixed the problem with HTML not working inside parserfunctions (IF statements) by using wikimarkup for the table, and using [[Template:Pipe]] instead of the pipe marker | for those tables (so that it is not mistaken to be the elseif), so we do not need to use Tidy (which breaks half the site). We're still working on a couple of aesthetic issues but these should be eliminated shortly.
:'''Warning:''' There is a problem with this template. We have fixed the problem with HTML not working inside parserfunctions (IF statements) by using wikimarkup for the table, and using [[Template:Pipe]] instead of the pipe marker | for those tables (so that it is not mistaken to be the elseif), so we do not need to use Tidy (which breaks half the site). We're still working on a couple of aesthetic issues but these should be eliminated shortly.


Usage - example here is [[Slacker]].
Usage - example here is [[Slacker]].
Line 50: Line 61:


'''Each instance of this infobox MUST have the game specified'''
'''Each instance of this infobox MUST have the game specified'''
<pre>
<pre>
{{infobox mission
{{infobox mission

Revision as of 06:35, 9 December 2009

MISSION
Infobox mission
Game:
Warning: There is a problem with this template. We have fixed the problem with HTML not working inside parserfunctions (IF statements) by using wikimarkup for the table, and using Template:Pipe instead of the pipe marker | for those tables (so that it is not mistaken to be the elseif), so we do not need to use Tidy (which breaks half the site). We're still working on a couple of aesthetic issues but these should be eliminated shortly.

Usage - example here is Slacker.

Games IDs are: GTA1, GTA2, L1969, L1961, III, VC, SA, A, LCS, VCS, IV, TLAD, CW. Add your own links for target, for, location, reward and unlocks as necessary.

Image size will default to 200x200px, but if the image you use is smaller than this, you should specify its natural width. Do NOT allow images to be expanded.

Each instance of this infobox MUST have the game specified

{{infobox mission
|name=Slacker
|game=LCS
|image=VincenzoCilliGTALCS.jpg
|size=180px
|caption=Vincenzo Cilli
|for=Vincenzo Cilli
|target=Leones dealer
|location=Atlantic Quays; St Marks; Chinatown
|reward=$100
|unlocks=[[Dealing Revenge]]
|unlockedby=N/A
|fail=Player Character Death
}}

produces:

MISSION
Slacker
File:VincenzoCilliGTALCS.jpg
Vincenzo Cilli
Game: Grand Theft Auto: Liberty City Stories
For: Vincenzo Cilli
Location: Atlantic Quays; St Marks; Chinatown
Target: Leones dealer
Reward: $100
Unlocks: Dealing Revenge
Unlocked By: N/A
Fail Conditions: Player Character Death