Template:Suite/doc: Difference between revisions

From the Kingdom Hearts Wiki, the Kingdom Hearts encyclopedia
Jump to navigationJump to search
m (Text replacement - "\[\[Category:( )+" to "[[Category:")
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
'''<tt><nowiki>{{suite}}</nowiki></tt>''' is a template which creates a quicknav for an article "suite"; usually one article which has been broken into many pieces for length.
'''<tt><nowiki>{{suite}}</nowiki></tt>''' is a template which creates a tab at the top of a page, generally to link to different namespaces (e.g. Game:, Gallery:, etc.), or to link to related pages (e.g. Olympus Coliseum and Underworld)


Add '''<tt><nowiki>{{suite}}</nowiki></tt>''' to the top of each page with the article names in a list.
Add '''<tt><nowiki>{{suite}}</nowiki></tt>''' to the top of each page.
{{suite|content=* [[Optimus Prime (G1)]]
* [[Optimus Prime (G1)/toys]]
}}
<pre>{{suite|content=* [[Optimus Prime (G1)]]
* [[Optimus Prime (G1)/toys]]
}}</pre>


When '''<tt><nowiki>{{suite}}</nowiki></tt>''' is used after a ''disambig'' tag, it will automatically switch to a truncated form and 'hug' the template above. (Occupying the empty space to the right of the continuity note without pushing article content down.)
If the page needs a custom set of tabs, create a sub-page such as [[Sora/Suite]] to manually add tabs. The first tab is always the name of the base page (so in this case Sora), the code for the other tabs is as follows:
<pre>
(Tab name 2)/(Tab link 2)/(Tab name 3)/(Tab link 3), etc.
</pre>
For example,
<pre>
Gameplay/Game:Sora/Gallery/Gallery:Sora
</pre>
To add a small tab, add <pre>m:</pre> before a tab name.
For example,
<pre>
m:Nightmare Armor/Armored Ventus Nightmare
</pre>


==<nowiki>{{subsuite}}</nowiki>==
<noinclude>[[Category:Template documentation]]</noinclude>
If a page is broken into ''many pieces'' (such as [[Optimus Prime (G1)]]) it may be preferable to create a single sub-page with the suite contents rather than updating it on all the pages by hand.  Create a page such as [[Optimus Prime (G1)/suite]], and include the template as described above '''making sure''' to use the template '''<tt><nowiki>{{subsuite}}</nowiki></tt>''' instead.
 
You can then add the bare tag '''<tt><nowiki>{{suite}}</nowiki></tt>''' with ''no'' parameters and the "/suite" subpage will be automatically included.
 
{{note|The automatic inclusion checks for the existence of a "/suite" page, and if not found moves one level 'up' the page heirarchy.  So a page such as "Optimus Prime (G1)/Machine Wars/toys" would break this function because it would need to go up ''two'' levels.  Since at this time no page on the wiki uses such a format... the [[User:Derik|template author]] doesn't really care, but he'll add another layer of checks if it ever becomes an issue.}}
 
==Technical notes==
* [[Template: Subsuite]] is a redirect to [[Template: Suite]] to avoid recursion errors.
 
<noinclude>[[Category:Externalized documentation]]</noinclude>

Latest revision as of 14:30, 16 March 2022

{{suite}} is a template which creates a tab at the top of a page, generally to link to different namespaces (e.g. Game:, Gallery:, etc.), or to link to related pages (e.g. Olympus Coliseum and Underworld)

Add {{suite}} to the top of each page.

If the page needs a custom set of tabs, create a sub-page such as Sora/Suite to manually add tabs. The first tab is always the name of the base page (so in this case Sora), the code for the other tabs is as follows:

(Tab name 2)/(Tab link 2)/(Tab name 3)/(Tab link 3), etc.

For example,

Gameplay/Game:Sora/Gallery/Gallery:Sora

To add a small tab, add

m:

before a tab name.

For example,

m:Nightmare Armor/Armored Ventus Nightmare