Template:Mission details/doc: Difference between revisions

From [N8]
Jump to navigation Jump to search
Created page with "{{documentation}} <pre>{{Mission details |icon = Jupiter Icon.png |start = Travel to Jupiter. |difficulty = easy |length = Short |requirements = {{Missionreq|JayCo - A Br..."
 
m added template data for VE
Line 12: Line 12:
}}</pre>
}}</pre>
<includeonly>[[Category:Transclusion templates|{{subst:PAGENAME}}]]</includeonly>
<includeonly>[[Category:Transclusion templates|{{subst:PAGENAME}}]]</includeonly>
{{templateData|<templatedata>
{
"params": {
"icon": {
"description": "Icon for location of Mission",
"example": "Jupiter Icon.png",
"required": true
},
"start": {
"description": "Where to start the mission",
"example": "Travel to [[Jupiter]]",
"required": true
},
"difficulty": {
"description": "difficulty of mission per mission details",
"example": "easy",
"required": true
},
"length": {
"description": "length of mission",
"example": "Short",
"required": true
},
"requirements": {
"description": "This has a nested template with in it {{Missionreq}}.  It will be {{Missionreq| NAME OF CURRENT MISSION}}",
"example": "{{Missionreq|Jayco - A Brief History Pt. 2}}",
"required": true
},
"items": {
"description": "List of items needed to complete the mission.  List all necessary.  Link to wiki page when possible",
"example": "* 50 [[Small Helium Canister|Small Helium Canisters]]"
},
"kills": {
"description": "List the number of destroyed ships are needed.  Be sure to list if Player vs. Drone.",
"example": "* Destroy 10 [[Drones]]"
}
},
"description": "Mission Details Template goes right below the ==Overview== header on a Mission Page",
"format": "block"
}
</templatedata>}}

Revision as of 20:31, 14 January 2021

This is a documentation subpage for Template:Mission details.
It contains usage information, categories, and other content that is not part of the original template page.
Template:Mission details invokes function details in Module:MissionDetails using Lua.
{{Mission details
|icon = Jupiter Icon.png
|start = Travel to [[Jupiter]].
|difficulty = easy 
|length = Short
|requirements =
{{Missionreq|JayCo - A Brief History Part 2}}
|items = 
* 50 [[Small Helium Canister|Small Helium Canisters]]
|kills = 
}}

Data

Show/hide template's data

The following information is used by extensions and applications, such as VisualEditor, to help users implement this template onto pages. Please ensure that it is up-to-date.

Mission Details Template goes right below the ==Overview== header on a Mission Page

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
iconicon

Icon for location of Mission

Example
Jupiter Icon.png
Unknownrequired
startstart

Where to start the mission

Example
Travel to [[Jupiter]]
Unknownrequired
difficultydifficulty

difficulty of mission per mission details

Example
easy
Unknownrequired
lengthlength

length of mission

Example
Short
Unknownrequired
requirementsrequirements

This has a nested template with in it {{Missionreq}}. It will be {{Missionreq| NAME OF CURRENT MISSION}}

Example
{{Missionreq|Jayco - A Brief History Pt. 2}}
Unknownrequired
itemsitems

List of items needed to complete the mission. List all necessary. Link to wiki page when possible

Example
* 50 [[Small Helium Canister|Small Helium Canisters]]
Unknownoptional
killskills

List the number of destroyed ships are needed. Be sure to list if Player vs. Drone.

Example
* Destroy 10 [[Drones]]
Unknownoptional