Difference between revisions of "Template:Reagent"

From Pangaea Wiki
Jump to: navigation, search
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
+
<span class="reagent_icon" data-character="{{{1|}}}" style="white-space: nowrap">[[File:{{{1|Reagent}}}.png|{{{size|20}}}px|alt={{{1|Reagent}}}|link=Reagents]]{{<!--
===Template Parameters===
+
This template relies on undefined parameters, which means it matters in which order you write them.
+
#The first undefined parameter is the ''reagent name'' as it would appear in the image file name.
+
#The second undefined parameter allows you to customize the name of the link
+
#If you wish to have only the image icon without a written link, then you add the <code>icononly=</code> parameter.
+
{{Reg
+
&#124;Name of Reagent
+
&#124;Custom link name
+
&#124;icononly=
+
}}
+
===Examples of using the tempate===
+
:<code>{{Reg&#124;Garlic}}</code>
+
:{{Reg|Garlic}}
+
:<code>{{Reg&#124;Garlic&#124;Spicy Garlic }}</code>
+
:{{Reg|Garlic|Spicy Garlic}}
+
:<code>{{Reg&#124;''Garlic''&#124;icononly=yes}}</code>
+
:{{Reg|Garlic|icononly=yes}}
+
 
+
 
+
</noinclude><includeonly><span class="reagent_icon" data-character="{{{1|}}}" style="white-space: nowrap">[[File:{{{1|Reagent}}}.png|{{{size|20}}}px|alt={{{1|Reagent}}}|link={{{link|{{{1}}}}}}]]{{<!--
+
 
   -->#if:{{{icononly|}}}<!--
 
   -->#if:{{{icononly|}}}<!--
   -->||&nbsp;<span>[[{{{link|{{{1|{{{Champion}}}}}}}}}|{{{2|{{{1|Reagent}}}}}}]]</span>|<!--
+
   -->||&nbsp;<span>[[{{{link|Reagents}}}|{{{2|{{{1|Reagent}}}}}}]]</span>|<!--
-->}}</span></includeonly>
+
-->}}</span><noinclude>{{documentation}}</noinclude>

Latest revision as of 13:50, 13 August 2018

20px Reagent
Documentation icon Template documentation ( view · talk · edit)

Template Parameters

This template relies on undefined parameters, which means it matters in which order you write them.

  1. The first undefined parameter is the reagent name as it would appear in the image file name.
  2. The second undefined parameter allows you to customize the name of the link
  3. If you wish to have only the image icon without a written link, then you add the icononly= parameter.
{{Reg
|Name of Reagent
|Custom link name
|icononly=
}}

Compatible Reagent names

Wiki is very case senstive, except when it comes to the FIRST letter of a link/file name.

Normal Reagents Special Reagents Other Reagents
  • Blackpearl or Black Pearl
  • Bloodmoss or Blood Moss
  • Garlic
  • Ginseng
  • Mandrakeroot or Mandrake Root
  • Nightshade
  • Spiderssilk or Spiders Silk
  • Sulfurousash or Sulfurous Ash
  • Batwing
  • Blackmoor
  • Bloodspawn or Blood spawn
  • Bones
  • Brimstone
  • Daemonbone or Daemon Bone
  • Deadwood
  • Dragonsblood or Dragons Blood
  • Executionerscap or Executioners cap
  • Eyeofnewt or Eye of newt
  • Fertiledirt or Fertile Dirt
  • Obsidian
  • Pigiron or Pig Iron
  • Pumice
  • Serpentsscale or Serpents Scale
  • Vialofblood or Vial of Blood
  • Volcanicash or Volcanic Ash
  • Wyrmsheart or Wyrms Heart
  • Amber
  • Diamond
  • Saphire
  • Ruby
  • Beeswax
  • Cloth
  • Feathers
  • Rawribs or Cut of raw ribs
  • Reaperheartwood
  • Entheartwood

Examples of using the tempate

code results
{{Reg|Garlic}} Garlic Garlic
{{Reg|Garlic|Spicy Garlic }} Garlic Spicy Garlic
{{Reg|Garlic|icononly=yes}} Garlic

See also

{{component}}
The above documentation is transcluded from Template:Reagent/doc.
Editors can experiment in this template's sandbox
Please add categories to the /doc subpage within <includeonly>...</includeonly> tags.