Template:Infobox tree/doc: Difference between revisions

From Ring of Brodgar
Jump to navigation Jump to search
No edit summary
(TRV Update/Note.)
 
(8 intermediate revisions by 3 users not shown)
Line 1: Line 1:
;Data dump
{{infobox tree
| ptext1 = {{{ptext1}}}
| objectsreq = Red Apple Core
| terrain = [[Beech Grove]], [[Blue Sod]], [[Deep Tangle]]
| branch = 12
| branchtype = Olive Branch
| bark = 12
| barktype = Tough Bark
| tfruit = Red Apple
| tfruitqt = 12
| tother = Worm-Eaten Apple
| totherqt = 12
| log = 12
| block1 = 12
| block2 = 12
| board1 = 12
| board2 = 12
| board3 = 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>
Infobox stuff:
{{infobox tree
- name......: alternative infobox-title (defaults to page-name)
 
- image.....: alternative infobox-image (defaults to (hafen-)page-name.png)
    General infobox parameters. Should only be used when needed or appropriate.
- imagewidth: adjust image display size. (defaults to image-size, capped at 320)
| name        = Infobox Title (defaults to related page-name)
- caption...: infobox-image caption text.
| 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)


:Game-object stuff:
| ptext1      = In-game/paginae text (type1). -- If any.
- objectsreq: needed stuff.
- (terrain): biome's (?:''Native only or also plantable by user'')
- branch....: number of xxx (resource, int)
- bark......: number of xxx (resource, int), resource name/pagelink.
- bough.....: mixed input, number of xxx (resource, int), resource name/pagelink. (split/rec)
- seed/fruit: mixed input, number of xxx (resource, int), resource name/pagelink.
-- issue: seed and fruit are not always the same thing. (split/full)
- other.: ... (other resources)
- log.......: number of xxx (resource, int)
- block.....: number of xxx (resource, int), data pair: stone-axe/metal-axe. (split/rec)
-- 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:
    General requires back-linking
- specific: (used in conjunction with requires)
| objectsreq  = Red Apple Core (Item to grown tree from)(Single item only)
- requires: ...


Auto settings:
    Tree products(1)
- Category: Trees
| branch      = 12
- Property: object_type=tree (old experimental stuff)
| branchtype  = Olive Branch (Optional: Defaults to "Branch")
| bark        = 12
| barktype    = Tough Bark (Optional: Defaults to "TreeBark")
| 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:branch (num/int)
- bark......: property:bark (num/int)
- bough.....: property:bough (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)
- block1.....: property:block1 (num/int)
- block2.....: property:block2 (num/int)
- board1.....: property:board1 (num/int)
- board2.....: property:board2 (num/int)


Usage:
    Log products (''Currently overruled in infobox by Tree-Resource Value(trv) if available (Italic nrs). ie: Used as fallback'').
- objectsreq: (44/250), prop:requires(single)
| block1      = 12
- location: (46/95), PageLink(list), ePageLink
| block2      = 12
- branch: 46, int, N/A
| board1      = 12
- bark..: 46, int, PageLink xN, N/A
| board2      = 12
- bough.: 46, int, PageLink, N/A, None
| board3      = 12
- seed..: 46, int, PageLink
- other.: 46, int, PageLink, N/A, None
- log...: 46. int
- block.: 46, int/int, (n/n)
- board.: 46, int/int, (n/n)


Related properties:
    Tree terrain
- Bark: Not used. Probable target: Barks per tree-type, Type: Number.
| terrain = [[Beech Grove]], [[Blue Sod]], [[Deep Tangle]], ...
-- ... Not sure yet about using SMW Record-type, general-usage & -usability.
}}
-- Other potential similar resource number-data targets: Branches, Bough, Logs, Blocks [Stone/Metal], Boards [Bone/Metal].
</pre>
--- Note: Has name component: Bark, Bough (, Seed, other).
- Grown from: Old/Experimental, only used at Chestnut Tree‎ page.
- Requires: General(all required stuff), not useful for pulling/#asking specific type data.
- (Terrain): Not used by trees, but it could.


Tree Record options: (explore first, limit/optimize later)
- Minimal approach: only store data needed to render some general subject table.
-- Check some other wiki's on how they do stuff.
- Excluded: objectsreq, separately processed/stored.
- Maybe: block, board. (...)
- Maybe: locations. (...)
- Resource names: Separate? ie: tree-resource-count field names record (per tree).
-- Would remove the need to include them in the tree-resource-count record.
-- Not sure about 'other' field in that case.
--- Would potentially double up on needed property definitions.
---- Needs good property naming to bypass potential name collisions.
Rec_name:
- Tree name (tree page name)
Fields:
- Branch(count): Number(Int)
- Bark(count)..: Number(Int)
-- Bark(name)..: Text (or page)
- Bough(count).: Number(Int)
-- Bough(name).: Text (or page)
- Log(count)...: Number(Int)
- Fruit(count).: Number(Int)
-- Fruit(name).: Text (or page)
- Seed(count)..: none or default/fixed to 1
-- Seed(name)..: Text (or page)
...
- Block_1/S(count): Number(Int)
- Block_2/M(count): Number(Int)
- Board_1/B(count): Number(Int)
- Board_2/M(count): Number(Int)
...
- other: 46, int, PageLink, N/A, None
...
Implied States(number elements):
- Known: Zero or Positive.
-- Positive: Available.
-- Zero: None or N/A.
- Negative(-1): Unknown.


;Properties
* ptext1 -> [[property:Paginae/text1|Paginae/text1]] (page)
* objectsreq -> [[property:requires|requires]] (page)
* branch -> [[property:branchpertree|branchpertree]] (nr)
* branchtype -> [[property:trees_branchtype|trees_branchtype]] (page)
* bark -> [[property:barkpertree|barkpertree]] (nr)
* barktype -> [[property:trees_barktype|trees_barktype]] (page)
* 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)
* board3 -> [[property:boardperlog_sawmill|boardperlog_sawmill]] (nr)
* terrain -> [[property:terrain|terrain]] (page)
* (auto) -> [[property:object_type|object_type]] as "tree" (text)
;Categories
* (auto) -> [[:Category:Trees|Trees]]


</pre>


;Collected: --[[User_talk:MvGulik|<i><font color="#666" size="2px">.MvGulik.</font></i>]] 23:02, 2 September 2018 (EDT)
<includeonly>[[Category:Infobox templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>

Latest revision as of 12:36, 26 September 2024

Infobox tree/doc
Infobox tree.png

"{{{ptext1}}}"

Grown From Red Apple Core
Found On Beech Grove, Blue Sod, Deep Tangle
Bark 12
Bark Type Tough Bark
Branches 12
Branch Type Olive 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) 12
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)

| ptext1      = In-game/paginae text (type1). -- If any.

    General requires back-linking
| objectsreq  = Red Apple Core (Item to grown tree from)(Single item only)

    Tree products(1)
| branch      = 12
| branchtype  = Olive Branch (Optional: Defaults to "Branch")
| bark        = 12
| barktype    = Tough Bark (Optional: Defaults to "TreeBark")
| tfruit      = Red Apple
| tfruitqt    = 12
| tother      = Worm-Eaten Apple
| totherqt    = 12

    Tree products(2)
| log         = 12

    Log products (''Currently overruled in infobox by Tree-Resource Value(trv) if available (Italic nrs). ie: Used as fallback'').
| block1      = 12
| block2      = 12
| board1      = 12
| board2      = 12
| board3      = 12

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


Properties


Categories