Difference between revisions of "Template:Article series contents"

From SNIC Documentation
Jump to: navigation, search
(Created page with "<noinclude> Create a table of contents with links to pages in an article series. Usage: <nowiki>{{</nowiki>article series contents|''name''}} </noinclude><includeonly>{{#ask: ...")
 
 
(4 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
Create a table of contents with links to pages in an article series.  
 
Create a table of contents with links to pages in an article series.  
  
Usage: <nowiki>{{</nowiki>article series contents|''name''}}
+
Usage: <nowiki>{{</nowiki>article series contents|''format''=template|''template''=article series contents item|''skip first page''=}}
 +
 
 +
''template'' can be explicitly set to nothing to avoid using the default (see [http://semantic-mediawiki.org/wiki/Help:Result_formats semantic mediawiki docs] for more information on formats and templates). Set ''skip first page'' to not show the first page in the series (useful on the actual first page of the series). Can currently only be used on pages in the article series, however this restriction may be lifted if need arises in the future.
  
 
</noinclude><includeonly>{{#ask: [[article series::{{get article series}}]]  
 
</noinclude><includeonly>{{#ask: [[article series::{{get article series}}]]  
|?description
+
|?intro
|sort=article order
+
|offset={{#if: {{{skip first page|}}}|1|0}}
|format=ol
+
|sort=article series page number
 +
|format={{{format|template}}}
 
|headers=hide
 
|headers=hide
 +
|template={{{template|article series contents item}}}
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 14:22, 12 March 2012

Create a table of contents with links to pages in an article series.

Usage: {{article series contents|format=template|template=article series contents item|skip first page=}}

template can be explicitly set to nothing to avoid using the default (see semantic mediawiki docs for more information on formats and templates). Set skip first page to not show the first page in the series (useful on the actual first page of the series). Can currently only be used on pages in the article series, however this restriction may be lifted if need arises in the future.