Difference between revisions of "Template:Missionbox"

From LGPedia
Jump to: navigation, search
m
m (Updating so that you can change the default image size)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| style="border:1px solid; border-color:#999; margin:1px;width:630px; background:#EEE;" cellspacing="0"
+
<includeonly>{| style="border:1px solid; border-color:#999; margin:1px; width:725px; background:#EEE;" cellspacing="0"
 
|-
 
|-
 
{{#ifeq:{{{align}}}|left|
 
{{#ifeq:{{{align}}}|left|
 
{{!}}rowspan=7 valign="top" {{!}}[[Image:MissionText.jpg|40px]]
 
{{!}}rowspan=7 valign="top" {{!}}[[Image:MissionText.jpg|40px]]
{{!}}rowspan=7 valign="top" align="center"{{!}}{{{pic|}}}|}}
+
{{!}}rowspan=7 valign="top" align="center"{{!}}{{#if:{{{pic|}}}|[[Image:{{{pic|}}}|{{{pic-s|221px}}}]]|}}
|width="100%" valign="top" style="font-size:16px; padding:4px; line-height:1.25em;"|'''{{{mission}}}'''
+
{{!}}width="100%" valign="top" style="font-size:16px; color:{{{mission-c|#000}}}; padding:4px; line-height:1.25em;"{{!}}'''{{{mission}}}'''|
{{#ifeq:{{{align}}}|left||
+
{{!}}width="100%" valign="top" style="font-size:16px; color:{{{mission-c|#000}}}; padding:4px; line-height:1.25em;"{{!}}'''{{{mission}}}'''
{{!}}rowspan=7 valign="top" align="center"{{!}}{{{pic|}}}
+
{{!}}rowspan=7 valign="top" align="center"{{!}}{{#if:{{{pic|}}}|[[Image:{{{pic|}}}|{{{pic-s|221px}}}]]|}}
{{!}}rowspan=7 valign="top" {{!}}[[Image:MissionTextRHS.jpg|40px]]|}}
+
{{!}}rowspan=7 valign="top" {{!}}[[Image:MissionTextRHS.jpg|40px]]|}} {{#if:{{{faction|}}}|<br>
{{#if:{{{faction|}}}|<br>
+
 
{{+}}
 
{{+}}
 
{{!}}style="font-size:11px; padding:4px; line-height:1.25em;"{{!}}'''FACTION:''' {{{faction|}}}|}} {{#if:{{{agents|}}}|<br>
 
{{!}}style="font-size:11px; padding:4px; line-height:1.25em;"{{!}}'''FACTION:''' {{{faction|}}}|}} {{#if:{{{agents|}}}|<br>
Line 19: Line 18:
 
{{+}}
 
{{+}}
 
{{!}}style="font-size:11px; padding:4px; line-height:1.25em;"{{!}}'''VIDEOS:''' {{{videos|}}}|}}
 
{{!}}style="font-size:11px; padding:4px; line-height:1.25em;"{{!}}'''VIDEOS:''' {{{videos|}}}|}}
|}
+
|}</includeonly><noinclude>
 +
Table to be used for the [[Missions]] page.
  
<noinclude>
+
===Usage===
Early draft version of a mission box for use in the [[Missions]] page. Only tested in Firefox so far.
+
<pre>
==Examples==
+
{{Missionbox
 +
|mission   =
 +
|pic        =  
 +
|faction    =  
 +
|agents    =  
 +
|purpose    =
 +
|outcome    =
 +
|videos    =  
  
===Plain===
+
<!--Use to change the font color of the mission name-->
{{Missionbox}}
+
|mission-c  =  
<br clear="left"/>
+
  
===Simple usage in a table===
+
<!--Use to make the box left-aligned-->
<center>
+
|align      = left
{| align=center style="width:720px" border=0
+
|-
+
| {{Missionbox
+
|pic=[[Image:0204-JonasGrabbingBree.jpg|295px]]
+
|mission=Finding Bree
+
|faction=[[The Resistance]]
+
|agents=[[Daniel]], [[Jonas]], [[Taylor]], [[Sarah]]
+
|purpose=[[Bree]] is gone, so the team tries to find her.
+
|outcome=Success
+
|videos=[[1500 Miles]], [[Let's Play Doctor]], [[Comfort Food]], [[Oh, The Places You'll Go]], [[Sing With Me]], [[CAMP PLAY]], [[Be Part of Something]], [[Opening the Box]], [[It's A Cult]], [[Getting Her Back]]
+
 
}}
 
}}
|-
+
</pre>
|}
+
 
</center>
+
<br>
+
 
[[Category:Templates|{{PAGENAME}}]]</noinclude>
 
[[Category:Templates|{{PAGENAME}}]]</noinclude>

Latest revision as of 21:45, 7 February 2008

Table to be used for the Missions page.

Usage

{{Missionbox
|mission    = 
|pic        = 
|faction    = 
|agents     = 
|purpose    = 
|outcome    = 
|videos     = 

<!--Use to change the font color of the mission name-->
|mission-c  = 

<!--Use to make the box left-aligned-->
|align      = left
}}