Difference between revisions of "Template:SMWDefaultMarkup"

From Wikispooks
Jump to navigation Jump to search
(Has nationality defaults to "unknown")
(bilderbergCount, cercleCount)
Line 30: Line 30:
 
Below two maybe handy, but currently unused:
 
Below two maybe handy, but currently unused:
 
[[Has pageName::{{PAGENAME}}| ]] [[Has rootFullPageName::{{#titleparts: {{FULLPAGENAME}} | 1 }}| ]]  
 
[[Has pageName::{{PAGENAME}}| ]] [[Has rootFullPageName::{{#titleparts: {{FULLPAGENAME}} | 1 }}| ]]  
 +
 +
SET useful SMW PROPERTIES -->
 +
[[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 -->[[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}}<!--

Revision as of 21:25, 5 December 2017

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 "__NOCACHE__" if the page was modified within the last 36 hours.