Difference between revisions of "Template:SMWDefaultMarkup"

From Wikispooks
Jump to navigation Jump to search
(Suspend display properties due to their malfunctioning)
(Unsuspend)
Line 38: Line 38:
  
 
SUSPENDED 2019-06-19 - Reinsert when the problems are ironed out...
 
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}}<!--
{{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 16:47, 28 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.