Template:Infobox mission: Difference between revisions

(warning)
No edit summary
 
(55 intermediate revisions by 9 users not shown)
Line 1: Line 1:
<includeonly><table class="infobox" style="width:22em; font-size:90%; text-align:left;" cellspacing="2">
<includeonly>{{infobox
<tr style="margin:0;"><th colspan="2" style="text-align: center;"><small>MISSION</small><br /><span class="fn" style="font-size:18px;">{{{name|{{PAGENAME}}}}}</span>
|name        =
</th></tr>
|bodystyle    = background-color: #F0F0FA;
{{#if:{{{image|}}}|
|title        = Mission
<tr><td colspan="2" align="center">[[Image:{{{image}}}|{{#if:{{{size|}}}|{{{size|}}}|200px}}|center]]{{#if:{{{caption|}}}|<div style="line-height:1.25em;">{{{caption}}}</div>|}}</td></tr>
|titlestyle  = font-size: 90%;
|}}
text-transform: uppercase;
{{#if:{{{game|}}}|
background-color: #EEE;
<tr valign="top"><th style="text-align:right;">Game</th><td>{{#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|}}} | SA | [[Grand Theft Auto: San Andreas]]}}{{#ifeq: {{{game|}}} | VC | [[Grand Theft Auto: Vice City]]}}{{#ifeq: {{{game|}}} | III | [[Grand Theft Auto: III]]}}{{#ifeq: {{{game|}}} | GTA2 | [[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]]}}</td></tr>
border: 1px solid #AAA;
|}}
border-bottom: none;  
{{#if: {{{for|}}}|
|above = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
<tr valign="top"><th style="text-align:right;">For</th><td>[[{{{for}}}]]</td></tr>
|abovestyle = font-size: 150%;
|}}
{{#if: {{{location|}}}|
<tr valign="top"><th style="text-align:right;">Location</th><td>{{{location}}}</td></tr>
|}}
{{#if: {{{target|}}}|
<tr valign="top"><th style="text-align:right;">Target</th><td>{{{target}}}</td></tr>
|}}
{{#if: {{{reward|}}}|
<tr valign="top"><th style="text-align:right;">Reward</th><td>{{{reward}}}</td></tr>
|}}
{{#if: {{{unlocks|}}}|
<tr valign="top"><th style="text-align:right;">Unlocks</th><td>{{{unlocks}}}</td></tr>
|}}
</table></includeonly><noinclude>


:'''Warning:''' There is a problem with this template. HTML inside parserfunctions (IF statements) will not come through. We enabled $wgUseTidy to combat this, but that upsets the layout of the site (logo and navigation appears inside content box), so this has been reverted. This means that this template will not function until either a cure is found for $wgUseTidy, or if the HTML tables are converted to wikimarkup. Please leave this template on the pages it is on, and they will automatically be fixed when the template is fixed.
|image        = {{#if:{{{image|}}}|[[File:{{{image}}}|{{#if:{{{size|}}}|{{{size|}}}|170px}}|center|{{{caption}}}]]}}
|imagestyle  = {{{imagestyle|}}}
|caption      = {{{caption|}}}
|captionstyle = {{{captionstyle|}}}


|headerstyle  = background:#444; color: #fff;
|labelstyle  = background:#ddd;
|datastyle    =


Usage - example is [[Slacker]].
|header1 =


Games IDs are: <code>GTA1, GTA2, L1969, L1961, III, VC, SA, LCS, VCS, IV</code>. All other ''names'' should be linkable, eg [[Slacker]] and [[Vincenzo Cilli]] - use a normal link but without the square brackets, eg <code>page|name</code>. Add your own links for target, location, reward and unlocks
|label1  = Game
|data1  = {{gameselect|{{{game|}}}}}{{#IFEXIST: {{game|{{{game|}}}}} | [[Category:Missions in {{game|{{{game|}}}}}]] | [[Category:Fix Games]]}}


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.
|label2  = Protagonist
|data2  = {{{protagonist|}}}


<pre>
|label3  = For
{{infobox mission
|data3  = {{{for|}}}
|name=Slacker
 
|game=LCS
|label4  = Objective
|image=Cilli.gif
|data4  = {{{objective|}}}
|size=180px
 
|caption=Vincenzo Cilli
|label5  = Target
|for=Vincenzo Cilli
|data5  = {{{target|}}}
|target=Leones dealer
 
|location=Atlantic Quays; St Marks; Chinatown
|label6  = Location
|reward=$100
|data6  = {{{location|}}}
|unlocks=[[Dealing Revenge]]
 
}}
|label7  = Fail
</pre>
|data7  = {{{fail|}}}
produces:
 
{{infobox mission
|label8  = Reward
|name=Slacker
|data8  = {{{reward|}}}
|game=LCS
 
|image=Cilli.gif
|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|}}}
}}
 
|label12  = Achievements
|data12  = {{{achievements|}}}
 
|label13  = Special Vehicles
|data13  = {{{vehicles|}}}
 
|label14  = Deaths
|data14  = {{{deaths|}}}
 
}}</includeonly><noinclude>{{doc}}
[[Category:Infobox Templates]]
</noinclude>
</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
}}