Template:Hearts: Difference between revisions

Jump to navigation Jump to search
Want an adless experience? Log in or Create an account.
m
no edit summary
m (Emma moved page Template:Pieces of Heart to Template:Hearts: Ease of use)
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{#switch:{{{1|}}}
{{#switch:{{{1|}}}
|Ocarina of Time={{Pieces of Heart/Ocarina of Time}}
|Ocarina of Time={{Hearts/Ocarina of Time}}
|Majora's Mask={{Pieces of Heart/Majora's Mask}}
|Majora's Mask={{Hearts/Majora's Mask}}
|The Minish Cap={{Pieces of Heart/The Minish Cap}}
|The Minish Cap={{Hearts/The Minish Cap}}
}}<noinclude>
}}<noinclude>


==Purpose==
==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.
This page is used to create a tabbed interface for Pieces of Heart/Heart Container listings for use when transcluding the listings to other pages. The page itself would remain a full, non-tabbed list.


==Usage==
==Usage==
To use this template, type: {{Desc|Normal|Game}}
To use this template, type: {{Usage|Game}}
{{Parameter|Game|The game for which you want to display the piece of heart listing.|Required}}
{{Usage/Param|Game|The game for which you want to display the piece of heart listing.}}


The formatting for each game's tabs are placed on [[Special:PrefixIndex/Template:Pieces of Heart/|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 formatting for each game's tabs are placed on [[Special:PrefixIndex/Template:Hearts/|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.
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.


{{Cat|Formatting Templates}}</noinclude>
{{Cat|Formatting Templates}}</noinclude>
autopatrol
3,554

edits

Navigation menu