Template:Infobox mission: Difference between revisions

( )
(Recoding)
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}}[[File:{{{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;
|{{gameselect|{{{game|}}}}}
border-bottom: none;  
{{#if: {{{for|}}}|
|above = {{#if:{{{name|}}}|{{{name}}}|{{PAGENAME}}}}
{{pipe}}-
|abovestyle = font-size: 150%;
!style="text-align:right;"{{pipe}}For:
 
{{pipe}}{{{for|}}}|
|image        = {{#if:{{{image|}}}|[[File:{{{image}}}|{{#if:{{{size|}}}|{{{size|}}}|170px}}|center|{{{caption}}}]]}}
{{pipe}}-
|imagestyle  = {{{imagestyle|}}}
}}
|caption      = {{{caption|}}}
{{#if: {{{location|}}}|
|captionstyle = {{{captionstyle|}}}
{{pipe}}-
 
!style="text-align:right;"{{pipe}}Location:
|headerstyle  = background:#444; color: #fff;
{{pipe}}{{{location|}}}|
|labelstyle  = background:#ddd;
{{pipe}}-
|datastyle    =
}}
 
{{#if: {{{target|}}}|
|header1 =  
{{pipe}}-
 
!style="text-align:right;"{{pipe}}Target:
|label1  = Game
{{pipe}}{{{target|}}}|
|data1  = {{gameselect|{{{game|}}}}}
{{pipe}}-
{{#IFEXIST: {{{game|}}} | |[[Category:Fix Games]]}}
}}
[[Category:Missions in {{game|{{{game|}}}}}]]
{{#if: {{{fail|}}}|
 
{{pipe}}-
|label2  = For
!style="text-align:right;"{{pipe}}{{abbr|Conditions of mission failure|other than wasted or busted}}:
|data2  = {{{for|}}}
{{pipe}}
 
{{{fail|}}}|
|label3  = Target
{{pipe}}-
|data3  = {{{target|}}}
}}
 
{{#if: {{{reward|}}}|
|label4  = Location
{{pipe}}-
|data4  = {{{location|}}}
!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}}-
}}
{{#ifeq:{{{progression|}}}|1|
{{pipe}}-
! colspan="2" style="text-align:center" {{pipe}} Progression
{{pipe}}-
! style="text-align:center" {{pipe}} Previous {{pipe}}{{pipe}} style="text-align:center" {{pipe}} Next
{{pipe}}-
{{pipe}} style="text-align:left" {{pipe}} {{#if:{{{progression_prev|}}}|{{{progression_prev}}}|None}} {{pipe}}{{pipe}} style="text-align:right" {{pipe}} {{#if:{{{progression_next|}}}|{{{progression_next}}}|None}}
}}
|}<includeonly>[[Type::Mission| ]]</includeonly><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]].
|label5  = Fail
|data5  = {{{fail|}}}


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


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.
|label7  = Unlocks
|data7  = {{{unlocks|}}}


'''Each instance of this infobox MUST have the game specified'''
|label8  = Unlocked by
<pre>
|data8  = {{{unlockedby|}}}
{{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
|fail=Player Character Death
|reward=$100
|unlocks=[[Dealing Revenge]]
|unlockedby=N/A
}}
}}
</pre>
 
produces:
</noinclude><noinclude>{{doc}}
{{infobox mission
|name=Slacker
|game=LCS
|image=VincenzoCilli-GTALCS.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}}
</noinclude><noinclude>
[[Category:Infobox Templates]]
[[Category:Infobox Templates]]
</noinclude>
</noinclude>

Revision as of 09:57, 8 August 2012