Template:InfoboxGobbler: Difference between revisions

From Inkipedia, the Splatoon wiki
(add a parameter intend for choosing the initial infobox (doesn't work yet, requires changing JavaScript))
m (Protected "Template:InfoboxGobbler": High risk ([Edit=Allow only autoconfirmed users] (indefinite) [Move=Allow only autoconfirmed users] (indefinite)))
 
(No difference)

Latest revision as of 23:31, 14 June 2024

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.

Parameters

initial Optional. The 1-based index of the infobox to be shown initially, or 0 for the last infobox. By default the last infobox is shown.