Difference between revisions of "Template:SongNav"

From JoCopedia
Jump to navigation Jump to search
(Suggestion by Dry)
(Replacing with new SongNav. Template talk:SongNav for bugs/comments!)
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.</noinclude><includeonly><div id="songnav" style="background-color:#fcfcfc;border:1px solid #ccc;padding:0.5em;text-align:center"><div style="font-size:1.2em;padding-bottom:0.25em;">'''[[{{BASEPAGENAME}}]]'''</div><div><span style="padding:0 1em;">{{#ifeq:{{SUBPAGENAME}}|Lyrics|'''Lyrics'''|[[{{BASEPAGENAME}}/Lyrics|Lyrics]]}}</span> <span style="padding:0 1em;border-left:1px dotted;">{{#ifeq:{{SUBPAGENAME}}|Tabs|'''Tabs'''|[[{{BASEPAGENAME}}/Tabs|Tabs]]}}</span> <span style="padding:0 1em;border-left:1px dotted;">{{#ifeq:{{SUBPAGENAME}}|Videos|'''Videos'''|[[{{BASEPAGENAME}}/Videos|Videos]]}}</span> <span style="padding:0 1em;border-left:1px dotted;">{{#ifeq:{{SUBPAGENAME}}|Fan content|'''Fan content'''|[[{{BASEPAGENAME}}/Fan content|Fan content]]}}</span></div></div>{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}||[[Category:{{SUBPAGENAME}}]]}}</includeonly>
Links between song, lyrics, tabs, videos and other fan content.
 
</noinclude><includeonly>
 
<div id="songnav" style="border: 1px solid #aaaaaa; background-color: #F9F9F9; margin-left: 30%; margin-right: 30%; padding: 3px; text-align: center;">
 
{{#ifeq:{{BASEPAGENAME}}|{{PAGENAME}}||<div id="songnav-songtitle" style="font-size: 1.5em; font-weight: bold; margin-bottom: 5px;">{{BASEPAGENAME}}</div>}}
 
<div id="songnav-nav" style="font-size: 1.1em;">
 
<span id="songnav-nav-main" style="padding: 1px 20px; border-right: 1px dotted #888;">[[{{BASEPAGENAME}}|Main]]</span>
 
<span id="songnav-nav-lyrs" style="padding: 1px 20px; border-right: 1px dotted #888;">[[{{BASEPAGENAME}}/Lyrics|Lyrics]]</span>
 
<span id="songnav-nav-tabs" style="padding: 1px 20px; border-right: 1px dotted #888;">[[{{BASEPAGENAME}}/Tabs|Tabs]]</span>
 
<span id="songnav-nav-vids" style="padding: 1px 20px; border-right: 1px dotted #888;">[[{{BASEPAGENAME}}/Videos|Videos]]</span>
 
<span id="songnav-nav-fans" style="padding: 1px 20px;">[[{{BASEPAGENAME}}/Fan content|Fan content]]</span>
 
</div>
 
</div>
 
{{#ifeq:{{SUBPAGENAME}}|{{PAGENAME}}| |[[Category:{{SUBPAGENAME}}]]}}
 
</includeonly>
 

Revision as of 02:57, 5 May 2008

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.