Jump to content

Template:Property: Difference between revisions

From Deep Politics Wiki
WikiSpooks>Robin
Replace #substring:
 
WikiBot (talk | contribs)
m Plain formatting, no semantic markup
 
Line 23: Line 23:
|[[image:SMW.png|90px|link=Wikispooks:Semantic Properties]]
|[[image:SMW.png|90px|link=Wikispooks:Semantic Properties]]
| 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&nbsp;{{Uncapitalize|{{PAGENAMEE}}}}]].}}}}}}</small><br/>
| 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&nbsp;{{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/>}}
{{#if: {{{subPropertyOf|}}}|Sub-property of: {{{subPropertyOf}}} <br/>}}{{#ifexpr: >1 |Has subproperties: <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/>}}
{{#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/>}}-->
{{{description|}}}{{{comment|}}}<br/><!--{{#if: {{{importFrom|}}}|'''Imported from:'''{{{importFrom}}}<br/>}}-->
| &nbsp;
| &nbsp;
|-
|-
Line 31: Line 31:
*{{BLUE|Subject:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}} {{#if: {{{domain|}}}|{{{domain|}}}|{{RED|Error: Unspecified {{t|domain}} parameter!}} }}
*{{BLUE|Subject:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}} {{#if: {{{domain|}}}|{{{domain|}}}|{{RED|Error: Unspecified {{t|domain}} parameter!}} }}
*{{BLUE|Predicate:&nbsp;}} ''{{PAGENAME}}''
*{{BLUE|Predicate:&nbsp;}} ''{{PAGENAME}}''
*{{BLUE|Object:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}} {{#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|}}}|}}
*{{BLUE|Object:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}} {{#if: {{{range|}}}|{{{range|}}}|{{RED|Error: Unspecified {{t|range}} parameter!}} }} {{#if: {{{type|}}}|(type {{{type|}}})|{{#ifeq: {{{status|}}}|system||{{RED|Error: Unspecified {{t|type}} parameter!}} }} }}{{#if: {{{note|}}}|<br/>'''Note: ''' {{{note|}}}|}}
|}
|}
{{PropertyUseTable}}[[Has status::{{{status}}}| ]]
{{PropertyUseTable}}
[[Category:{{{status|}}} Properties]][[Has objectClass::Property| ]][[Has objectClass2::Property| ]]
[[Category:{{{status|}}} Properties]]

Latest revision as of 22:35, 24 September 2026

This template provides a standard format for the descriptions of property pages.
It takes the following arguments: <poem> {{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 }} </poem>Template:Wikispooks:Site Status

File:SMW.png

Expression error: Unexpected > operator. Status: [[:Category:{{{status}}} Properties|{{{status}}}]]

 
RDF logic:
  • Subject:      Error: Unspecified domain parameter!
  • Predicate:  Property
  • Object:        Error: Unspecified range parameter! Error: Unspecified type parameter!


Pages use the property "Property"

Return to property page
Use Expand/Collapse + Up/Dn symbols to sort