Template:Hearts: Difference between revisions

From Zelda Dungeon Wiki
Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
(Created template)
 
mNo edit summary
Line 2: Line 2:
|Ocarina of Time={{Pieces of Heart/Ocarina of Time}}
|Ocarina of Time={{Pieces of Heart/Ocarina of Time}}
|Majora's Mask={{Pieces of Heart/Majora's Mask}}
|Majora's Mask={{Pieces of Heart/Majora's Mask}}
|The Minish Cap={{Pieces of Heart/The Minish Cap}}
}}<noinclude>
}}<noinclude>



Revision as of 08:26, October 2, 2016


Purpose

This page is used to create a tabbed interface for Pieces of Heart listings for use when transcluding the listings to other pages. The page itself would remain a full, non-tabbed list.

Usage

To use this template, type:     {{Hearts| Game }}

  • Game — The game for which you want to display the piece of heart listing. (Required )

The formatting for each game's tabs are placed on subpages of this page. If a game's piece of heart listing doesn't yet have a tabbed format, the process of adding it is simple. Just copy the tabbed interface from an existing one, and then place the new one on the appropriate subpage and then edit it into the code at the top of this template.

The tabbed interface uses the by-section transclusion method. So in order for it to work for a piece of heart listing, that page's sections need to have the proper section coding, which can be seen in the pages that already have the formatting. This method allows the listing pages to be edited without having to worry about also editing the tabbed version to match, as it is automatically transcluded.