Difference between revisions of "Template:NodeBox"

From Wurmpedia
Jump to navigation Jump to search
(Resource node template 'NodeBox')
 
 
(17 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
|-
 
|-
 
|
 
|
<!-- Check for image.  If pagename.jpg exist use it. If pagename.jpg does not exists check for pagename.png and use that. Also, add png's to a category so we can see what images need to be converted. Finally, if both pagename.jpg and pagename.png don't exist add the pagename to a category listing of missing images -->
 
 
 
{{#ifexist: Image:{{{image|{{{name|{{PAGENAME}}}}}.jpg}}}
 
{{#ifexist: Image:{{{image|{{{name|{{PAGENAME}}}}}.jpg}}}
 
| [[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|200px|A {{{name|{{PAGENAME}}}}}]]
 
| [[Image: {{{image|{{{name|{{PAGENAME}}}}}.jpg}}}|center|200px|A {{{name|{{PAGENAME}}}}}]]
Line 18: Line 16:
 
|-
 
|-
 
|
 
|
{{location|Please add list of probable locations to the location = line in the template}}
+
 
 +
*{{{location|Please add list of probable locations to the location = line in the template}}}
 +
 
 
|-
 
|-
 
! class="infobox-header-row" | Harvest Method
 
! class="infobox-header-row" | Harvest Method
 
|-
 
|-
 
|
 
|
<ul>
 
 
     {{#switch: {{lc:{{{action}}}}}
 
     {{#switch: {{lc:{{{action}}}}}
     | forage = Collected by [[forage|foraging]].
+
     | forage = *Collected by [[forage|foraging]].
     | botanize = Collected by [[botanize|botanizing]].
+
     | botanize = *Collected by [[botanize|botanizing]].
     | collect = Collected by collecting.
+
     | collect = *Collected by collecting.
 
     | #default = Please add Harvest method to the action = line in the template
 
     | #default = Please add Harvest method to the action = line in the template
 
     }}
 
     }}
</ul>
 
 
|-
 
|-
 
! class="infobox-header-row" | Possible yields
 
! class="infobox-header-row" | Possible yields
 
|-
 
|-
 
|
 
|
{{yields|Please add list of possible yields to the yields = line in the template}}
+
<ul>
 +
{{{yields|Please add list of possible yields to the yields = line in the template}}}
 +
</ul>
 
|-
 
|-
 
! class="infobox-header-row" | Skill
 
! class="infobox-header-row" | Skill
 
|-
 
|-
 
|
 
|
<ul>
+
*Uses {{#switch: {{lc:{{{action}}}}}| forage = [[forage|foraging]]| botanize = [[botanize|botanizing]]| collect = no | #default = Please add Harvest method to the action = line in the template   }} skill.     
    Uses
 
    {{#switch: {{lc:{{{action}}}}}
 
    | forage = [[forage|foraging]]
 
    | botanize = [[botanize|botanizing]]
 
    | collect = no  
 
    | #default = Please add Harvest method to the action = line in the template
 
    }}
 
    skill.     
 
 
</ul>
 
</ul>
 +
|}<!-- End of NodeBox -->
  
|} <!-- End of NodeBox -->
+
'''{{{name}}}''' is a type of [[Resource nodes|Resource node]].
  
[[Category:Resource Nodes]]</includeonly>
+
 
 +
== Description ==
 +
''{{{examine}}}''
 +
 
 +
[[Category:Resource nodes]]
 +
</includeonly>
  
 
<noinclude>
 
<noinclude>
Line 71: Line 69:
 
|location=Grassland, Woodland, Steppe  
 
|location=Grassland, Woodland, Steppe  
 
|action=botanize
 
|action=botanize
|yield=Bouquets of common flowers, lavender flowers, camellia flowers, parsley, oleander, rosemary, lovage, woad, belladonna, rose flowers, and bouquets of dotted flowers.  
+
|yields=Bouquets of common flowers, lavender flowers, camellia flowers, parsley, oleander, rosemary, lovage, woad, belladonna, rose flowers, and bouquets of dotted flowers.  
 +
|examine=Examine text here
 
}}
 
}}
 
</pre>
 
</pre>
Line 82: Line 81:
 
|location=Steppe  
 
|location=Steppe  
 
|action=forage
 
|action=forage
|yield=Woad, thyme, strawberries, wemp plants, cotton, basil, cacao beans, and coffee cherries.  
+
|yields=Woad, thyme, strawberries, wemp plants, cotton, basil, cacao beans, and coffee cherries.  
 
+
|examine=Examine text here
 
}}
 
}}
 
</pre>
 
</pre>

Latest revision as of 20:53, 17 December 2023



Resource node template

This template adds a box with an image of the node, harvest method, probable locations and possible yields.

It is also possible to include general information about Resource nodes on every node page by including the text in this template below the box section

Usage examples:

{{NodeBox
|name=Wildflowers         *** defaults to {{PAGENAME}} ***
|image=Wildflowers.jpg    *** defaults to {{PAGENAME}}.jpg or {{PAGENAME}}.png ***
|location=Grassland, Woodland, Steppe 
|action=botanize
|yields=Bouquets of common flowers, lavender flowers, camellia flowers, parsley, oleander, rosemary, lovage, woad, belladonna, rose flowers, and bouquets of dotted flowers. 
|examine=Examine text here
}}


{{NodeBox
|name=Low brush         *** defaults to {{PAGENAME}} ***
|image=Lowbrush.jpg    *** defaults to {{PAGENAME}}.jpg or {{PAGENAME}}.png ***
|location=Steppe 
|action=forage
|yields=Woad, thyme, strawberries, wemp plants, cotton, basil, cacao beans, and coffee cherries. 
|examine=Examine text here
}}