Difference between revisions of "Template:SongNav"

From JoCopedia
Jump to navigation Jump to search
(Undo revision 64185 by JoCo (talk))
Tag: Undo
 
(62 intermediate revisions by 13 users not shown)
Line 1: Line 1:
<noinclude>
+
<noinclude>A navigation bar that links between each of the various pages related to a song. Include it at the top of the lyrics/tabs/etc. pages related to each song. If the destination page should not be categorized (e.g. a tabs page with no tabs), use parameter cat=no. </noinclude>
Links between song, lyrics, and tabs.
+
<includeonly>
</noinclude><includeonly>
+
<div id="songnav" style="background-color:#fcfcfc;border:1px solid #ccc;padding:0.5em;text-align:center;margin-bottom:1em;">
 
+
<div style="font-size:1.2em;padding-bottom:0.25em;">'''[[{{BASEPAGENAME}}]]'''</div>
{| style="width:50%" border="1" align="center"
+
<div>
|-
+
<span style="padding:0 1em;">{{#ifeq:{{SUBPAGENAME}}|Lyrics|'''Lyrics'''|{{Song Subpage Linker | basepage={{BASEPAGENAME}} | subpage = Lyrics}}}}</span>
|-
+
<span style="padding:0 1em;border-left:1px dotted;">{{#ifeq:{{SUBPAGENAME}}|Tabs|'''Tabs'''|{{Song Subpage Linker | basepage={{BASEPAGENAME}} | subpage = Tabs}}}}</span>
| width="33%" align="center" | [[{{PAGENAME}}]]
+
<span style="padding:0 1em;border-left:1px dotted;">{{#ifeq:{{SUBPAGENAME}}|Videos|'''Videos'''|{{Song Subpage Linker | basepage={{BASEPAGENAME}} | subpage = Videos}}}}</span>
| width="33%" align="center" | [[Lyrics:{{PAGENAME}}|Lyrics]]
+
<span style="padding:0 1em;border-left:1px dotted;">{{#ifeq:{{SUBPAGENAME}}|Concerts|'''Concerts'''|{{Song Subpage Linker | basepage={{BASEPAGENAME}} | subpage = Concerts}}}}</span>
| width=* align="center" | [[Tabs:{{PAGENAME}}|Tabs]]
+
<span style="padding:0 1em;border-left:1px dotted;">{{#ifeq:{{SUBPAGENAME}}|Other media|'''Other media'''|{{Song Subpage Linker | basepage={{BASEPAGENAME}} | subpage = Other media}}}}</span>
|}
+
</div></div>
{{#if | {{NAMESPACE}} ||
+
{{#ifeq:{{{cat}}}|no| | {{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}||[[Category:{{SUBPAGENAME}}]]}}}}
[[Category:{{NAMESPACE}}]]
+
</includeonly>
}}</includeonly>
 

Latest revision as of 11:05, 18 October 2021

A navigation bar that links between each of the various pages related to a song. Include it at the top of the lyrics/tabs/etc. pages related to each song. If the destination page should not be categorized (e.g. a tabs page with no tabs), use parameter cat=no.