Difference between revisions of "Template:Basil/doc"

From SpiralKnights

Jump to: navigation, search
m (created)
 
m (update parameters)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
<noinclude>{{documentation subpage}}</noinclude>
 
==Usage==
 
==Usage==
 
To easily and consistently place information about basil's recipe inventory on pages based on depth. The template also adds items to a relevant category.
 
To easily and consistently place information about basil's recipe inventory on pages based on depth. The template also adds items to a relevant category.
Line 4: Line 5:
 
==Code==
 
==Code==
 
<pre>
 
<pre>
{{Basil|star=|only=}}
+
{{Basil|1|only=}}
 
</pre>
 
</pre>
  
 
==Parameters==
 
==Parameters==
 
===Required===
 
===Required===
;Star
+
*1
:A number 1, 2, 3, 4, or 5 that matches the star level of the item.
+
:A number 1, 2, 3, 4, or 5 that matches the star level of the item. (0 does not apply)
  
;only
+
*only
 
:yes = registers for [[:Category:Recipes only available from Basil]]
 
:yes = registers for [[:Category:Recipes only available from Basil]]
 
:no = does not register for category
 
:no = does not register for category
 +
 +
===Optional===
 +
*mission
 +
:The name of a mission
 +
:Use only if Basil sells the recipe in a mission lobby
 +
 +
*mission 1
 +
*mission 2
 +
*mission 3...
 +
:The name of a mission
 +
:Use only if the above mission parameter and preceding mission # is used = Basil sells the recipe in more than 1,2,3...mission lobbies. Enter the missions in rank order, starting with the earliest mission.
  
 
==Notes==
 
==Notes==
The code has a lot of switches to take care of grammatical errors. It should be flexible enough for use on any pages so far.
+
The code has a lot of switches to take care of grammatical stuffs.
  
 
The code forces the category to sort by star level, then alphabetically within star level.
 
The code forces the category to sort by star level, then alphabetically within star level.
Line 23: Line 35:
 
"Only" parameter only pertains to the category registration, and has nothing to do with "only depth" etc.
 
"Only" parameter only pertains to the category registration, and has nothing to do with "only depth" etc.
  
 +
==See Also==
 
[http://forums.spiralknights.com/en/node/109169 Forum Node 109069]
 
[http://forums.spiralknights.com/en/node/109169 Forum Node 109069]

Latest revision as of 21:40, 28 December 2015

Usage

To easily and consistently place information about basil's recipe inventory on pages based on depth. The template also adds items to a relevant category.

Code

{{Basil|1|only=}}

Parameters

Required

  • 1
A number 1, 2, 3, 4, or 5 that matches the star level of the item. (0 does not apply)
  • only
yes = registers for Category:Recipes only available from Basil
no = does not register for category

Optional

  • mission
The name of a mission
Use only if Basil sells the recipe in a mission lobby
  • mission 1
  • mission 2
  • mission 3...
The name of a mission
Use only if the above mission parameter and preceding mission # is used = Basil sells the recipe in more than 1,2,3...mission lobbies. Enter the missions in rank order, starting with the earliest mission.

Notes

The code has a lot of switches to take care of grammatical stuffs.

The code forces the category to sort by star level, then alphabetically within star level.

"Only" parameter only pertains to the category registration, and has nothing to do with "only depth" etc.

See Also

Forum Node 109069

Personal tools