Difference between revisions of "Template:SMWDefaultMarkup"

From Wikispooks
Jump to navigation Jump to search
m (Protected "Template:SMWDefaultMarkup": High traffic page: Any changes to this affect thousands of pages and tie up the SMW queue - need careful consideration ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)))
(Clarify and protect)
Line 1: Line 1:
<noinclude>'''This template adds SMWData to the page, based on the existing data.''' It has no parameters. It is currently simple.
+
<noinclude>'''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 page is assigned a [[Property:Has fullpagename]] set to its full pagename
 
#The page is assigned a [[Property:Has fullpagename]] set to its full pagename
Line 6: Line 6:
 
-->
 
-->
 
</noinclude><includeonly>[[Has fullpagename::{{FULLPAGENAME}}]]
 
</noinclude><includeonly>[[Has fullpagename::{{FULLPAGENAME}}]]
<!--
+
<!-- THE BELOW IS A SLOW AND RESOURCE EXPENSIVE HAMMER TO CRACK A NUT. LESS SEMANTIC WEB DATA IS GENERALLY BETTER THAN MORE!
 
{{#ifexpr: {{#ask: [[DocType::{{PAGENAME}}]]|format=count}}>0|{{SMWData|KeyProperties=Is about/Has author/Has publication date/Description|KeyPropertyHeaders=Subject(s)/Author(s)/Published/Description}}}} -->
 
{{#ifexpr: {{#ask: [[DocType::{{PAGENAME}}]]|format=count}}>0|{{SMWData|KeyProperties=Is about/Has author/Has publication date/Description|KeyPropertyHeaders=Subject(s)/Author(s)/Published/Description}}}} -->
 
</includeonly>
 
</includeonly>

Revision as of 07:07, 2 January 2014

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.

  1. The page is assigned a Property:Has fullpagename set to its full pagename