Difference between revisions of "Template:SMWDefaultMarkup"

From Wikispooks
Jump to navigation Jump to search
(Hide display dates)
(Suspend display properties due to their malfunctioning)
Line 16: Line 16:
 
* [[Property:Has rootFullPageName]]  
 
* [[Property:Has rootFullPageName]]  
 
-->
 
-->
* [[Property:Display docType]]
+
* Below suspended as of 2019-06-19, pending further research
 +
* <s>[[Property:Display docType]]
 
* [[Property:Display born on]]
 
* [[Property:Display born on]]
 
* [[Property:Display died on]]
 
* [[Property:Display died on]]
Line 23: Line 24:
 
* [[Property:Display image2]]
 
* [[Property:Display image2]]
 
* [[Property:Display lifespan]]
 
* [[Property:Display lifespan]]
* [[Property:ON display date]]
+
* [[Property:ON display date]]</s>
 
<hr/>
 
<hr/>
 
2016-04-18: Addition:
 
2016-04-18: Addition:
Line 34: Line 35:
 
{{#ifeq: {{#show: {{PAGENAME}} |?Has objectClass2}}|Person|[[Has bilderbergCount::{{#ask: [[Has fullPageName::~Bilderberg/*]][[Has witness::{{PAGENAME}}]] OR [[Has fullPageName::~Bilderberg/*]][[Has participant::{{PAGENAME}}]]|format=count}}| ]][[Has cercleCount:: {{#ifeq: {{#ask: [[Has fullPageName::~Le Cercle/*]][[Has witness::{{PAGENAME}}]] OR [[Has fullPageName::~Le Cercle/*]][[Has participant::{{PAGENAME}}]]|format=count}}|0|{{#ask: [[{{PAGENAME}}]][[-Has member::Le Cercle]]|format=count}}|{{#ask: [[Has fullPageName::~Le Cercle/*]][[Has witness::{{PAGENAME}}]] OR [[Has fullPageName::~Le Cercle/*]][[Has participant::{{PAGENAME}}]]|format=count}}}}| ]]}}<!--
 
{{#ifeq: {{#show: {{PAGENAME}} |?Has objectClass2}}|Person|[[Has bilderbergCount::{{#ask: [[Has fullPageName::~Bilderberg/*]][[Has witness::{{PAGENAME}}]] OR [[Has fullPageName::~Bilderberg/*]][[Has participant::{{PAGENAME}}]]|format=count}}| ]][[Has cercleCount:: {{#ifeq: {{#ask: [[Has fullPageName::~Le Cercle/*]][[Has witness::{{PAGENAME}}]] OR [[Has fullPageName::~Le Cercle/*]][[Has participant::{{PAGENAME}}]]|format=count}}|0|{{#ask: [[{{PAGENAME}}]][[-Has member::Le Cercle]]|format=count}}|{{#ask: [[Has fullPageName::~Le Cercle/*]][[Has witness::{{PAGENAME}}]] OR [[Has fullPageName::~Le Cercle/*]][[Has participant::{{PAGENAME}}]]|format=count}}}}| ]]}}<!--
  
SET DISPLAY PROPERTIES -->[[Display born on::{{LinkYear|{{#show: {{FULLPAGENAME}} | ?Born on}}}}| ]][[Display died on::{{LinkYear|{{#show: {{FULLPAGENAME}} | ?Died on}}}}| ]][[Display image::{{Display image|{{FULLPAGENAME}}}}| ]][[Display image2::{{Display image|{{FULLPAGENAME}}}}| ]]{{Display docType}}<!--{{Display date}}{{ON display date}}-->{{Display lifespan}}<!--
+
SET DISPLAY PROPERTIES --><!--
 +
 
 +
SUSPENDED 2019-06-19 - Reinsert when the problems are ironed out...
 +
 
 +
{{Display docType}}[[Display born on::{{LinkYear|{{#show: {{FULLPAGENAME}} | ?Born on}}}}| ]][[Display died on::{{LinkYear|{{#show: {{FULLPAGENAME}} | ?Died on}}}}| ]][[Display image::{{Display image|{{FULLPAGENAME}}}}| ]][[Display image2::{{Display image|{{FULLPAGENAME}}}}| ]]--><!--{{Display date}}{{ON display date}}-->{{Display lifespan}}<!--
  
 
SET RATING PROPERTIES -->{{#ifeq: {{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]|format=count}}|0||[[Has averageRating::{{#expr: {{#ask:[[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]| ?Has value| format=average}} round 1}}| ]]}}[[Has noRatings::{{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]|format=count}}| ]]<!--
 
SET RATING PROPERTIES -->{{#ifeq: {{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]|format=count}}|0||[[Has averageRating::{{#expr: {{#ask:[[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]| ?Has value| format=average}} round 1}}| ]]}}[[Has noRatings::{{#ask: [[Constitutes::Rating]][[Has target::{{FULLPAGENAME}}]]|format=count}}| ]]<!--

Revision as of 02:33, 19 June 2019

This template adds SMWData to the page, based on the existing data. It has no parameters. It is currently fairly simple, and should probably remain that way, because it affects so many pages and has the potential to tie up the SMW jobs queue.


The following properties are set:


2016-04-18: Addition: It also adds "" if the page was modified within the last 36 hours.