Template:Infobox Mission: Difference between revisions

From Red Faction Wiki
mNo edit summary
No edit summary
 
(4 intermediate revisions by one other user not shown)
Line 8: Line 8:
<header><small>Information</small></header>
<header><small>Information</small></header>
<data source="location"><label>'''Location'''</label></data>
<data source="location"><label>'''Location'''</label></data>
<data source="salvage"><label>'''Salvage'''</label><format>[[Image:Icon_RFGSalvage.png|15px]] {{{salvage|N/A}}}</format></data>
<data source="salvage"><label>'''Salvage'''</label><format>[[Image:Icon_RFGSalvage.png|15px|link=]] {{{salvage}}}</format></data>
    <data source="unlocks"><label>'''Unlocks'''</label></data>
     <data source="previous"><label>'''Previous'''</label></data>
     <data source="previous"><label>'''Previous'''</label></data>
     <data source="next"><label>'''Next'''</label></data>
     <data source="next"><label>'''Next'''</label></data>
     </group>
     </group>
</infobox></includeonly><noinclude>
</infobox></includeonly><noinclude>[[Category: Infobox Templates]]
<templatedata>
{
"params": {
"name": {
"label": "Name",
"description": "Official name of the mission.",
"type": "string",
"default": "Page name",
"suggested": true
},
"salvage": {
"label": "Salvage",
"description": "The salvage that is rewarded upon the mission's completion. Do not use the total salvage value as it always depends on the player's morale and cannot be relied upon.",
"example": "50",
"type": "number",
"suggested": true
},
"image": {
"label": "Image",
"description": "Image of the mission's focused area or end goal.",
"example": "Welcome To Mars.png",
"type": "wiki-file-name",
"required": true
},
"location": {
"label": "Location",
"description": "A link to the sector that the mission is in.",
"example": "[[Dust]]",
"type": "string",
"suggested": true
},
"unlocks": {
"label": "Unlocks",
"description": "Any areas, items or upgrades that the player has unlocked through the mission's completion. This usually only applies to liberation missions which always unlocks the next sector.",
"example": "[[Dust]]<br>[[Rocket Launcher]]<br>Level 1 Armor",
"type": "string"
},
"previous": {
"label": "Previous Mission",
"description": "A link to the previous mission in chronological order. Most non-liberation missions do not have an order to them, as they can be completed by the player whenever, so there is no right answer for this parameter in that case.",
"example": "[[Welcome To Mars]]",
"type": "string",
"suggested": true
},
"next": {
"label": "Next Mission",
"description": "A link to the next mission in chronological order. Most non-liberation missions do not have an order to them, as they can be completed by the player whenever, so there is no right answer for this parameter in that case.",
"example": "[[Ambush]]",
"type": "string",
"suggested": true
}
},
"format": "block",
"paramOrder": [
"name",
"image",
"location",
"salvage",
"unlocks",
"previous",
"next"
]
}
</templatedata>
<pre>{{Infobox Mission
|name    =
|image    =
|location =
|salvage  =
|unlocks  =
|previous =
|next    =
}}
</pre>
'''Usage:'''
<pre>{{Infobox Mission
|name    = Start Your Engines
|image    = Start Your Engines.png
|location = [[Parker (Sector)|Parker]]
|salvage  = 50
|unlocks  = [[Dust]]<br>[[Rocket Launcher]]<br>Level 1 Armor
|previous = [[Ambush]]
|next    = [[Rallying Point]]
}}</pre>
'''Output:'''
{{Infobox Mission
{{Infobox Mission
|name    = Better Red Than Dead
|name    = Start Your Engines
|image    = Better Red Than Dead.png
|image    = Start Your Engines.png
|location = [[Parker (Sector)|Parker]]
|location = [[Parker (Sector)|Parker]]
|salvage  = 50
|salvage  = 50
|previous = [[Welcome To Mars]]
|unlocks  = [[Dust]]<br>[[Rocket Launcher]]<br>Level 1 Armor
|next    = [[Ambush]]
|previous = [[Ambush]]
}}
|next    = [[Rallying Point]]
</noinclude>
}}</noinclude>

Latest revision as of 16:10, 16 February 2024

No description.

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Namename

Official name of the mission.

Default
Page name
Stringsuggested
Imageimage

Image of the mission's focused area or end goal.

Example
Welcome To Mars.png
Filerequired
Locationlocation

A link to the sector that the mission is in.

Example
[[Dust]]
Stringsuggested
Salvagesalvage

The salvage that is rewarded upon the mission's completion. Do not use the total salvage value as it always depends on the player's morale and cannot be relied upon.

Example
50
Numbersuggested
Unlocksunlocks

Any areas, items or upgrades that the player has unlocked through the mission's completion. This usually only applies to liberation missions which always unlocks the next sector.

Example
[[Dust]]<br>[[Rocket Launcher]]<br>Level 1 Armor
Stringoptional
Previous Missionprevious

A link to the previous mission in chronological order. Most non-liberation missions do not have an order to them, as they can be completed by the player whenever, so there is no right answer for this parameter in that case.

Example
[[Welcome To Mars]]
Stringsuggested
Next Missionnext

A link to the next mission in chronological order. Most non-liberation missions do not have an order to them, as they can be completed by the player whenever, so there is no right answer for this parameter in that case.

Example
[[Ambush]]
Stringsuggested
{{Infobox Mission
|name     = 
|image    = 
|location = 
|salvage  = 
|unlocks  = 
|previous = 
|next     = 
}}

Usage:

{{Infobox Mission
|name     = Start Your Engines
|image    = Start Your Engines.png
|location = [[Parker (Sector)|Parker]]
|salvage  = 50
|unlocks  = [[Dust]]<br>[[Rocket Launcher]]<br>Level 1 Armor
|previous = [[Ambush]]
|next     = [[Rallying Point]]
}}

Output: