Difference between revisions of "Template:SMWDocs"

From Wikispooks
Jump to navigation Jump to search
(Clarify function)
Line 34: Line 34:
  
 
<noinclude><!-- Now fixed?
 
<noinclude><!-- Now fixed?
{{TemplateProblem|Only the first set of documents gets its own header. Subsequent sets are poorly displayed.}}-->[[category:Semantic Templates| ]]'''This template is the most important semantic template on the site, and unless you're interested in editing templates, it's the only one you need to know about.'''<br/>  
+
{{TemplateProblem|Only the first set of documents gets its own header. Subsequent sets are poorly displayed.}}-->[[category:Semantic Templates| ]]'''This template is the most important semantic template on the site; unless you're interested in editing templates, it's the only one you need to know about.'''<br/>  
To use it, just include the text <nowiki>{{SMWDocs}}</nowiki> on a single line on its own, just before the "References" section. It generates a bunch of extra sections from the other pages' SMW data.<br/><br/>
+
To use it, just include the text <nowiki>{{SMWDocs}}</nowiki> on a single line on its own, just before the "References" section. It generates a bunch of extra sections from the other pages' SMW data, by a bunch of calls to [[Template:SMWDocSection]].<br/><br/>
 
''This template's structure is very simple, it first includes:
 
''This template's structure is very simple, it first includes:
 
*[[Template:SMWDefaultMarkup]] - adds a default set of markup for the page, ''allows the page to be picked up by [[Template:SubPages]]''
 
*[[Template:SMWDefaultMarkup]] - adds a default set of markup for the page, ''allows the page to be picked up by [[Template:SubPages]]''

Revision as of 15:29, 3 May 2019

This template is the most important semantic template on the site; unless you're interested in editing templates, it's the only one you need to know about.
To use it, just include the text {{SMWDocs}} on a single line on its own, just before the "References" section. It generates a bunch of extra sections from the other pages' SMW data, by a bunch of calls to Template:SMWDocSection.

This template's structure is very simple, it first includes:

Then the following templates from category:Semantic Templates:

It makes use of {{PAGENAME}} to search for the relevant SMW data. It currently takes no parameters.