Difference between revisions of "Template:Song Subpage Linker"

From JoCopedia
Jump to navigation Jump to search
(what a cheap hack, seems to work)
m (taking out test code)
Line 7: Line 7:
 
| basepage=Test Page
 
| basepage=Test Page
 
| subpage=Videos}}
 
| subpage=Videos}}
 +
 
{{Song Subpage Linker
 
{{Song Subpage Linker
 
|basepage=Code Monkey
 
|basepage=Code Monkey
 
|subpage=Videos}}
 
|subpage=Videos}}
{{Song Subpage Linker
+
 
|basepage=I%27m_a_Mason_Now
 
|subpage=Lyrics}}
 
 
{{Song Subpage Linker
 
{{Song Subpage Linker
 
|basepage=I'm a Mason Now
 
|basepage=I'm a Mason Now
 
|subpage=Lyrics}}
 
|subpage=Lyrics}}
 
{{anchorencode:Other media}}
 
  
 
<span style="color:#CC2200">not a link</span> [[broken link]] <span style="color:#CC2200">not a link</span>
 
<span style="color:#CC2200">not a link</span> [[broken link]] <span style="color:#CC2200">not a link</span>
 
</noinclude><includeonly>{{#ifexist: {{{basepage}}}/{{{subpage}}} | [[{{{basepage}}}/{{{subpage}}}|{{{subpage}}}]] | [{{fullurl:{{{basepage}}}/{{{subpage}}}|action=edit&preload=Template:{{anchorencode:{{{subpage}}}}}_Boilerplate}} <span style="color:#CC2200">{{{subpage}}}</span>]}}</includeonly>
 
</noinclude><includeonly>{{#ifexist: {{{basepage}}}/{{{subpage}}} | [[{{{basepage}}}/{{{subpage}}}|{{{subpage}}}]] | [{{fullurl:{{{basepage}}}/{{{subpage}}}|action=edit&preload=Template:{{anchorencode:{{{subpage}}}}}_Boilerplate}} <span style="color:#CC2200">{{{subpage}}}</span>]}}</includeonly>

Revision as of 14:28, 11 May 2008

Params:

  • basepage (required) - song title (non-underscored)
  • subpage (required) - section being linked to (non-underscored)

Videos

Videos

Lyrics

not a link broken link not a link