Template:Infobox tree/doc: Difference between revisions

From Ring of Brodgar
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
;Data dump
{{infobox tree
| objectsreq = Red Apple Core
| terrain = [[Beech Grove]], [[Blue Sod]], [[Deep Tangle]]
| branch = 12
| bark = 12
| tfruit = Red Apple
| tfruitqt = 12
| tother = Worm-Eaten Apple
| totherqt = 12
| log = 12
| block1 = 12
| block2 = 12
| board1 = 12
| board2 = 12
}}
;Description
:This template is used to create a tree infobox on tree pages.
 
 
;Basic syntax
:Type <code>{{t|infobox tree|...}}</code> at the top of the page. Available parameters shown below.
 
 
;Parameters<!--todo:pre vs nowiki - styling vs maintainability issue-->
<pre>
<pre>
General infobox stuff:
{{infobox tree
- name......: alternative infobox-title (defaults to page-name)
- image.....: alternative infobox-image (defaults to page-name.png)
- imagewidth: adjust image display size. (defaults to image-size, capped at 320)
- caption...: infobox-image caption text.


:Game-object notes:
    General infobox parameters. Should only be used when needed or appropriate.
- objectsreq: general objects back-link relations.
| name       = Infobox Title (defaults to related page-name)
- (terrain): biome's (?:''Native only or also plantable by user'')
| image      = File:Example.ext (defaults to "...")
- bough.....: mixed input, number of xxx (resource, int), resource name/pagelink. (split/rec)
| imagewidth  = 123 (To resize image if needed. Capped to a maximum of 350)
- seed/fruit: mixed input, number of xxx (resource, int), resource name/pagelink.
| caption    = text (Concise infobox-image caption text if needed)
-- issue: seed and fruit are not always the same thing. (split/full)
- other.: ... (other resources)
-- note: although closely tree-type related, its more a log-resource than a direct tree resource.
- board.....: number of xxx (resource, int), data pair: bone-saw/metal-saw. (split/rec)
-- note: although closely tree-type related, its more a log-resource than a direct tree resource.


Data called:
| objectsreq  = Red Apple Core (Stem to grown tree from)(Single item only)
- specific: (used in conjunction with requires)
- requires: ...


Auto settings:
    Tree products(1)
- Category: Trees
| branch      = 12
- Property: object_type=tree (old experimental stuff)
| bark        = 12
| tfruit      = Red Apple
| tfruitqt    = 12
| tother      = Worm-Eaten Apple
| totherqt    = 12


Stored Object data: (none: used on page only)
    Tree products(2)
- objectsreq: none
| log         = 12
- terrain...: none
- branch....: property:branchpertree (num/int)
- bark......: property:barkpertree (num/int)
- bough.....: property:boughpertree (num/int)
- tfruit......:  property:tfruit (text/string)
- tfruitqt......:  property:tfruitqt (num/int)
- tother.....: property:tother (text/string)
- totherqt.....: property:totherqt (num/int)
- log.......: property:log (num/int)
(log data)
- block1.....: property:blockperlog (num/int)
- block2.....: property:blockperlog_m (num/int)
- board1.....: property:boardperlog (num/int)
- board2.....: property:boardperlog_m (num/int)


Usage:
    Log products
- objectsreq: (--/---), property:requires(single)
| block1      = 12
- location: (--/--), PageLink(list), ePageLink
| block2      = 12
-- see related property pages
| board1      = 12
| board2      = 12


    Tree terrain
| terrain = [[Beech Grove]], [[Blue Sod]], [[Deep Tangle]], ...
}}
</pre>
</pre>
;Properties
* objectsreq -> [[property:requires|requires]] (page)
* branch -> [[property:branchpertree|branchpertree]] (nr)
* bark -> [[property:barkpertree|barkpertree]] (nr)
* tfruit -> [[property:tfruit|tfruit]] (page)
* tfruitqt -> [[property:tfruitqt|tfruitqt]] (nr)
* tother -> [[property:tother|tother]] (page)
* totherqt -> [[property:totherqt|totherqt]] (nr)
* log -> [[property:logpertree|logpertree]] (nr)
* block1 -> [[property:blockperlog|blockperlog]] (nr)
* block2 -> [[property:blockperlog_m|blockperlog_m]] (nr)
* board1 -> [[property:boardperlog|boardperlog]] (nr)
* board2 -> [[property:boardperlog_m|boardperlog_m]] (nr)
* terrain -> [[property:terrain|terrain]] (page)
* (auto) -> [[property:object_type|object_type]] as "tree" (text)
;Categories
* (auto) -> [[:Category:Trees|Trees]]
<includeonly>[[Category:Infobox templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Revision as of 14:06, 29 March 2020

Infobox tree/doc
Infobox tree.png
Grown From Red Apple Core
Found On Beech Grove, Blue Sod, Deep Tangle
Bark 12
Bark Type Treebark
Branches 12
Branch Type Branch
Fruit Red Apple
Fruit Qty 12
Other Worm-Eaten Apple
Other Qty 12
Logs
Blocks (Stone) 12
Blocks (Metal) 12
Boards (Bone) 12
Boards (Metal) 12
Boards (Sawmill) ?
Go to Trees page.
Description
This template is used to create a tree infobox on tree pages.


Basic syntax
Type {{infobox tree|...}} at the top of the page. Available parameters shown below.


Parameters
{{infobox tree

    General infobox parameters. Should only be used when needed or appropriate.
| name        = Infobox Title (defaults to related page-name)
| image       = File:Example.ext (defaults to "...")
| imagewidth  = 123 (To resize image if needed. Capped to a maximum of 350)
| caption     = text (Concise infobox-image caption text if needed)

| objectsreq  = Red Apple Core (Stem to grown tree from)(Single item only)

    Tree products(1)
| branch      = 12
| bark        = 12
| tfruit      = Red Apple
| tfruitqt    = 12
| tother      = Worm-Eaten Apple
| totherqt    = 12

    Tree products(2)
| log         = 12

    Log products
| block1      = 12
| block2      = 12
| board1      = 12
| board2      = 12

    Tree terrain
| terrain = [[Beech Grove]], [[Blue Sod]], [[Deep Tangle]], ...
}}


Properties


Categories