Difference between revisions of "Template:ManuInfo"
Jump to navigation
Jump to search
m (thought it was more complicated... wasn't.. for a change) |
m (removed the ing#sec option as it's no longer needed) |
||
Line 3: | Line 3: | ||
{{{desc|}}} | {{{desc|}}} | ||
==={{{ingstitle|Ingredients}}}=== | ==={{{ingstitle|Ingredients}}}=== | ||
− | [[Image:{{{ing1|default item image}}}.png|25px]] {{{ing1amount|1}}} [[ | + | [[Image:{{{ing1|default item image}}}.png|25px]] {{{ing1amount|1}}} [[{{{ing1|Harvesting}}} | {{{ing1|Error! No ingredient specified.}}}]]<br /> {{ |
+ | #if: {{{ing2|}}} | [[Image:{{{ing2}}}.png|25px]] {{{ing2amount|1}}} [[{{{ing2}}}]]<br />}}{{ | ||
+ | #if: {{{ing3|}}} |[[Image:{{{ing3}}}.png|25px]] {{{ing3amount|1}}} [[{{{ing3}}}]]<br />}}{{ | ||
+ | #if: {{{ing4|}}} |[[Image:{{{ing4}}}.png|25px]] {{{ing4amount|1}}} [[{{{ing4}}}]]<br />}}{{ | ||
+ | #if: {{{ing5|}}} |[[Image:{{{ing5}}}.png|25px]] {{{ing5amount|1}}} [[{{{ing5}}}]]<br />}}{{ | ||
+ | #if: {{{ing6|}}} |[[Image:{{{ing6}}}.png|25px]] {{{ing6amount|1}}} [[{{{ing6}}}]]<br />}} | ||
==={{{manutitle|Manufacturing information}}}=== | ==={{{manutitle|Manufacturing information}}}=== | ||
− | {{#if: {{{tool|}}} |Required tools:<br /> [[Image:{{{tool}}}.png|25px]] [[ | + | {{#if: {{{tool|}}} |Required tools:<br /> [[Image:{{{tool}}}.png|25px]] [[{{{tool}}}]]<br />}}{{ |
+ | #if: {{{tool2|}}} |[[Image:{{{tool2}}}.png|25px]] [[{{{tool2}}}]]<br />}}{{ | ||
+ | #if: {{{know|}}} |Knowledge required: [[Books/{{{know}}}|{{{know}}}]]<br />| No knowledge required<br />}}{{#if: {{{nexus|}}} | Required nexus: | ||
* [[Nexus/{{{nexus}}}#{{{nexus}}} {{{nexuslvl}}}|{{{nexus}}}: {{{nexuslvl}}}]]}}{{#if: {{{nexus2|}}} | | * [[Nexus/{{{nexus}}}#{{{nexus}}} {{{nexuslvl}}}|{{{nexus}}}: {{{nexuslvl}}}]]}}{{#if: {{{nexus2|}}} | | ||
* [[Nexus/{{{nexus2}}}#{{{nexus2}}} {{{nexus2lvl}}}|{{{nexus2}}}: {{{nexus2lvl}}}]]}} | * [[Nexus/{{{nexus2}}}#{{{nexus2}}} {{{nexus2lvl}}}|{{{nexus2}}}: {{{nexus2lvl}}}]]}} | ||
Line 20: | Line 27: | ||
| #default = {{{skill}}} | | #default = {{{skill}}} | ||
}} experience given: {{{exp}}}<br /> | }} experience given: {{{exp}}}<br /> | ||
− | {{#if: {{{food|}}} |Food substracted: {{{food}}}<br />}}{{#if: {{{mana|}}} |Mana substracted: {{{mana}}}<br />}}</includeonly> | + | {{ |
+ | #if: {{{food|}}} |Food substracted: {{{food}}}<br />}}{{ | ||
+ | #if: {{{mana|}}} |Mana substracted: {{{mana}}}<br />}}</includeonly> | ||
<noinclude> | <noinclude> | ||
== ManuInfo template == | == ManuInfo template == | ||
Line 45: | Line 54: | ||
* '''mana''': Mana cost; ''optional'' | * '''mana''': Mana cost; ''optional'' | ||
* '''tool''': tool needed to make; ''optional'' | * '''tool''': tool needed to make; ''optional'' | ||
− | |||
* '''tool2''': second tool needed to make; ''optional'' | * '''tool2''': second tool needed to make; ''optional'' | ||
− | |||
* '''ing1''': Name of the first ingredient, see ''item'' above; ''mandatory'' | * '''ing1''': Name of the first ingredient, see ''item'' above; ''mandatory'' | ||
* '''ing1amount''': Amount of first item needed in recipe, defaults to 1 if ingredient is not empty, else to empty. | * '''ing1amount''': Amount of first item needed in recipe, defaults to 1 if ingredient is not empty, else to empty. | ||
− | |||
* '''ing2'''...'''ing6''': same as ''ing1'' above for second through sixth ingredient, but ''optional''. | * '''ing2'''...'''ing6''': same as ''ing1'' above for second through sixth ingredient, but ''optional''. | ||
* '''ing2amount'''...'''ing6amount''': same as ''ing1amount'' above for second through sixth ingredient, but ''optional''. | * '''ing2amount'''...'''ing6amount''': same as ''ing1amount'' above for second through sixth ingredient, but ''optional''. | ||
− | |||
=== Usage === | === Usage === | ||
Line 77: | Line 82: | ||
|ing1 = | |ing1 = | ||
|ing1amount = | |ing1amount = | ||
− | |||
|ing2 = | |ing2 = | ||
|ing2amount = | |ing2amount = | ||
− | |||
|ing3 = | |ing3 = | ||
|ing3amount = | |ing3amount = | ||
− | |||
|ing4 = | |ing4 = | ||
|ing4amount = | |ing4amount = | ||
− | |||
|ing5 = | |ing5 = | ||
|ing5amount = | |ing5amount = | ||
− | |||
|ing6 = | |ing6 = | ||
|ing6amount = | |ing6amount = | ||
− | |||
}} | }} | ||
</nowiki></pre> | </nowiki></pre> | ||
Line 108: | Line 107: | ||
|ing1 = Sulfur | |ing1 = Sulfur | ||
|ing1amount = 1 | |ing1amount = 1 | ||
− | |||
|ing2 = Red Rose | |ing2 = Red Rose | ||
|ing3 = Red Snapdragon | |ing3 = Red Snapdragon | ||
}} | }} | ||
</nowiki></pre> | </nowiki></pre> | ||
− | Note that the example makes use of the fact that | + | Note that the example makes use of the fact that ''ing#amount'' defaults to 1 for non-empty ''ing#s''. |
{{ManuInfo | {{ManuInfo | ||
|manutitle = Mixing Information | |manutitle = Mixing Information | ||
Line 125: | Line 123: | ||
|ing1 = Sulfur | |ing1 = Sulfur | ||
|ing1amount = 1 | |ing1amount = 1 | ||
− | |||
|ing2 = Red Rose | |ing2 = Red Rose | ||
|ing3 = Red Snapdragon | |ing3 = Red Snapdragon | ||
}} | }} | ||
</noinclude> | </noinclude> |
Revision as of 13:51, 5 November 2008
Contents
ManuInfo template
Purpose
This template's purpose is to offer a uniform way to create the manufacturing information section for items, hopefully allowing for easy changes in the future as well as customization.
- This template does not include the weight and stackability of items as that's not related to the manufacturing of an item.
Parameters
- item: Name of the item (capitalization, spacing etc. as the wiki-page-name); mandatory
- desc: Description, will be added between the image and the list of ingredients; optional
- ingstitle: Subtitle for the list of ingredients, defaults to "Ingredients"; optional
- manutitle: Subtitle for the manufacturing details, defaults to "Manufacturing information"; optional
- skill: Skill that item belongs to, please provide Weapons, Armour and Items respectively, if the item is in those subdirectories, the template will replace them automatically with Manufacturing; mandatory
- exp: base experience given, defaults to empty
- lvl: recommended skill level, defaults to empty
- know: required knowledge, is expected to be a page under Books/, i.e. the link will be made to Books/know|know; optional
- nexus: required nexus; optional
- nexuslvl: level of the required nexus; optional
- nexus2: second required nexus; optional
- nexus2lvl: level of the second required nexus; optional
- food: Food cost; optional
- mana: Mana cost; optional
- tool: tool needed to make; optional
- tool2: second tool needed to make; optional
- ing1: Name of the first ingredient, see item above; mandatory
- ing1amount: Amount of first item needed in recipe, defaults to 1 if ingredient is not empty, else to empty.
- ing2...ing6: same as ing1 above for second through sixth ingredient, but optional.
- ing2amount...ing6amount: same as ing1amount above for second through sixth ingredient, but optional.
Usage
Copy and paste the code below, fill in the necessary information, remove unused parameters, preview, save.
{{ManuInfo |manutitle = |ingstitle = |item = |desc = |skill = |exp = |lvl = |know = |nexus = |nexuslvl = |nexus2 = |nexus2lvl = |food = |mana = |tool = |tool2 = |ing1 = |ing1amount = |ing2 = |ing2amount = |ing3 = |ing3amount = |ing4 = |ing4amount = |ing5 = |ing5amount = |ing6 = |ing6amount = }}
Example
{{ManuInfo |manutitle = Mixing Information |ingstitle = Get this stuff first |desc = The roof, the roof, the roof is on [[Alchemy/Fire Essence|fire]]! |item = Fire Essence |skill = Alchemy |exp = 6 |lvl = 1 |food = 1 |ing1 = Sulfur |ing1amount = 1 |ing2 = Red Rose |ing3 = Red Snapdragon }}
Note that the example makes use of the fact that ing#amount defaults to 1 for non-empty ing#s.
The roof, the roof, the roof is on fire!
Get this stuff first
1 Sulfur
1 Red Rose
1 Red Snapdragon
Mixing Information
No knowledge required
Recommended Alchemy level: 1
Base Alchemy experience given: 6
Food substracted: 1