Property:Loot

From Salem Wiki
Jump to: navigation, search
(Initial setup)
 
m (updated fields definition to custom types as per SMW1.7)
Line 1: Line 1:
 
__SHOWFACTBOX__
 
__SHOWFACTBOX__
 
;Value = [[Has type::String]]
 
;Value = [[Has type::String]]
;Fields = [[Has fields::Page; Number; String]]
+
;Fields = [[Has fields::Objectname; Amount; Heading]]
 
==About==
 
==About==
 
This property holds info on which [[Loot]] can be gained from an [[:Category:Objects|Object]].
 
This property holds info on which [[Loot]] can be gained from an [[:Category:Objects|Object]].

Revision as of 23:59, 31 July 2012

Value = String
Fields = Objectname, Amount, Heading

About

This property holds info on which Loot can be gained from an Object.
This property will be used by {{Infobox}}, using {{PropVals}}, to automatically list the value(s) even when used multiple times on a page.

The record-fields, in sequence, are:

  1. type=Page (required)
    Holds the pagename of the loot.
  2. type=Number (optional)
    Holds the amount of the loot gained.
    Will need to default to 1 in routines using it.
  3. type=String (optional)
    Holds the Heading of the loot to group when listing the info of the Object.
    Should eliminate grouping when not used.
... more about "Loot"
Has fields"Has fields" is a predefined property to define a list of properties used with a record typed property and is provided by Semantic MediaWiki.
Has type"Has type" is a predefined property that describes the datatype of a property and is provided by Semantic MediaWiki.