Difference between revisions of "Template:Resource Box"

From Pangaea Wiki
Jump to: navigation, search
m
 
(28 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
+
<includeonly>{{#if: {{{tree|}}} |</includeonly>{{Template:Resource Box/tree
If you do not add the optional parameters, then it will automatically write "nothing" instead.
+
|from={{{from|normal}}}
*You can add a link in all the parameters EXCEPT the ''bigpicture'', if you wish to direct people to certain pages.
+
|link={{{link|Trees}}}
===Template Parameters===
+
|fruit={{{fruit|}}}
{{Resource Box
+
}}<includeonly>}}</includeonly><includeonly>{{#if: {{{corpse|}}} |</includeonly>{{Template:Resource Box/corpse
  &#124; resource=
+
|loot={{{loot}}}
+
|daggercut={{{daggercut}}}
''Optional''
+
|link={{{link|Corpses}}}
  &#124; bigpicture=
+
}}<includeonly>}}</includeonly><includeonly>{{#if: {{{field|}}} |</includeonly>{{Template:Resource Box/field
  &#124; dagger=
+
|
  &#124; hatchet=
+
}}<includeonly>}}</includeonly><includeonly>{{#if: {{{other|}}} |</includeonly>{{Template:Resource Box/other
  &#124; pickaxe=
+
|
  &#124; shovel=
+
}}<includeonly>}}</includeonly><noinclude>{{Documentation}}</noinclude>
}}
+
 
+
==Example==
+
<code><nowiki>{{Resource Box|resource=[[Trees|Date Palm]]|bigpicture=Date-tree.png|dagger=Dates|hatchet=[[List of Logs|Date log]]}}
+
</nowiki></code>
+
{{Resource Box|resource=[[Trees|Date Palm]]|bigpicture=Date-tree.png|dagger=Dates|hatchet=[[List of Logs|Date log]]}}
+
 
+
</noinclude><includeonly>{| class="pangtable"
+
!colspan=2 style="min-width:300px"|{{{resource}}}
+
|rowspan=5| {{#if:{{{bigpicture|}}}|[[File:{{{bigpicture}}}|upright|x300px|link=]]}}
+
|-
+
!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>}}}
+
|-
+
![[File:Shovel.png|link=]] Shovel
+
|{{{shovel|<span style="color:#000">nothing</span>}}}
+
|-
+
|}</includeonly>
+

Latest revision as of 09:25, 19 August 2018

Resourses from normal tree
hatchet normal logs
dagger normal kindling
Resourses from {{{from}}}'s corpse
default loot {{{loot}}}
cut with dagger {{{daggercut}}}
Template:Resource Box/fieldTemplate:Resource Box/other
Documentation icon Template documentation ( view · talk · edit)

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]]}}

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