Difference between revisions of "Template:Song Subpage Linker"
Jump to navigation
Jump to search
(plausible-looking) |
(Documentation, and slight change to accommodate Other_media) |
||
Line 1: | Line 1: | ||
− | <noinclude>{{Song Subpage Linker | + | <noinclude> |
+ | Params: | ||
+ | * basepage (required) - song title (underscored) | ||
+ | * subpage (required) - section being linked to (underscored) | ||
+ | * subpagen (optional) - nice (no-underscored) version of subpage | ||
+ | |||
+ | {{Song Subpage Linker | ||
| basepage=Test | | basepage=Test | ||
| subpage=Videos}} | | subpage=Videos}} | ||
Line 8: | 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">{{{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:40, 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 | Template:Subpagen Videos
{{#ifexist: Code_Monkey/Videos | Videos | Template:Subpagen Videos
not a link broken link not a link