Wikia

GTA Wiki

Changes: Template:Infobox mission

Edit

Back to page

(Undo revision 384157 by ExtremoMania (talk))
 
(46 intermediate revisions by 10 users not shown)
Line 1: Line 1:
{| class="infobox" style="width:22em; font-size:90%; text-align:left;" cellspacing="2"
+
<infobox layout="tabular" theme="gta-with-subtitle">
{{pipe}}- style="margin:0;"
+
<data><label>Type</label><default>{{#ifeq: {{{sidemission|}}} | y | SIDE }} {{#if:{{#ifeq: {{{freaks|}}} | y | STRANGERS AND FREAKS }}|{{#ifeq: {{{freaks|}}} | y | STRANGERS AND FREAKS }}|MISSION}} {{#ifeq: {{{cutscene|}}} | y | CUTSCENE }}</default></data>
!colspan="2" style="text-align: center;"{{pipe}}<small>MISSION</small><br /><span class="fn" style="font-size:18px;">{{{name|{{PAGENAME}}}}}</span>
+
<title source="name"><default>{{PAGENAME}}</default></title>
{{#if:{{{image|}}}|
+
<image source="image"><caption source="caption"/></image>
{{pipe}}-
+
<data><label>Game</label><default>{{#if:{{{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|}}} | TBOGT| ''[[The Ballad of Gay Tony]]''}}{{#ifeq: {{{game|}}} | V | ''[[Grand Theft Auto V]]''}}{{#ifeq: {{{game|}}} | O | ''[[Grand Theft Auto Online]]''}}}}</default>
{{pipe}} colspan="2" align="center"{{pipe}}[[Image:{{{image}}}|{{#if:{{{size|}}}|{{{size|}}}|200px}}|center]]{{#if:{{{caption|}}}|<div style="line-height:1.25em;">{{{caption}}}</div>|}}|}}
+
</data>
{{pipe}}- valign="top"
+
<data source="for"><label>For</label></data>
! style="text-align:right;"{{pipe}}Game:
+
<data source="location"><label>Location</label></data>
|{{#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|}}} | TBOGT| [[The Ballad of Gay Tony]]}}{{#ifeq: {{{game|}}} | V | [[Grand Theft Auto V]]}}
+
<data source="protagonists"><label>Protagonist(s)</label></data>
{{#if: {{{for|}}}|
+
<data source="target"><label>Target</label></data>
{{pipe}}-
+
<data source="cost"><label>Set-up cost</label></data>
!style="text-align:right;"{{pipe}}For:
+
<data source="maxkillcount"><label>Maximum number of enemies to kill</label></data>
{{pipe}}{{{for|}}}|
+
<group>
{{pipe}}-
+
<header>Mission Objectives</header>
}}
+
<data source="todo"/>
{{#if: {{{location|}}}|
+
</group>
{{pipe}}-
+
<group>
!style="text-align:right;"{{pipe}}Location:
+
<header>Conditions of mission failure</header>
{{pipe}}{{{location|}}}|
+
<data source="fail"/>
{{pipe}}-
+
</group>
}}
+
<group>
{{#if: {{{target|}}}|
+
<header>Reward(s)</header>
{{pipe}}-
+
<data source="reward"/>
!style="text-align:right;"{{pipe}}Target:
+
</group>
{{pipe}}{{{target|}}}|
+
<data source="unlocks"><label>Unlocks</label></data>
{{pipe}}-
+
<data source="unlockedby"><label>Unlocked by</label></data>
}}
+
</infobox>
{{#if: {{{fail|}}}|
+
<noinclude>
{{pipe}}-
+
:'''Warning:''' This template uses new [[Help:PortableInfoboxes|infobox markup]]. If you spot any problems with it please leave a message on [http://community.wikia.com/wiki/Thread:841717 this forum thread].
!style="text-align:right;"{{pipe}}Conditions of mission failure:
 
{{pipe}}{{{fail|}}}|
 
{{pipe}}-
 
}}
 
{{#if: {{{reward|}}}|
 
{{pipe}}-
 
!style="text-align:right;"{{pipe}}Reward:
 
{{pipe}}{{{reward|}}}|
 
{{pipe}}-
 
}}
 
{{#if: {{{unlocks|}}}|
 
{{pipe}}-
 
!style="text-align:right;"{{pipe}}Unlocks:
 
{{pipe}}{{{unlocks|}}}|
 
{{pipe}}-
 
}}
 
{{#if: {{{unlockedby|}}}|
 
{{pipe}}-
 
!style="text-align:right;"{{pipe}}Unlocked by:
 
{{pipe}}{{{unlockedby|}}}|
 
{{pipe}}-
 
}}
 
|}<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.
 
   
 
Usage - example here is [[Slacker]].
 
Usage - example here is [[Slacker]].
   
Games IDs are: <code>GTA1, GTA2, L1969, L1961, III, VC, SA, A, LCS, VCS, IV, TLAD, CW, V</code>. Add your own links for target, for, location, reward and unlocks as necessary.
+
Games IDs are: <code>GTA1, GTA2, L1969, L1961, III, VC, SA, A, LCS, VCS, IV, TLAD, CW, TBOGT, V, O</code>. 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'''
 
'''Each instance of this infobox MUST have the game specified'''
 
<pre>
 
<pre>
 
{{infobox mission
 
{{infobox mission
  +
|sidemission = y (only use this when using the template for side missions)
  +
|cutscene = y (only use this when using the template for cutscene-only "missions")
  +
|freaks = y (only use this when using the template for strangers and freaks)
 
|name=Slacker
 
|name=Slacker
 
|game=LCS
 
|game=LCS
Line 43: Line 46:
 
|for=Vincenzo Cilli
 
|for=Vincenzo Cilli
 
|target=Leones dealer
 
|target=Leones dealer
  +
|maxkillcount = 5
  +
|todo={{BP}}Go to Leone dealer
  +
{{BP}}Go to Chinatown
 
|location=Atlantic Quays; St Marks; Chinatown
 
|location=Atlantic Quays; St Marks; Chinatown
|fail=Player Character Death
+
|fail={{BP}}Player Character Death
  +
{{BP}}Go to Chinatown
 
|reward=$100
 
|reward=$100
  +
|cost=$1
  +
|first=[[Leone Dealer (GTA LCS)|Unnamed Leone Dealer]]
  +
|last=[[Leone Dealer (GTA LCS)|Unnamed Leone Dealer]]
 
|unlocks=[[Dealing Revenge]]
 
|unlocks=[[Dealing Revenge]]
 
|unlockedby=N/A
 
|unlockedby=N/A
Line 58: Line 67:
 
|caption=Vincenzo Cilli
 
|caption=Vincenzo Cilli
 
|for=Vincenzo Cilli
 
|for=Vincenzo Cilli
|target=Leones dealer
+
|target= Leones dealer
  +
|maxkillcount = 5
  +
|todo={{BP}}Go to Leone dealer
  +
{{BP}}Go to Chinatown
 
|location=Atlantic Quays; St Marks; Chinatown
 
|location=Atlantic Quays; St Marks; Chinatown
  +
|cost=$1
 
|reward=$100
 
|reward=$100
  +
|first=[[Leone Dealer (GTA LCS)|Unnamed Leone Dealer]]
  +
|last=[[Leone Dealer (GTA LCS)|Unnamed Leone Dealer]]
 
|unlocks=[[Dealing Revenge]]
 
|unlocks=[[Dealing Revenge]]
 
|unlockedby=N/A
 
|unlockedby=N/A
|fail=Player Character Death}}
+
|fail= {{BP}}Player Character Death
  +
{{BP}}Leone dealer dies}}
 
</noinclude><noinclude>
 
</noinclude><noinclude>
 
[[category:infoboxes]]
 
[[category:infoboxes]]

Latest revision as of 18:38, June 22, 2015

Warning: This template uses new infobox markup. If you spot any problems with it please leave a message on this forum thread.

Usage - example here is Slacker.

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

Each instance of this infobox MUST have the game specified

{{infobox mission
|sidemission = y (only use this when using the template for side missions)
|cutscene = y (only use this when using the template for cutscene-only "missions")
|freaks = y (only use this when using the template for strangers and freaks)
|name=Slacker
|game=LCS
|image=VincenzoCilliGTALCS.jpg
|size=180px
|caption=Vincenzo Cilli
|for=Vincenzo Cilli
|target=Leones dealer
|maxkillcount = 5
|todo={{BP}}Go to Leone dealer
{{BP}}Go to Chinatown
|location=Atlantic Quays; St Marks; Chinatown
|fail={{BP}}Player Character Death
{{BP}}Go to Chinatown
|reward=$100
|cost=$1
|first=[[Leone Dealer (GTA LCS)|Unnamed Leone Dealer]]
|last=[[Leone Dealer (GTA LCS)|Unnamed Leone Dealer]]
|unlocks=[[Dealing Revenge]]
|unlockedby=N/A
}}

produces:

Around Wikia's network

Random Wiki