Difference between revisions of "Template:SMWObject"

From Wikispooks
Jump to navigation Jump to search
(fix docs)
(Support |logo)
Line 4: Line 4:
 
|{{t|description}}                  = <500 word summary ''([[Property:Description]])''
 
|{{t|description}}                  = <500 word summary ''([[Property:Description]])''
 
|{{t|{{BLUE|infobox}}}}            = The name of the infobox template used by this object (if any) ''([[Property:Has infobox]])''
 
|{{t|{{BLUE|infobox}}}}            = The name of the infobox template used by this object (if any) ''([[Property:Has infobox]])''
 +
|{{t|{{BLUE|logo}}}}            = Option icon for this object ''([[Property:Has logo]])''
 
|{{t|{{VIOLET|key_properties}}}}      = Slash separated list of important properties of this page ''([[Property:Has keyProperties]])''
 
|{{t|{{VIOLET|key_properties}}}}      = Slash separated list of important properties of this page ''([[Property:Has keyProperties]])''
 
|{{t|{{VIOLET|key_property_headers}}}} = Slash separated list of property descriptions (same length as the above) ''([[Property:Has keyPropertyHeaders]])''
 
|{{t|{{VIOLET|key_property_headers}}}} = Slash separated list of property descriptions (same length as the above) ''([[Property:Has keyPropertyHeaders]])''
 
}}
 
}}
</poem></noinclude><includeonly>This object has type [[Has objectClass::SMWObject]].{{Description|{{{description|}}}}}[[Has infobox::{{{infobox|}}}| ]][[Has keyProperties::{{#if: {{{key_properties|}}}|{{{key_properties}}}|Has objectType/Description}}| ]][[Has keyPropertyHeaders::{{#if: {{{key_property_headers|}}}|{{{key_property_headers}}}|Type/Description}}| ]]</includeonly>
+
</poem></noinclude><includeonly>{{HelpSection|image={{{logo|}}}}}This object has type [[Has objectClass::SMWObject]].{{Description|{{{description|}}}}}[[Has infobox::{{{infobox|}}}| ]][[Has keyProperties::{{#if: {{{key_properties|}}}|{{{key_properties}}}|Has objectType/Description}}| ]][[Has keyPropertyHeaders::{{#if: {{{key_property_headers|}}}|{{{key_property_headers}}}|Type/Description}}| ]]</includeonly>

Revision as of 22:33, 26 July 2014

This template is for defining semantic objects. It takes the following parameters:

{{SMWObject
|description = <500 word summary (Property:Description)
|infobox = The name of the infobox template used by this object (if any) (Property:Has infobox)
|logo = Option icon for this object (Property:Has logo)
|key_properties = Slash separated list of important properties of this page (Property:Has keyProperties)
|key_property_headers = Slash separated list of property descriptions (same length as the above) (Property:Has keyPropertyHeaders)
}}