Template:Missionreq/doc: Difference between revisions

From [N8]
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 24: Line 24:
{{Missionreq|JayCo - A Brief History Part 2|2}}
{{Missionreq|JayCo - A Brief History Part 2|2}}


If a mission's requirements have been cut off, this will be denoted with ellipses (...). The default cut off is 9 levels.
===No Limit===
===No Limit===
If you do not want to limit the sublists:
If you do not want to limit the sublists:
Line 35: Line 36:
{{Missionreq|JayCo - A Brief History Part 8}}
{{Missionreq|JayCo - A Brief History Part 8}}


If a mission's requirements have been cut off, this will be denoted with ellipses (...). The default cut off is 9 levels.
<includeonly>[[Category:Formatting templates]]</includeonly>
<includeonly>[[Category:Formatting templates]]</includeonly>

Latest revision as of 15:39, 16 June 2020

This is a documentation subpage for Template:Missionreq.
It contains usage information, categories, and other content that is not part of the original template page.
Template:Missionreq invokes function main in Module:Missionreq using Lua.
For information on updating requirements, see Module:Missionreq/data

Creates a list of required missions as list. Missions required for those listed will also be listed, as a sublist; and so on.

Usage

{{Missionreq|<missionname>}}

If lists are becoming too long, then the level of indentation can be limited with the second parameter.

With Limit

{{Missionreq|<missionname>|<limit>}}

For example, {{Missionreq|JayCo - A Brief History Part 2|1}} will only list the missions directly required:

Missions:

{{Missionreq|JayCo - A Brief History Part 2|2}} will list the requirements directly required, and sublists of the ones directly required for those, but nothing further:

Missions:

If a mission's requirements have been cut off, this will be denoted with ellipses (...). The default cut off is 9 levels.

No Limit

If you do not want to limit the sublists:

{{Missionreq|<missionname>}}

For example, {{Missionreq|JayCo - A Brief History Part 8}} will only list the missions directly required:

Missions: