Difference between revisions of "Template:Resource Box"

From Pangaea Wiki
Jump to: navigation, search
Line 1: Line 1:
<noinclude>{{Resource Box
+
<noinclude>
|resource=Date Palm
+
If you do not add the optional parameters, then it will automatically write "nothing" instead.
|page=Trees
+
==Template Parameters==
|bigpicture=Date-tree.png
+
<pre>
|dagger=Dates}}
+
{{Resource Box
 +
|resource=
 +
|bigpicture=
 +
 +
''Optional''
 +
|dagger=
 +
|hatchet=
 +
|pickaxe=
 +
}}
 +
</pre>
  
</noinclude><includeonly>{| class="pangtable"
+
</noinclude><includeonly>{| class="pangtable"  
|rowspan=5| {{#if:{{{bigpicture|}}}|[[File:{{{bigpicture}}}|link={{#if:{{{page|}}}|{{{page}}}}}]]}}
+
|rowspan=5| {{#if:{{{bigpicture|}}}|[[File:{{{bigpicture}}}|link=]]}}
!colspan=2|Resources gathered from [[{{{page}}}|{{{resource}}}]]
+
!colspan=2 style="min-width:300px"|Resources gathered from [[{{{page}}}|{{{resource}}}]]
 +
|-
 +
!style="width:80px" |[[File:Dagger.png|link=]] Dagger
 +
|{{{dagger|<span style="color:#000">nothing</span>}}}
 +
|-
 +
![[File:Hatchet.png|link=]] Hatchet
 +
|{{{hatchet|<span style="color:#000">nothing</span>}}}
 +
|-
 +
![[File:Pickaxe.png|link=]] Pickaxe
 +
|{{{pickaxe|<span style="color:#000">nothing</span>}}}
 
|-
 
|-
{{#if:{{{dagger|}}} |![[File:Dagger.png|link=]] Dagger
 
{{!}} {{{dagger}}}
 
{{!}}-}}
 
{{#if:{{{hatchet|}}} |![[File:Hatchet.png|link=]] Hatchet
 
{{!}} {{{hatchet}}}
 
{{!}}-}}
 
{{#if:{{{pickaxe|}}} |![[File:Pickaxe.png|link=]] Pickaxe
 
{{!}} {{{pickaxe}}}
 
{{!}}-}}
 
 
|}</includeonly>
 
|}</includeonly>

Revision as of 14:27, 16 March 2016

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

Template Parameters

 {{Resource Box
 |resource=
 |bigpicture=
 
''Optional''
 |dagger=
 |hatchet=
 |pickaxe=
 }}