Difference between revisions of "Template:Rl"

m
m (11 revisions imported)
 
(8 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{#switch:{{lc:{{{1|}}}}}|none| = ''None''|#default = {{#if:{{{3|}}}|[[{{{1}}}]] <sup>{{Guild Icon|{{{2}}}}}{{padleft:{{{3}}}|2|0}}</sup>{{#if:{{{5|}}}|<sup> {{Guild Icon|{{{4}}}}}{{padleft:{{{5}}}|2|0}}</sup>{{#if:{{{7|}}}|<sup> {{Guild Icon|{{{6}}}}}{{padleft:{{{7}}}|2|0}}</sup>}}{{#if:{{{9|}}}|<sup> {{Guild Icon|{{{8}}}}}{{padleft:{{{9}}}|2|0}}</sup>}}}}}}}}
+
<includeonly>{{#switch:{{lc:{{{1|}}}}}
 +
| none = ''None''
 +
| ? | ?? | ??? | unknown | = {{#ifeq:{{NAMESPACE}}||{{Information Needed}}|{{Information Needed|nc}}}}
 +
| #default = {{#if:{{{3|}}}|<!--
 +
--><sup>{{Guild Icon|{{{2}}}}}<!--
 +
-->{{#ifeq:{{padleft:{{{3}}}|3|?}}|???|<!--
 +
-->{{#ifeq:{{NAMESPACE}}||[[Category:Information Needed]]}}??|<!--
 +
-->{{padleft:{{{3}}}|2|0}}<!--
 +
-->}}</sup><!--
 +
 
 +
-->{{#if:{{{5|}}}|<!--
 +
--><sup> {{Guild Icon|{{{4}}}}}<!--
 +
-->{{#ifeq:{{padleft:{{{5}}}|3|?}}|???|<!--
 +
-->{{#ifeq:{{NAMESPACE}}||[[Category:Information Needed]]}}??|<!--
 +
-->{{padleft:{{{5}}}|2|0}}<!--
 +
-->}}</sup><!--
 +
 
 +
-->{{#if:{{{7|}}}|<!--
 +
--><sup> {{Guild Icon|{{{6}}}}}<!--
 +
-->{{#ifeq:{{padleft:{{{7}}}|3|?}}|???|<!--
 +
-->{{#ifeq:{{NAMESPACE}}||[[Category:Information Needed]]}}??|<!--
 +
-->{{padleft:{{{7}}}|2|0}}<!--
 +
-->}}</sup><!--
 +
 
 +
-->{{#if:{{{9|}}}|<!--
 +
--><sup> {{Guild Icon|{{{8}}}}}<!--
 +
-->{{#switch:{{padleft:{{{9}}}|3|?}}|???|<!--
 +
-->{{#ifeq:{{NAMESPACE}}||[[Category:Information Needed]]}}??|<!--
 +
-->{{padleft:{{{9}}}|2|0}}<!--
 +
-->}}</sup><!--
 +
 
 +
-->}}}}}}}}<!--
 +
--> [[{{{1}}}]]<!--
 +
-->{{#if:{{{hq|}}}|<nowiki/> ''(HQ {{{hq}}})''}}<!--
 +
-->}}</includeonly><noinclude>
 +
[[Category:Templates|{{PAGENAME}}]]
 +
==Usage==
 +
<pre>
 +
{{rl|<item>|<craft>|<cap>|<subcraft>|<subcraft cap>|<subcraft 2>|<subcraft 2 cap>|hq=<hq>}}
 +
</pre>
 +
This template was created to help format the recipe links in the "Used in Recipes" and "Obtained from Desynthesis" sections of item pages, but can be used anywhere that requires quick links to items and their recipe skill levels. It provides a link to the item specified and guild icons representing the crafts. The guild icons are clickable links to the craft pages. If "?", "??", or "???" is given as a skill cap, the page will automatically be categorized in the [[:Category:Information Needed|Information Needed]] category, but only if the page is in the [[mw:Help:Namespaces|Main namespace]] (e.g. it is a regular article and not a template, talk, or user page).
 +
===Examples===
 +
{|border="1"
 +
|- BGCOLOR="e3e3e3"
 +
! Code !! Result
 +
|-
 +
|<pre>{{rl|Potion|Alchemy|40}}</pre>
 +
| {{rl|Potion|Alchemy|40}}
 +
|-
 +
|<pre>{{rl|Sickle|Smithing|5|Woodworking|2}}</pre>
 +
| {{rl|Sickle|Smithing|5|Woodworking|2}}
 +
|-
 +
|<pre>{{rl|Brigandine|Leathercraft|57|Goldsmithing|50|Clothcraft|48}}</pre>
 +
| {{rl|Brigandine|Leathercraft|57|Goldsmithing|50|Clothcraft|48}}
 +
|-
 +
|<pre>{{rl|Brigandine|Leathercraft|57|Goldsmithing|50|Clothcraft|48}}</pre>
 +
| {{rl|Brigandine|Leathercraft|57|Goldsmithing|50|Clothcraft|48}}
 +
|-
 +
|<pre>{{rl|Goblin Armor|Leathercraft|36|hq=2}}</pre>
 +
|{{rl|Goblin Armor|Leathercraft|36|hq=2}}
 +
|-
 +
|<pre>{{rl|Iron Arrow|Woodworking|27|Smithing|??}}</pre>
 +
|{{rl|Iron Arrow|Woodworking|27|Smithing|??}}
 +
|-
 +
|<pre>{{rl|Gold Thread|Clothcraft|???}}</pre>
 +
|{{rl|Gold Thread|Clothcraft|???}}
 +
|-
 +
|<pre>{{rl|None}}</pre>
 +
|{{rl|None}}
 +
|-
 +
|<pre>{{rl|???}}</pre>
 +
| {{rl|???}}
 +
|-
 +
|<pre>{{rl|Unknown}}</pre>
 +
| {{rl|Unknown}}
 +
|-
 +
|<pre>
 +
*{{rl|Gelatin|Bonecraft|13}}
 +
*{{rl|Hard-Boiled Egg|Cooking|6}}
 +
*{{rl|Bretzel|Cooking|51}}
 +
*{{rl|Bast Parchment|Woodworking|45|Alchemy|29}}
 +
</pre>
 +
|
 +
*{{rl|Gelatin|Bonecraft|13}}
 +
*{{rl|Hard-Boiled Egg|Cooking|6}}
 +
*{{rl|Bretzel|Cooking|51}}
 +
*{{rl|Bast Parchment|Woodworking|45|Alchemy|29}}
 +
|}
 +
</noinclude>

Latest revision as of 17:43, 13 July 2017

Usage[edit]

{{rl|<item>|<craft>|<cap>|<subcraft>|<subcraft cap>|<subcraft 2>|<subcraft 2 cap>|hq=<hq>}}

This template was created to help format the recipe links in the "Used in Recipes" and "Obtained from Desynthesis" sections of item pages, but can be used anywhere that requires quick links to items and their recipe skill levels. It provides a link to the item specified and guild icons representing the crafts. The guild icons are clickable links to the craft pages. If "?", "??", or "???" is given as a skill cap, the page will automatically be categorized in the Information Needed category, but only if the page is in the Main namespace (e.g. it is a regular article and not a template, talk, or user page).

Examples[edit]

Code Result
{{rl|Potion|Alchemy|40}}
Alchemy 40 Potion
{{rl|Sickle|Smithing|5|Woodworking|2}}
Smithing 05 Woodworking 02 Sickle
{{rl|Brigandine|Leathercraft|57|Goldsmithing|50|Clothcraft|48}}
Leathercraft 57 Goldsmithing 50 Clothcraft 48 Brigandine
{{rl|Brigandine|Leathercraft|57|Goldsmithing|50|Clothcraft|48}}
Leathercraft 57 Goldsmithing 50 Clothcraft 48 Brigandine
{{rl|Goblin Armor|Leathercraft|36|hq=2}}
Leathercraft 36 Goblin Armor (HQ 2)
{{rl|Iron Arrow|Woodworking|27|Smithing|??}}
Woodworking 27 Smithing ?? Iron Arrow
{{rl|Gold Thread|Clothcraft|???}}
Clothcraft ?? Gold Thread
{{rl|None}}
None
{{rl|???}}
Information Needed
{{rl|Unknown}}
Information Needed
*{{rl|Gelatin|Bonecraft|13}}
*{{rl|Hard-Boiled Egg|Cooking|6}}
*{{rl|Bretzel|Cooking|51}} 
*{{rl|Bast Parchment|Woodworking|45|Alchemy|29}}