Template:ManuInfo: Difference between revisions
Jump to navigation
Jump to search
(ManuInfo template, includes a description, not tested yet) |
m (|<->{{!}} (you don't want to know :P)) |
||
Line 1: | Line 1: | ||
<includeonly>[[Image:{{{item|default item image}}}.png]] | <includeonly> | ||
[[Image:{{{item|default item image}}}.png]] | |||
==={{{ingstitle|Ingredients}}}=== | ==={{{ingstitle|Ingredients}}}=== | ||
[[Image:{{{ing1|default item image}}_small.png]] {{{ing1amount|1}}} [[{{{ing1sec|Harvestables}}}/{{{ing1|Index}}} | [[Image:{{{ing1|default item image}}_small.png]] {{{ing1amount|1}}} [[{{{ing1sec|Harvestables}}}/{{{ing1|Index}}}{{!}}{{{ing1|Error! No ingredient specified.}}}]]<br /> | ||
{{#if {{{ing2|}}} | | {{#if {{{ing2|}}} | | ||
[[Image:{{{ing2}}_small.png]] {{{ing2amount|1}}} [[{{{ing2sec|Harvestables}}}/{{{ing2}}} | [[Image:{{{ing2}}_small.png]] {{{ing2amount|1}}} [[{{{ing2sec|Harvestables}}}/{{{ing2}}}{{!}}{{{ing2}}}]]<br /> | ||
}} | | }} | ||
{{#if {{{ing3|}}} | | {{#if {{{ing3|}}} | | ||
[[Image:{{{ing3}}_small.png]] {{{ing3amount|1}}} [[{{{ing3sec|Harvestables}}}/{{{ing3}}} | [[Image:{{{ing3}}_small.png]] {{{ing3amount|1}}} [[{{{ing3sec|Harvestables}}}/{{{ing3}}}{{!}}{{{ing3}}}]]<br /> | ||
}} | | }} | ||
{{#if {{{ing4|}}} | | {{#if {{{ing4|}}} | | ||
[[Image:{{{ing4}}_small.png]] {{{ing4amount|1}}} [[{{{ing4sec|Harvestables}}}/{{{ing4}}} | [[Image:{{{ing4}}_small.png]] {{{ing4amount|1}}} [[{{{ing4sec|Harvestables}}}/{{{ing4}}}{{!}}{{{ing4}}}]]<br /> | ||
}} | | }} | ||
{{#if {{{ing5|}}} | | {{#if {{{ing5|}}} | | ||
[[Image:{{{ing5}}_small.png]] {{{ing5amount|1}}} [[{{{ing5sec|Harvestables}}}/{{{ing5}}} | [[Image:{{{ing5}}_small.png]] {{{ing5amount|1}}} [[{{{ing5sec|Harvestables}}}/{{{ing5}}}{{!}}{{{ing5}}}]]<br /> | ||
}} | | }} | ||
{{#if {{{ing6|}}} | | {{#if {{{ing6|}}} | | ||
[[Image:{{{ing6}}_small.png]] {{{ing6amount|1}}} [[{{{ing6sec|Harvestables}}}/{{{ing6}}} | [[Image:{{{ing6}}_small.png]] {{{ing6amount|1}}} [[{{{ing6sec|Harvestables}}}/{{{ing6}}}{{!}}{{{ing6}}}]]<br /> | ||
}} | | }} | ||
==={{{manutitle|Manufacturing information}}}=== | ==={{{manutitle|Manufacturing information}}}=== | ||
{{#if {{{tool|}}} | | {{#if {{{tool|}}} | | ||
Required tools:<br /> | Required tools:<br /> [[Image:{{{tool}}_small.png]] [[{{{toolsec|Items}}}/{{{tool}}}{{!}}{{{tool}}}]]<br /> | ||
[[Image:{{{tool}}_small.png]] [[{{{toolsec|Items}}}/{{{tool}}} | |}} | ||
}} | |||
{{#if {{{tool2|}}} | | {{#if {{{tool2|}}} | | ||
[[Image:{{{tool2}}_small.png]] [[{{{tool2sec|Items}}}/{{{tool2}}} | [[Image:{{{tool2}}_small.png]] [[{{{tool2sec|Items}}}/{{{tool2}}}{{!}}{{{tool2}}}]]<br /> | ||
}} | |}} | ||
{{#if {{{know|}}} | | {{#if {{{know|}}} | | ||
Knowledge required: [[Books/{{{know}}} | Knowledge required: [[Books/{{{know}}}{{!}}{{{know}}}]]<br /> | ||
{{#if {{{nexus|}}} | | {{#if {{{nexus|}}} | | ||
Required nexus: | Required nexus: | ||
* [[Nexus/{{{nexus}}}#{{{nexus}}} {{{nexuslvl}}} | * [[Nexus/{{{nexus}}}#{{{nexus}}} {{{nexuslvl}}}{{!}}{{{nexus}}}: {{{nexuslvl}}}]]| | ||
}} | }} | ||
{{#if {{{nexus2|}}} | | {{#if {{{nexus2|}}} | | ||
* [[Nexus/{{{nexus2}}}#{{{nexus2}}} {{{nexus2lvl}}} | * [[Nexus/{{{nexus2}}}#{{{nexus2}}} {{{nexus2lvl}}}{{!}}{{{nexus2}}}: {{{nexus2lvl}}}]]| | ||
}} | }} | ||
Recommended | Recommended | ||
{{#switch {{{skill}}} | {{#switch {{{skill}}} | ||
| Weapons = [[:Category:Manufacturing{{!}}Manufacturing]] | |||
| Armour = [[:Category:Manufacturing{{!}}Manufacturing]] | |||
| Items = [[:Category:Manufacturing{{!}}Manufacturing]] | |||
| #default = [[:Category:{{{skill}}}{{!}}{{{skill}}}]] | |||
}} | }} | ||
level: {{{lvl|}}}<br /> | level: {{{lvl|}}}<br /> | ||
Base | Base | ||
{{#switch {{{skill}}} | {{#switch {{{skill}}} | ||
| Weapons = Manufacturing | |||
| Armour = Manufacturing | |||
| Items = Manufacturing | |||
| #default = {{{skill}}} | |||
}} | }} | ||
experience given: {{{exp}}}<br /> | experience given: {{{exp}}}<br /> |
Revision as of 13:20, 21 October 2008
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
- 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
- tool: tool needed to make; optional
- toolsec: if tool is not found in the Items/ subdirectory, add the directory; optional
- tool2: second tool needed to make; optional
- tool2sec: see toolsec; 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.
- ing1sec: Skill or section of the first ingredient, see skill above; optional, defaults to Harvestables.
- 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.
- ing2sec...ing6sec: same as ing1sec 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 = |skill = |exp = |lvl = |know = |nexus = |nexuslvl = |nexus2 = |nexus2lvl = |food = |tool = |tool2 = |ing1 = |ing1amount = |ing1sec = |ing2 = |ing2amount = |ing2sec = |ing3 = |ing3amount = |ing3sec = |ing4 = |ing4amount = |ing4sec = |ing5 = |ing5amount = |ing5sec = |ing6 = |ing6amount = |ing6sec = }}
Example
{{ManuInfo |manutitle = Mixing Information |ingstitle = Get this stuff first |item = Fire Essence |skill = Alchemy |exp = 6 |lvl = 1 |food = 1 |ing1 = Sulfur |ing1amount = 1 |ing1sec = Harvestables |ing2 = Red Rose |ing3 = Red Snapdragon }}
Note that the example makes use of the fact that ing#sec defaults to Harvestables and ing#amount defaults to 1 for non-empty ing#s, I left that in for the first ingredient as an example.