Template:Infobox mission: Difference between revisions

(New page: <includeonly><table class="infobox" style="width:{{{box_width|22em}}}; font-size:90%; text-align:left;" cellspacing="2"> <tr><th colspan="2" style="text-align: center;"><big class="fn">{{{...)
 
No edit summary
 
(70 intermediate revisions by 9 users not shown)
Line 1: Line 1:
<includeonly><table class="infobox" style="width:{{{box_width|22em}}}; font-size:90%; text-align:left;" cellspacing="2">
<includeonly>{{infobox
<tr><th colspan="2" style="text-align: center;"><big class="fn">{{{name|{{PAGENAME}}}}}</big></th></tr>
|name        =  
{{#if:{{{image|}}}|<tr><td colspan="2" align="center">[[Image:{{{image_name}}}|180x180px|center]] {{#if:{{{image_caption|}}}|<div style="line-height:1.25em;">{{{image_caption}}}</div>|}}|}}
|bodystyle    = background-color: #F0F0FA;
{{#if:{{{game|}}}
|title        = Mission
|<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>
|titlestyle  = font-size: 90%;
}}
text-transform: uppercase;
{{#if:{{{for|}}}
background-color: #EEE;
|<tr valign="top"><th style="text-align:right;">For</th> <td>[[{{{occupation}}}]]</td></tr>
border: 1px solid #AAA;
}}
border-bottom: none;
{{#if:{{{reward|}}}
|above = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
|<tr valign="top"><th style="text-align:right;">Reward</th> <td>{{{reward}}}</td></tr>
|abovestyle = font-size: 150%;
}}
{{#if:{{{unlocks|}}}
|<tr valign="top"><th style="text-align:right;">Unlocks</th> <td>{{{unlocks}}}</td></tr>
}}
</table></includeonly><noinclude>
Usage - example is [[Slacker]].


Games IDs are: <code>GTA1, GTA2, L1960, L1961, III, VC, SA, LCS, VCS, IV</code>. All other ''names'' should be linkable, eg [[Slacker]] and [[Vincenzo Cilli]].
|image        = {{#if:{{{image|}}}|[[File:{{{image}}}|{{#if:{{{size|}}}|{{{size|}}}|170px}}|center|{{{caption}}}]]}}
|imagestyle  = {{{imagestyle|}}}
|caption      = {{{caption|}}}
|captionstyle = {{{captionstyle|}}}


<pre>
|headerstyle  = background:#444; color: #fff;
{{infobox mission
|labelstyle  = background:#ddd;
|name=Slacker
|datastyle    =
|image=Image.jpg
 
|caption=Someone doing something
|header1 =
|game=LCS
 
|for=Vincenzo Cilli
|label1  = Game
|reward=$100
|data1  = {{gameselect|{{{game|}}}}}{{#IFEXIST: {{game|{{{game|}}}}} | [[Category:Missions in {{game|{{{game|}}}}}]] | [[Category:Fix Games]]}}
|unlocks=[[Dealing Revenge]]
 
}}
|label2  = Protagonist
</pre>
|data2  = {{{protagonist|}}}
 
|label3  = For
|data3  = {{{for|}}}
 
|label4  = Objective
|data4  = {{{objective|}}}
 
|label5  = Target
|data5  = {{{target|}}}
 
|label6  = Location
|data6  = {{{location|}}}
 
|label7  = Fail
|data7  = {{{fail|}}}
 
|label8  = Reward
|data8  = {{{reward|}}}
 
|label9  = Unlocks
|data9  = {{{unlocks|}}}
 
|label10  = Unlocked by
|data10  = {{{unlockedby|}}}
 
|label11  = Time Limit
|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
}}