Template:Infobox mission: Difference between revisions

No edit summary
No edit summary
 
(27 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{| class="infobox" style="width:22em; font-size:90%; text-align:left;" cellspacing="2"
<includeonly>{{infobox
{{pipe}}- style="margin:0;"
|name        =
!colspan="2" style="text-align: center;"{{pipe}}<small>MISSION</small><br /><span class="fn" style="font-size:18px;">{{{name|{{PAGENAME}}}}}</span>
|bodystyle    = background-color: #F0F0FA;
{{#if:{{{image|}}}|
|title        = Mission
{{pipe}}-
|titlestyle  = font-size: 90%;
{{pipe}} colspan="2" align="center"{{pipe}}[[Image:{{{image}}}|{{#if:{{{size|}}}|{{{size|}}}|200px}}|center]]{{#if:{{{caption|}}}|<div style="line-height:1.25em;">{{{caption}}}</div>|}}|}}
text-transform: uppercase;
{{pipe}}- valign="top"
background-color: #EEE;
! style="text-align:right;"{{pipe}}Game:
border: 1px solid #AAA;
|{{#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]]|}}
border-bottom: none;  
{{#if: {{{for|}}}|
|above = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
{{pipe}}-
|abovestyle = font-size: 150%;
!style="text-align:right;"{{pipe}}For:
{{pipe}}{{{for|}}}|
{{pipe}}-
}}
{{#if: {{{location|}}}|
{{pipe}}-
!style="text-align:right;"{{pipe}}Location:
{{pipe}}{{{location|}}}|
{{pipe}}-
}}
{{#if: {{{target|}}}|
{{pipe}}-
!style="text-align:right;"{{pipe}}Target:
{{pipe}}{{{target|}}}|
{{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}}-
}}
{{#if: {{{fail|}}}|
{{pipe}}-
!style="text-align:right;"{{pipe}}Conditions of mission failure:
{{pipe}}{{{fail|}}}|
{{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.
|image        = {{#if:{{{image|}}}|[[File:{{{image}}}|{{#if:{{{size|}}}|{{{size|}}}|170px}}|center|{{{caption}}}]]}}
|imagestyle  = {{{imagestyle|}}}
|caption      = {{{caption|}}}
|captionstyle = {{{captionstyle|}}}


Usage - example here is [[Slacker]].
|headerstyle  = background:#444; color: #fff;
|labelstyle  = background:#ddd;
|datastyle    =


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


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.
|label1  = Game
|data1  = {{gameselect|{{{game|}}}}}{{#IFEXIST: {{game|{{{game|}}}}} | [[Category:Missions in {{game|{{{game|}}}}}]] | [[Category:Fix Games]]}}


'''Each instance of this infobox MUST have the game specified'''
|label2  = Protagonist
<pre>
|data2  = {{{protagonist|}}}
{{infobox mission
 
|name=Slacker
|label3  = For
|game=LCS
|data3  = {{{for|}}}
|image=VincenzoCilliGTALCS.jpg
 
|size=180px
|label4  = Objective
|caption=Vincenzo Cilli
|data4  = {{{objective|}}}
|for=Vincenzo Cilli
 
|target=Leones dealer
|label5  = Target
|location=Atlantic Quays; St Marks; Chinatown
|data5  = {{{target|}}}
|reward=$100
 
|unlocks=[[Dealing Revenge]]
|label6  = Location
|unlockedby=N/A
|data6  = {{{location|}}}
|fail=Player Character Death
 
}}
|label7  = Fail
</pre>
|data7  = {{{fail|}}}
produces:
 
{{infobox mission
|label8  = Reward
|name=Slacker
|data8  = {{{reward|}}}
|game=LCS
 
|image=VincenzoCilliGTALCS.jpg
|label9  = Unlocks
|size=180px
|data9  = {{{unlocks|}}}
|caption=Vincenzo Cilli
 
|for=Vincenzo Cilli
|label10  = Unlocked by
|target=Leones dealer
|data10  = {{{unlockedby|}}}
|location=Atlantic Quays; St Marks; Chinatown
 
|reward=$100
|label11  = Time Limit
|unlocks=[[Dealing Revenge]]
|data11  = {{{timelimit|}}}
|unlockedby=N/A
 
|fail=Player Character Death}}
|label12  = Achievements
</noinclude><noinclude>
|data12  = {{{achievements|}}}
[[category:infoboxes]]
 
[[Category:Templates|{{PAGENAME}}]]</noinclude>
|label13  = Special Vehicles
|data13  = {{{vehicles|}}}
 
|label14  = Deaths
|data14  = {{{deaths|}}}
 
}}</includeonly><noinclude>{{doc}}
[[Category:Infobox Templates]]
</noinclude>

Latest revision as of 19:18, 2 July 2014

This documentation is imported from Template:Infobox mission/doc

This is an infobox to go at the top of every mission article.

This code should be placed at the very top of the page.

As well as displaying data, it also sets some semantic properties and also automatically sets the category 'Missions in [game]"

Make sure every possible field is filled in:

{{infobox mission
| image = Image-Name-Only.jpg
| caption = Caption for image
| name = Name of Mission
| game = VC
| protagonist = Which GTA V protagonist is this for?
| for = [[Victor Vance|Vic Vance]]
| objective = A short description of the objective
| target = [[Vice City Mall]]
| location = [[Starfish Island]]
| fail = Death
| reward = $20,000
| unlocks = [[VCPD Cheetah]]<br>[[Keep Your Friends Close...]]
| unlockedby = [[Cap the Collector]]
| timelimit = 5 minutes
| achievements = 
| vehicles = List of special vehicles involved in the mission
| deaths = List of named characters that die or ''can die'' in the mission
}}