From StrategyWiki, the video game walkthrough and strategy guide wiki
Jump to navigation Jump to search
(adding usage)
m (adjusting for use by both subtocs)
Line 1: Line 1:
This template is used within Table of Contents pages containing multiple expansions. Use this template on the Table of Contents page for the main game. This is the template for the first subtoc in the page. Under this template, add the content for the table of contents. Additional subtocs should go below the last ones, using the {{t|subtoc2|''game name''}} template, followed by their content. After the content of the last subtoc, use the {{t|subtoc2}} with no parameters to signal the end of all the content on the page.
The subtoc templates ('''<code>subtoc</code>''' and '''<code>subtoc2</code>''') are used within Table of Contents pages containing multiple expansions.


On the Table of Contents pages for the individual games that are using the subtoc, put that game's {{t|Header Nav}} within <nowiki><noinclude></nowiki> tags, followed immediately by a transclusion of the main page's Table of Contents, like so: <nowiki>{{</nowiki>:''Main Game''/Table of Contents}}.
Use the {{t|subtoc|''game name''}} template on the Table of Contents page for the main game. This is the template for the first subtoc in the page. Under this template, add the content for the table of contents.
 
Additional subtocs should go below the last ones, using the {{t|subtoc2|''game name''}} template, followed by their content. After the content of the last subtoc, use the {{t|subtoc2}} with no parameters to signal the end of all the content on the page. This includes when only one subtoc is used.
 
On the Table of Contents pages for the individual games that are using the subtocs, put that game's {{t|Header Nav}} within <nowiki><noinclude></nowiki> tags, followed immediately by a transclusion of the main page's Table of Contents, like so: <nowiki>{{</nowiki>:''Main Game''/Table of Contents}}.


==Usage==
==Usage==
<pre>{{subtoc
<pre>{{subtoc
|Expansion Name
|Expansion name
|Alternate text
}}</pre>
 
<pre>{{subtoc2
|Expansion name
|Alternate text
|Alternate text
}}</pre>
}}</pre>


Examples can be found on [[Diablo II/Table of Contents]] and [[Final Fantasy XI/Table of Contents]].
Examples can be found on [[Diablo II/Table of Contents]] and [[Final Fantasy XI/Table of Contents]].

Revision as of 01:52, 3 March 2009

The subtoc templates (subtoc and subtoc2) are used within Table of Contents pages containing multiple expansions.

Use the {{subtoc|game name}} template on the Table of Contents page for the main game. This is the template for the first subtoc in the page. Under this template, add the content for the table of contents.

Additional subtocs should go below the last ones, using the {{subtoc2|game name}} template, followed by their content. After the content of the last subtoc, use the {{subtoc2}} with no parameters to signal the end of all the content on the page. This includes when only one subtoc is used.

On the Table of Contents pages for the individual games that are using the subtocs, put that game's {{Header Nav}} within <noinclude> tags, followed immediately by a transclusion of the main page's Table of Contents, like so: {{:Main Game/Table of Contents}}.

Usage

{{subtoc
|Expansion name
|Alternate text
}}
{{subtoc2
|Expansion name
|Alternate text
}}

Examples can be found on Diablo II/Table of Contents and Final Fantasy XI/Table of Contents.