Difference between revisions of "Template:Song Subpage Linker"

From JoCopedia
Jump to navigation Jump to search
(Documentation, and slight change to accommodate Other_media)
Line 14: Line 14:
 
<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>
 
</noinclude>
<includeonly>{{#ifexist: {{{basepage}}}/{{{subpage}}} | [[{{{basepage}}}/{{{subpage}}}|{{{subpage}}}]] | [http://www.jonathancoulton.com/wiki/index.php?title={{{basepage}}}/{{{subpage}}}&action=edit&preload=Template:{{{subpage}}}_Boilerplate <span style="color:#CC2200">{{#if: {{subpagen}} | {{subpagen}} {{{subpage}}}</span>]}}</includeonly>
+
<includeonly>{{#ifexist: {{{basepage}}}/{{{subpage}}} | [[{{{basepage}}}/{{{subpage}}}|{{{subpage}}}]] | [http://www.jonathancoulton.com/wiki/index.php?title={{{basepage}}}/{{{subpage}}}&action=edit&preload=Template:{{{subpage}}}_Boilerplate <span style="color:#CC2200">{{#if: {{{subpagen|}}} | {{{subpagen}}} {{{subpage}}}</span>]}}</includeonly>

Revision as of 00:41, 11 May 2008

Params:

  • basepage (required) - song title (underscored)
  • subpage (required) - section being linked to (underscored)
  • subpagen (optional) - nice (no-underscored) version of subpage


{{#ifexist: Test/Videos | Videos | [http://www.jonathancoulton.com/wiki/index.php?title=Test/Videos&action=edit&preload=Template:Videos_Boilerplate

{{#ifexist: Code_Monkey/Videos | Videos | [http://www.jonathancoulton.com/wiki/index.php?title=Code_Monkey/Videos&action=edit&preload=Template:Videos_Boilerplate

not a link broken link not a link