Template:InfoboxGobbler: Difference between revisions

From Inkipedia, the Splatoon wiki
(JavaScript target for infobox gobbler function)
 
m (Adding documentation)
Line 1: Line 1:
<div style="display: none;" id="gobbler"></div>
<includeonly><div style="display: none;" id="gobbler"></div></includeonly><noinclude>Moves all infoboxes on a page into a tabbed interface.
 
Ordinarily, multiple infoboxes are used when the data differs between games. Wherever this template is used on a page via <code><nowiki>{{InfoboxGobbler}}</nowiki></code>, the infoboxes will be combined into a single tab-controlled infobox.
 
The tabbed functionality requires JavaScript on the client. If JavaScript is not available, then the infoboxes will not be moved from their original locations on the page. For this reason, it's important to design pages with separate infobox in appropriate places before rolling them together with this template.
 
If only one infobox is present, it will still be moved, but no tab strip will be generated since there are no other infoboxes to switch between.
</noinclude>

Revision as of 05:13, 21 December 2017

Moves all infoboxes on a page into a tabbed interface.

Ordinarily, multiple infoboxes are used when the data differs between games. Wherever this template is used on a page via {{InfoboxGobbler}}, the infoboxes will be combined into a single tab-controlled infobox.

The tabbed functionality requires JavaScript on the client. If JavaScript is not available, then the infoboxes will not be moved from their original locations on the page. For this reason, it's important to design pages with separate infobox in appropriate places before rolling them together with this template.

If only one infobox is present, it will still be moved, but no tab strip will be generated since there are no other infoboxes to switch between.