Difference between revisions of "Template:Basil"

From SpiralKnights

Jump to: navigation, search
m (minor fix)
m (actually, it might be easier to include the icon in vendor templates instead of the Item/Acquisition system)
 
(39 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>[[Basil]] - All recipes from this vendor are always unbound. Recipe for this item is {{#if:{{{mission|}}}
+
<includeonly>{{Recipe/Icon}}: [[Basil]] - Randomly in stock for {{#switch:{{{1}}}
|always in stock in lobby of the:
+
|0=N/A, there are no 0* recipes
::{{mission|{{{mission|}}}}}
+
|1=250
|}}{{#if:{{{mission 2|}}}
+
|2=1,000
|::{{mission|{{{mission 2|}}}}}
+
|3=4,000
|}}{{#if:{{{mission 3|}}}
+
|4=10,000
|::{{mission|{{{mission 3|}}}}}
+
|5=25,000
|}}{{#if:{{{mission 4|}}}
+
}} crowns in depth{{#switch:{{{1}}}
|::{{mission|{{{mission 4|}}}}}
+
|}}{{#if:{{{mission 5|}}}
+
|::{{mission|{{{mission 5|}}}}}
+
|}}{{#if:{{{mission|}}}|<br>R|r}}andomly in stock in depth{{#switch:{{{star}}}
+
 
|1 =
 
|1 =
 
|2 =
 
|2 =
Line 16: Line 12:
 
|4 =
 
|4 =
 
|5 =
 
|5 =
}}&nbsp;{{#switch:{{{star}}}
+
}}&nbsp;{{#switch:{{{1}}}
|1 = 4
+
|1 =4
|2 = 4
+
|2 =4
|3 = 13
+
|3 =13
|4 = 13
+
|4 =13
 
|5 =
 
|5 =
}}{{#switch:{{{star}}}
+
}}{{#switch:{{{1}}}
 
|1 =
 
|1 =
 
|2 =,&nbsp;
 
|2 =,&nbsp;
Line 28: Line 24:
 
|4 =,&nbsp;
 
|4 =,&nbsp;
 
|5 =
 
|5 =
}}{{#switch:{{{star}}}
+
}}{{#switch:{{{1}}}
 
|1 =
 
|1 =
|2 = 13
+
|2 =13
 
|3 =
 
|3 =
|4 = 23
+
|4 =23
|5 = 23
+
|5 =23
}} [[Clockwork Terminal]]s{{#switch:{{{only|no}}}|no=|yes=[[Category:Recipes only available from Basil|{{{star}}}-{{PAGENAME}}]]}}</includeonly><noinclude>
+
}} [[Clockwork Terminal]]s{{#if:{{{mission|}}}
 +
|, always in stock in lobby of:
 +
:{{mission|{{{mission|}}}}}
 +
|}}{{#if:{{{mission 2|}}}
 +
|:{{mission|{{{mission 2|}}}}}
 +
|}}{{#if:{{{mission 3|}}}
 +
|:{{mission|{{{mission 3|}}}}}
 +
|}}{{#if:{{{mission 4|}}}
 +
|:{{mission|{{{mission 4|}}}}}
 +
|}}{{#if:{{{mission 5|}}}
 +
|:{{mission|{{{mission 5|}}}}}
 +
|}}{{#if:{{{mission 6|}}}
 +
|:{{mission|{{{mission 6|}}}}}
 +
|}}{{#if:{{{mission 7|}}}
 +
|:{{mission|{{{mission 7|}}}}}
 +
|}}{{#if:{{{mission 8|}}}
 +
|:{{mission|{{{mission 8|}}}}}
 +
|}}{{#if:{{{mission 9|}}}
 +
|:{{mission|{{{mission 9|}}}}}
 +
|}}{{#if:{{{mission 10|}}}
 +
|:{{mission|{{{mission 10|}}}}}
 +
|}}{{#if:{{{mission 11|}}}
 +
|:{{mission|{{{mission 11|}}}}}
 +
|}}{{#if:{{{mission|}}}|<br> (All recipes purchased from Basil are acquired unbound)|&nbsp;(unbound)}}.{{#switch:{{{only|no}}}|no=|yes=[[Category:Recipes only available from Basil|{{{1}}}-{{PAGENAME}}]]}}</includeonly><noinclude>
 
{{documentation}} [[Category:Linking Templates|Vendor]]</noinclude>
 
{{documentation}} [[Category:Linking Templates|Vendor]]</noinclude>

Latest revision as of 22:42, 28 December 2015

[edit] [purge] Template documentation

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