Property:HPrec

From Salem Wiki
Jump to: navigation, search
m (Protected "Property:HPrec": used in bug report on SMW ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
m (hopefully this will enable the use of records...)
Line 1: Line 1:
 
__SHOWFACTBOX__
 
__SHOWFACTBOX__
 
;Value = [[Has type::Record]]
 
;Value = [[Has type::Record]]
;Fields = [[Has fields::Number; Number; Number]]
+
;Fields = [[Has fields::Amount; Amount; Amount]]
 
==About==
 
==About==
  <span style="color:red">Due to a bug in SMW v1.7.1 we are still unable to use type Record!<br/>See [http://semantic-mediawiki.org/wiki/Help_talk:Type_Record#not_working_as_intended_with_multiple_fields_of_same_type report]{{:User:©TriMoon™/Signature}} 13:58, 13 July 2012 (CDT)</span>
+
  <span style="color:red">Due to a bug in SMW v1.7.1 we are still unable to use type Record!<br/>See [http://semantic-mediawiki.org/wiki/Help_talk:Type_Record#not_working_as_intended_with_multiple_fields_of_same_type report]{{:User:©TriMoon™/Signature}} 13:58, 13 July 2012 (CDT)<br/>I used "<nowiki>[[Has fields::Number; Number; Number]]</nowiki>", as was mentioned in documentation.<br/>Hopefully with new values it will work{{:User:©TriMoon™/Signature}}</span>
 
This property holds info on how much '''Hit Points''' an [[Object]] has.<br/>
 
This property holds info on how much '''Hit Points''' an [[Object]] has.<br/>
 
This property will be used by {{t|Infobox}}, using {{t|HasProp|HPrec}}, to automatically show this info.<br/>
 
This property will be used by {{t|Infobox}}, using {{t|HasProp|HPrec}}, to automatically show this info.<br/>

Revision as of 00:15, 1 August 2012

Value = Record
Fields = Amount, Amount, Amount

About

Due to a bug in SMW v1.7.1 we are still unable to use type Record!
See report
⇐⇑©TriMoon™TalkHandyWikiLinks @ 13:58, 13 July 2012 (CDT)
I used "[[Has fields::Number; Number; Number]]", as was mentioned in documentation.
Hopefully with new values it will work
⇐⇑©TriMoon™TalkHandyWikiLinks @

This property holds info on how much Hit Points an Object has.
This property will be used by {{Infobox}}, using {{HasProp|HPrec}}, to automatically show this info.
See Structure Damage for more info.

The record-fields, in sequence, are:

  1. type=Number (required)
    Holds the minimum amount of Hit Points of the Object.
  2. type=Number (required)
    Holds the maximum amount of Hit Points of the Object.
    Needs to be equal or greater than Field #1.
    Will need to default to Field #1, when setting by routines, if left empty.
  3. type=Number (optional)
    Holds the avarage amount of Hit Points of the Object.
    Needs to be calculated when left empty.
... more about "HPrec"
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.
Amount, Amount, Amount +  and Number"Number" is a type and predefined property provided by Semantic MediaWiki to represent numeric values., Number"Number" is a type and predefined property provided by Semantic MediaWiki to represent numeric values., Number"Number" is a type and predefined property provided by Semantic MediaWiki to represent numeric values. +
Has type"Has type" is a predefined property that describes the datatype of a property and is provided by Semantic MediaWiki.