Template:Missionreq/doc: Difference between revisions

From [N8]
Jump to navigation Jump to search
Created page with "{{Documentation}} :''For information on updating requirements, see Module:Missionreq/data'' Creates a list of required missions as list. Missions required for those liste..."
 
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
Creates a list of required missions as list. Missions required for those listed will also be listed, as a sublist; and so on.
Creates a list of required missions as list. Missions required for those listed will also be listed, as a sublist; and so on.


;Usage
===Usage===
<pre>
<pre>
{{Missionreq|<missionname>}}
{{Missionreq|<missionname>}}
Line 11: Line 11:
If lists are becoming too long, then the level of indentation can be limited with the second parameter.
If lists are becoming too long, then the level of indentation can be limited with the second parameter.


===With Limit===
<pre>
<pre>
{{Missionreq|<missionname>|<limit>}}
{{Missionreq|<missionname>|<limit>}}
</pre>
</pre>


For example, <code><nowiki>{{Missionreq|JayCo - A Brief History Part 1|1}}</nowiki></code> will only list the quests directly required:
For example, <code><nowiki>{{Missionreq|JayCo - A Brief History Part 2|1}}</nowiki></code> will only list the missions directly required:


{{Missionreq|JayCo - A Brief History Part 1|1}}
{{Missionreq|JayCo - A Brief History Part 2|1}}


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


{{Missionreq|JayCo - A Brief History Part 1|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===
If you do not want to limit the sublists:
 
<pre>
{{Missionreq|<missionname>}}
</pre>
 
For example, <code><nowiki>{{Missionreq|JayCo - A Brief History Part 8}}</nowiki></code> will only list the missions directly required:
 
{{Missionreq|JayCo - A Brief History Part 8}}


If a quest'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: