Difference between revisions of "Template:SMWDefaultMarkup"

From Wikispooks
Jump to navigation Jump to search
(Document about NOCACHE)
(Better doc)
Line 19: Line 19:
 
* [[Property:ON display date]]
 
* [[Property:ON display date]]
 
<hr/>
 
<hr/>
2016-04-18 Addition:
+
2016-04-18: Addition:
It also adds "__NOCACHE__" if the page was modified within the last 36 hours.</noinclude><includeonly>[[Has fullPageName::{{FULLPAGENAME}}| ]][[Has fullPageNamee::{{FULLPAGENAMEE}}| ]]{{#ifeq: {{ns:}}||[[Has parentFullPageName::{{#titleparts: {{FULLPAGENAME}} | -1 }}| ]]}}[[Has revisionSize::{{REVISIONSIZE}}| ]][[Has revisionUser::{{REVISIONUSER}}| ]]<!--
+
It also adds "<nowiki>__NOCACHE__</nowiki>" if the page was modified within the last 36 hours.</noinclude><includeonly>[[Has fullPageName::{{FULLPAGENAME}}| ]][[Has fullPageNamee::{{FULLPAGENAMEE}}| ]]{{#ifeq: {{ns:}}||[[Has parentFullPageName::{{#titleparts: {{FULLPAGENAME}} | -1 }}| ]]}}[[Has revisionSize::{{REVISIONSIZE}}| ]][[Has revisionUser::{{REVISIONUSER}}| ]]<!--
  
 
Below two maybe handy, but currently unused:
 
Below two maybe handy, but currently unused:

Revision as of 14:20, 18 April 2016

This template adds SMWData to the page, based on the existing data. It has no parameters. It is currently 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.