Difference between revisions of "Template:Resource Box"

From Pangaea Wiki
Jump to: navigation, search
m
Line 12: Line 12:
 
   | pickaxe=
 
   | pickaxe=
 
   | shovel=
 
   | shovel=
 +
  | addnote=
 
  }}
 
  }}
  
Line 29: Line 30:
 
|{{{hatchet|<span style="color:#000">nothing</span>}}}
 
|{{{hatchet|<span style="color:#000">nothing</span>}}}
 
|-
 
|-
![[File:Pickaxe.png|link=]] Pickaxe
+
{{#if:{{{pickaxe|}}}|![[File:Pickaxe.png|link=]] Pickaxe
|{{{pickaxe|<span style="color:#000">nothing</span>}}}
+
{{!}}{{{pickaxe}}}
|-
+
{{!}}-}}
![[File:Shovel.png|link=]] Shovel
+
{{#if:{{{shovel|}}}|![[File:Shovel.png|link=]] Shovel
|{{{shovel|<span style="color:#000">nothing</span>}}}
+
{{!}}{{{shovel}}}
|-
+
{{!}}-}}
 +
|colspan=2|{{{addnote|}}}
 
|}</includeonly>
 
|}</includeonly>

Revision as of 16:54, 16 March 2016

If you do not add the optional parameters, then it will automatically write "nothing" instead.

  • You can add a link in all the parameters EXCEPT the bigpicture, if you wish to direct people to certain pages.

Template Parameters

{{Resource Box
 | resource=

Optional
 | bigpicture=
 | dagger=
 | hatchet=
 | pickaxe=
 | shovel=
 | addnote=
}}

Example

{{Resource Box|resource=[[Trees|Date Palm]]|bigpicture=Date-tree.png|dagger=Dates|hatchet=[[List of Logs|Date log]]}}