Difference between revisions of "Wikispooks:Semantic Objects"

From Wikispooks
Jump to navigation Jump to search
(Rollout plan for subobjects)
Line 75: Line 75:
 
==Object Templates==
 
==Object Templates==
 
Most object templates share a common structure. Custom Wikispooks template code silently sets the [[Wikispooks:Semantic Properties|Semantic Properties]] (eventually, almost all parameters will have a corresponding property) and then calls an [[Template:infobox|infobox]] template from [[Wikipedia]] to display the information. These are lightly customised, e.g. to add a few extra parameters, such as {{t|{{!}}wikipedia}}.
 
Most object templates share a common structure. Custom Wikispooks template code silently sets the [[Wikispooks:Semantic Properties|Semantic Properties]] (eventually, almost all parameters will have a corresponding property) and then calls an [[Template:infobox|infobox]] template from [[Wikipedia]] to display the information. These are lightly customised, e.g. to add a few extra parameters, such as {{t|{{!}}wikipedia}}.
 +
 +
==Subobjects==
 +
In the longer term, a wider choice of objects might be beneficial. To do this, rather than code objects from scratch, most new objects will probably be derived as 'sub-objects' from another object types according to the 'type' parameter. These could then have 'type' parameters of their own, allowing sub-sub-objects etc. where needed. For this reason, use of the {{t|{{!}}type}} parameter is strongly recommended.
  
 
==See Also==
 
==See Also==

Revision as of 17:09, 6 June 2014

SMW.png

Underpinning WikiSpooks' use of Semantic Mediawiki is a set of objects. None of these are complete as yet. The plan is to create templates first, then forms.

Objects On WikiSpooks

All new pages in the main: namespace should have exactly one object template.
The table below lists the possible templates:

Object SMW Template Infobox Template Form Notes
Book Template:Book Template:Infobox book Form:Book Make this a sub-object of Document?
Concept Template:Concept None Form:Concept The least complete object so far. This is a catch all, so if no other template seems to fit, use this one.
Document Template:Document None Form:Document The most complete object so far, although the template has evolved and still contains some legacy code.
Event Template:Event Template:Infobox event Form:Event Type= { War, Bombing, Meeting, Scandal, Death }
Group Template:Group Template:Infobox organization Form:Group Types= { Nation State, Secret Society, Think Tank, Foundations, Lobby, Corporation, NGO }
Operation Template:Operation Template:Infobox operational plan Form:Operation Maybe draw on Category:Social_Control for different types
Person Template:Person Template:Infobox person Form:Person Types= { ? }
Place Template:Place Template:Infobox settlement Form:Place Buildings up to provinces
Property Template:Property None Form:Property Types= { Special, Display, Data }
Website Template:Website Template:Infobox website Form:Website Types= { ? }

Object Templates

Most object templates share a common structure. Custom Wikispooks template code silently sets the Semantic Properties (eventually, almost all parameters will have a corresponding property) and then calls an infobox template from Wikipedia to display the information. These are lightly customised, e.g. to add a few extra parameters, such as |wikipedia.

Subobjects

In the longer term, a wider choice of objects might be beneficial. To do this, rather than code objects from scratch, most new objects will probably be derived as 'sub-objects' from another object types according to the 'type' parameter. These could then have 'type' parameters of their own, allowing sub-sub-objects etc. where needed. For this reason, use of the |type parameter is strongly recommended.

See Also

Wikispooks logo.png Policy.png Wikispooks to do.png Tools2.png SMW.png
Semantic
Mediawiki
Help.png