Difference between revisions of "Template:Property"
(An effort to pin down the RDF) |
(Replace #substring:) |
||
(81 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | <noinclude>[[Category: | + | <noinclude>[[Category:Object Templates]]'''This template provides a standard format for the descriptions of property pages.'''<br/> |
It takes the following arguments: | It takes the following arguments: | ||
<poem> | <poem> | ||
− | |{{t| | + | {{{{t|Property}} |
+ | |{{t|ON}} = Yes/No according to whether this is an {{ON}} Property | ||
+ | |{{t|display}} = Yes/No according to whether this is a Display Property | ||
+ | |{{t|description}} = a description of the subject resource (<500 characters of plaintext) <!-- [deprecated parameter name '|comment'] --> | ||
+ | |{{t|status}} = {[[:category:Special Properties|special]], [[:category:Stable Properties|stable]], [[:category:Experimental Properties|experimental]], [[:category:Mooted Properties|mooted]]} <!-- | ||
|subClassOf = the subject is a subclass of a class --> | |subClassOf = the subject is a subclass of a class --> | ||
+ | |{{t|rdfs}} = the RDF Export equivalent statement (Special properties only?) | ||
+ | |{{t|importFrom}} = <s>to match this property to one from an imported vocabulary</s> - Should still be assigned, but the parameter is currently disabled due to SMW incompatibility | ||
|{{t|subPropertyOf}} = the parent property of this property (only applies to subproperties) | |{{t|subPropertyOf}} = the parent property of this property (only applies to subproperties) | ||
|{{t|domain}} = description of the domain of the property (which subjects it applies to) | |{{t|domain}} = description of the domain of the property (which subjects it applies to) | ||
|{{t|range}} = description of the range of the property (which values it can take) | |{{t|range}} = description of the range of the property (which values it can take) | ||
− | |{{t|type}} = the property type | + | |{{t|type}} = the property type <!-- |
− | <!--|member = a member of the subject resource | + | |{{t|member}} = a member of the subject resource |
|{{t|seeAlso}} = further information about the subject resource | |{{t|seeAlso}} = further information about the subject resource | ||
|{{t|isDefinedBy}} = the definition of the subject resource--> | |{{t|isDefinedBy}} = the definition of the subject resource--> | ||
− | </poem> | + | |{{t|note}} = further note, e.g. for concerns about/problems with this property |
− | + | }} | |
− | </noinclude> | + | </poem></noinclude>{{Wikispooks:Site Status}}{{SMWDefaultMarkup}} |
− | {|style="width:100%; background:#f6f6f6; margin-top:0.7em; border:1px solid #9a9a9a;" | + | {|style="width:100%; background:#{{#ifeq: {{{ON|}}}|Yes|ffaaaa|f6f6f6}}; margin-top:0.7em; border:1px solid #9a9a9a;" |
− | |[[image:SMW.png|90px|link= | + | |[[image:SMW.png|90px|link=Wikispooks:Semantic Properties]] |
− | | ''{{{comment|}}}'' | + | | style="text-align:left;" | <small>{{RED|{{#ifeq: {{{ON|}}}|Yes|This '''Official Narrative Property''' describes the "official" story. For alternative ideas, use [[Property:{{Capitalize|{{#sub: {{PAGENAMEE}}|3|1}}}}{{#sub: {{PAGENAMEE}}|4}}]].|{{#ifexist: Property:ON_{{Uncapitalize|{{PAGENAMEE}}}}| To describe the {{on}} as distinct from the truth, use the alternative [[Property:ON {{Uncapitalize|{{PAGENAMEE}}}}]].}}}}}}</small><br/> |
+ | {{#if: {{{subPropertyOf|}}}|Sub-property of: [[Subproperty of::{{{subPropertyOf}}}]] <br/>}}{{#ifexpr: {{#ask: [[Subproperty of::{{PAGENAME}}]]|format=count}} >1 |Has subproperties: {{#ask: [[Subproperty of::{{PAGENAME}}]]}} <br/>}} | ||
+ | {{#ifeq: {{{status|}}}|special|This is a [[:Category:Special Properties|special property]]''' [https://semantic-mediawiki.org/wiki/Help:Special_property_{{PAGENAMEE}} <nowiki>[Link]</nowiki>]|Status: [[:Category:{{{status}}} Properties|{{{status}}}]]'''}}<br/>{{#ifeq: {{{display|}}}|Yes|[[image:display property.png|45px]]This is a [[:Category:Display Properties|Display Property]][[Category:Display Properties]] <small>[[Template:{{PAGENAME}}|<nowiki>[Template]</nowiki>]]</small><br/>}} | ||
+ | [[Description::{{{description|}}}{{{comment|}}}| ]]{{{description|}}}{{{comment|}}}<br/><!--{{#if: {{{importFrom|}}}|'''Imported from:'''[[imported from::{{{importFrom}}}]]<br/>}}--> | ||
+ | | | ||
|- | |- | ||
− | |RDF | + | |colspan="2"|{{#if: {{{rdfs|}}}|RDFs equivalent: [http://www.infowebml.ws/rdf-owl/{{{rdfs}}}.htm {{{rdfs}}}]|RDF logic: }} |
− | *Subject: {{#if: {{{domain|}}}|{{{domain|}}}|{{RED|Error: Unspecified {{t|domain}} parameter!}} }} | + | *{{BLUE|Subject: }} {{#if: {{{domain|}}}|{{{domain|}}}|{{RED|Error: Unspecified {{t|domain}} parameter!}} }} |
− | *Predicate: {{PAGENAME}} | + | *{{BLUE|Predicate: }} ''{{PAGENAME}}'' |
− | *Object: {{#if: {{{range|}}}|{{{range|}}}|{{RED|Error: Unspecified {{t|range}} parameter!}} }} | + | *{{BLUE|Object: }} {{#if: {{{range|}}}|{{{range|}}}|{{RED|Error: Unspecified {{t|range}} parameter!}} }} {{#if: {{{type|}}}|(type [[Has type::{{{type|}}}]])|{{#ifeq: {{{status|}}}|system||{{RED|Error: Unspecified {{t|type}} parameter!}} }} }}{{#if: {{{note|}}}|<br/>'''Note: ''' {{{note|}}}|}} |
|} | |} | ||
− | + | {{PropertyUseTable}}[[Has status::{{{status}}}| ]] | |
− | [[Category: | + | [[Category:{{{status|}}} Properties]][[Has objectClass::Property| ]][[Has objectClass2::Property| ]] |
Latest revision as of 06:07, 6 July 2019
This template provides a standard format for the descriptions of property pages.
It takes the following arguments:
{{Property
|ON = Yes/No according to whether this is an Official Narrative Property
|display = Yes/No according to whether this is a Display Property
|description = a description of the subject resource (<500 characters of plaintext)
|status = {special, stable, experimental, mooted}
|rdfs = the RDF Export equivalent statement (Special properties only?)
|importFrom = to match this property to one from an imported vocabulary - Should still be assigned, but the parameter is currently disabled due to SMW incompatibility
|subPropertyOf = the parent property of this property (only applies to subproperties)
|domain = description of the domain of the property (which subjects it applies to)
|range = description of the range of the property (which values it can take)
|type = the property type
|note = further note, e.g. for concerns about/problems with this property
}}
0 Pages use the property "Property"
Return to property page
Use Expand/Collapse + Up/Dn symbols to sort