Difference between revisions of "Template:Article series contents"

From SNIC Documentation
Jump to: navigation, search
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|''format''=template|''template''=article series contents item|''hide first page''=}}
+
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 ''hide 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.  
+
''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}}]]  
 
|?intro
 
|?intro
|offset={{#if: {{{hide first page|}}}|1|0}}
+
|offset={{#if: {{{skip first page|}}}|1|0}}
 
|sort=article series order  
 
|sort=article series order  
 
|format={{{format|template}}}
 
|format={{{format|template}}}

Revision as of 13:11, 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.