Template:ManuInfo: Difference between revisions

From Eternal Lands Wiki
Jump to navigation Jump to search
No edit summary
m (116 revisions imported)
 
(112 intermediate revisions by 11 users not shown)
Line 1: Line 1:
<includeonly>
<includeonly>{{
[[Image:{{{item|default item image}}}.png]]
#switch: {{{skill}}}
==={{{ingstitle|Ingredients}}}===
|Summoning = {{#if:{{{desc|}}}|{{{desc}}}
[[Image:{{{ing1|default item image}}} small.png]] {{{ing1amount|1}}} [[{{{ing1sec|Harvestables}}}/{{{ing1|Index}}} | {{{ing1|Error! No ingredient specified.}}}]]<br /> {{#if {{{ing2|}}} |
 
[[Image:{{{ing2}}}_small.png]] {{{ing2amount|1}}} [[{{{ing2sec|Harvestables}}}/{{{ing2}}}|{{{ing2}}}]]<br /> |&nbsp; }}
{{=}}|{{=}}}}
{{#if {{{ing3|}}} |
|#default = [[File:{{{item|default item image}}}.png|80px]]
[[Image:{{{ing3}}}_small.png]] {{{ing3amount|1}}} [[{{{ing3sec|Harvestables}}}/{{{ing3}}}|{{{ing3}}}]]<br />
 
|&nbsp; }}
{{#if:{{{desc|}}}|{{{desc}}}
{{#if {{{ing4|}}} |
 
[[Image:{{{ing4}}}_small.png]] {{{ing4amount|1}}} [[{{{ing4sec|Harvestables}}}/{{{ing4}}}|{{{ing4}}}]]<br />
{{=}}|{{=}}}}
| }}
}}== {{{ingstitle|Ingredients}}} ===
{{#if {{{ing5|}}} |
{{#if: {{{resamount|}}} | Note: The recipe produces {{{resamount}}} {{{item}}} at once}}
[[Image:{{{ing5}}}_small.png]] {{{ing5amount|1}}} [[{{{ing5sec|Harvestables}}}/{{{ing5}}}|{{{ing5}}}]]<br />
* [[File:{{{ing1|default item image}}}.png|25px]] {{{ing1amount|1}}} [[{{{ing1|Harvesting {{!}} Error! No ingredient specified.}}}]]<br />{{
| }}
#if: {{{ing2|}}} | * [[File:{{{ing2}}}.png|25px]] {{{ing2amount|1}}} [[{{{ing2}}}]]<br />}}{{
{{#if {{{ing6|}}} |
#if: {{{ing3|}}} | * [[File:{{{ing3}}}.png|25px]] {{{ing3amount|1}}} [[{{{ing3}}}]]<br />}}{{
[[Image:{{{ing6}}}_small.png]] {{{ing6amount|1}}} [[{{{ing6sec|Harvestables}}}/{{{ing6}}}|{{{ing6}}}]]<br />
#if: {{{ing4|}}} | * [[File:{{{ing4}}}.png|25px]] {{{ing4amount|1}}} [[{{{ing4}}}]]<br />}}{{
| }}
#if: {{{ing5|}}} | * [[File:{{{ing5}}}.png|25px]] {{{ing5amount|1}}} [[{{{ing5}}}]]<br />}}{{
==={{{manutitle|Manufacturing information}}}===
#if: {{{ing6|}}} | * [[File:{{{ing6}}}.png|25px]] {{{ing6amount|1}}} [[{{{ing6}}}]]<br />}}{{
{{#if {{{tool|}}} |
#if: {{{ingweight|}}} | * Total: {{{ingweight}}} EMU<br />}}
Required tools:<br /> [[Image:{{{tool}}}_small.png]] [[{{{toolsec|Items}}}/{{{tool}}}|{{{tool}}}]]<br />
 
|}}
=== {{{manutitle|Manufacturing information}}} ===
{{#if {{{tool2|}}} |
Recommended {{#switch: {{{skill}}}
[[Image:{{{tool2}}}_small.png]] [[{{{tool2sec|Items}}}/{{{tool2}}}|{{{tool2}}}]]<br />
|}}
{{#if {{{know|}}} |
Knowledge required: [[Books/{{{know}}}|{{{know}}}]]<br />
{{#if {{{nexus|}}} |
Required nexus:
* [[Nexus/{{{nexus}}}#{{{nexus}}} {{{nexuslvl}}}|{{{nexus}}}: {{{nexuslvl}}}]]|
}}
{{#if {{{nexus2|}}} |
* [[Nexus/{{{nexus2}}}#{{{nexus2}}} {{{nexus2lvl}}}|{{{nexus2}}}: {{{nexus2lvl}}}]]|
}}
Recommended
{{#switch {{{skill}}}
| Weapons = [[:Category:Manufacturing|Manufacturing]]
| Weapons = [[:Category:Manufacturing|Manufacturing]]
| Armour = [[:Category:Manufacturing|Manufacturing]]
| Armour = [[:Category:Manufacturing|Manufacturing]]
| Items = [[:Category:Manufacturing|Manufacturing]]
| Items = [[:Category:Manufacturing|Manufacturing]]
| #default = [[:Category:{{{skill}}}|{{{skill}}}]]
| #default = [[:Category:{{{skill}}}|{{{skill}}}]]
}}
}} level: {{{lvl|}}}<br />
level: {{{lvl|}}}<br />
Base {{#switch: {{{skill}}}
Base  
{{#switch {{{skill}}}
| Weapons = Manufacturing
| Weapons = Manufacturing
| Armour = Manufacturing
| Armour = Manufacturing
| Items = Manufacturing
| Items = Manufacturing
| #default = {{{skill}}}
| #default = {{{skill}}}
}}
}} experience given: {{{exp}}}<br />
experience given: {{{exp}}}<br />
Required [[:Category:Tools|tools]]: {{#if: {{{tool|}}} |
Food substracted: {{{food}}}
* [[File:{{{tool}}}.png|25px]] [[{{{tool}}}]]<br />| * <span style="color:green">None</span>}}{{
</includeonly>
#if: {{{tool2|}}} |
<noinclude>
* [[File:{{{tool2}}}.png|25px]] [[{{{tool2}}}]]<br />}}
[[Books|Knowledge]] required: {{ #if: {{{know|}}} |
* {{
#if: {{{bookpic|}}} | [[File:{{{bookpic}}}.png|25px]] }} [[{{{know}}}]]<br />| * <span style="color:green">None</span> <br />}}
Required [[nexus]]: {{
#if: {{{nexus|}}} |
* [[{{{nexus}}} Nexus#{{{nexus}}} {{{nexuslvl}}}|{{{nexus}}}: {{{nexuslvl}}}]]| * <span style="color:green">None</span> <br />}}{{
#if: {{{nexus2|}}} |
* [[{{{nexus2}}} Nexus#{{{nexus2}}} {{{nexus2lvl}}}|{{{nexus2}}}: {{{nexus2lvl}}}]]}}
{{#if: {{{food|}}} |[[Food]] subtracted: {{{food}}}<br />}}{{
#if: {{{actionpoints|}}} |[[Action Points]] subtracted: {{{actionpoints}}}<br />}}{{
#if: {{{mana|}}} |Mana subtracted: {{{mana}}}<br />}}</includeonly><noinclude>
== ManuInfo template ==
== ManuInfo template ==
=== Purpose ===
=== Purpose ===
Line 56: Line 52:


* This template does not include the weight and stackability of items as that's not related to the manufacturing of an item.
* This template does not include the weight and stackability of items as that's not related to the manufacturing of an item.


=== Parameters ===
=== Parameters ===
* '''item''': Name of the item (capitalization, spacing etc. as the wiki-page-name); ''mandatory''
* '''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''
* '''ingstitle''': Subtitle for the list of ingredients, defaults to "Ingredients"; ''optional''
* '''manutitle''': Subtitle for the manufacturing details, defaults to "Manufacturing information"; ''optional''
* '''manutitle''': Subtitle for the manufacturing details, defaults to "Manufacturing information"; ''optional''
* '''resamount''': Amount of items produced; ''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''
* '''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
* '''exp''': base experience given, defaults to empty
* '''lvl''': recommended skill level, 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''
* '''know''': required knowledge, i.e. the link will be made to ''know|know''; ''optional''
* '''bookpic''': book image; ''optional'' (if knowledge is required you must enter this line but you can leave it empty)
* '''nexus''': required nexus; ''optional''
* '''nexus''': required nexus; ''optional''
* '''nexuslvl''': level of the required nexus; ''optional''
* '''nexuslvl''': level of the required nexus; ''optional''
* '''nexus2''': second required nexus; ''optional''
* '''nexus2''': second required nexus; ''optional''
* '''nexus2lvl''': level of the second required nexus; ''optional''
* '''nexus2lvl''': level of the second required nexus; ''optional''
* '''food''': Food cost
* '''food''': Food cost; ''optional''
* '''actionpoints''': Action Point cost; ''optional''
* '''mana''': Mana cost; ''optional''
* '''tool''': tool needed to make; ''optional''
* '''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''
* '''tool2''': second tool needed to make; ''optional''
* '''tool2sec''': see ''toolsec''; ''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.
* '''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''.
* '''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''.
* '''ing2sec'''...'''ing6sec''': same as ''ing1sec'' above for second through sixth ingredient, but ''optional''.
* '''ingweight''': total amount of ingredients' weight, but ''optional''


=== Usage ===
=== Usage ===
Line 86: Line 83:
<pre><nowiki>
<pre><nowiki>
{{ManuInfo
{{ManuInfo
|manutitle =
|manutitle =
|ingstitle =
|ingstitle =
|item =
|item =
|skill =
|desc =
|exp =
|resamount =
|lvl =
|skill =
|know =
|exp =
|nexus =
|lvl =
|nexuslvl =
|know =
|nexus2 =
|bookpic =
|nexus2lvl =
|nexus =
|food =
|nexuslvl =
|tool =
|nexus2 =
|tool2 =
|nexus2lvl =
|ing1 =
|food =
|ing1amount =
|actionpoints =
|ing1sec =
|mana =
|ing2 =
|tool =
|ing2amount =
|tool2 =
|ing2sec =
|ing1 =
|ing3 =
|ing1amount =
|ing3amount =
|ing2 =
|ing3sec =
|ing2amount =
|ing4 =
|ing3 =
|ing4amount =
|ing3amount =
|ing4sec =
|ing4 =
|ing5 =
|ing4amount =
|ing5amount =
|ing5 =
|ing5sec =
|ing5amount =
|ing6 =
|ing6 =
|ing6amount =
|ing6amount =
|ing6sec =
|ingweight =
}}
}}
</nowiki></pre>
</nowiki></pre>
Line 123: Line 120:
<pre><nowiki>
<pre><nowiki>
{{ManuInfo
{{ManuInfo
|manutitle = Mixing Information
|manutitle = Mixing Information
|ingstitle = Get this stuff first
|ingstitle = Get this stuff first
|item = Fire Essence
|desc = The roof, the roof, the roof is on [[Alchemy/Fire Essence|fire]]!
|skill = Alchemy
|item = Fire Essence
|exp = 6
|skill = Alchemy
|lvl = 1
|exp = 6
|food = 1
|lvl = 1
|ing1 = Sulfur
|food = 1
|ing1amount = 1
|ing1 = Sulfur
|ing1sec = Harvestables
|ing1amount = 1
|ing2 = Red Rose
|ing2 = Red Rose
|ing3 = Red Snapdragon
|ing3 = Red Snapdragons
|ingweight = 4
}}
}}
</nowiki></pre>
</nowiki></pre>
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.
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
|ingstitle = Get this stuff first
|ingstitle = Get this stuff first
|item = Fire Essence
|item = Fire Essence
|skill = Alchemy
|desc = The roof, the roof, the roof is on [[Fire Essence|fire]]!
|exp = 6
|skill = Alchemy
|lvl = 1
|exp = 6
|food = 1
|lvl = 1
|ing1 = Sulfur
|food = 1
|ing1amount = 1
|ing1 = Sulfur
|ing1sec = Harvestables
|ing1amount = 1
|ing2 = Red Rose
|ing2 = Red Rose
|ing3 = Red Snapdragon
|ing3 = Red Snapdragons
|ingweight = 4
}}
}}
 
</noinclude>
</noinclude>

Latest revision as of 07:34, 9 August 2021

ManuInfo template[edit]

Purpose[edit]

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[edit]

  • 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
  • resamount: Amount of items produced; 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, i.e. the link will be made to know|know; optional
  • bookpic: book image; optional (if knowledge is required you must enter this line but you can leave it empty)
  • 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
  • actionpoints: Action Point 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.
  • ingweight: total amount of ingredients' weight, but optional

Usage[edit]

Copy and paste the code below, fill in the necessary information, remove unused parameters, preview, save.

{{ManuInfo
|manutitle =
|ingstitle =
|item =
|desc =
|resamount =
|skill =
|exp =
|lvl =
|know =
|bookpic =
|nexus =
|nexuslvl =
|nexus2 =
|nexus2lvl =
|food =
|actionpoints =
|mana =
|tool =
|tool2 =
|ing1 =
|ing1amount =
|ing2 =
|ing2amount =
|ing3 =
|ing3amount =
|ing4 =
|ing4amount =
|ing5 =
|ing5amount =
|ing6 =
|ing6amount =
|ingweight =
}}

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 Snapdragons
|ingweight = 4
}}

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

Mixing Information[edit]

Recommended Alchemy level: 1
Base Alchemy experience given: 6
Required tools:

  • None

Knowledge required:

  • None

Required nexus:

  • None

Food subtracted: 1