Difference between revisions of "Template:Song Subpage Linker"
Jump to navigation
Jump to search
(just need to see what happens -- will revert) |
(augh, breaks on punctuation in song title, e.g. I'm a Mason Now) |
||
Line 2: | Line 2: | ||
Params: | Params: | ||
* basepage (required) - song title (underscored) | * basepage (required) - song title (underscored) | ||
+ | * basepage (required) - song title (not-underscored) | ||
* subpage (required) - section being linked to (underscored) | * subpage (required) - section being linked to (underscored) | ||
* subpagen (optional) - nice (no-underscored) version of subpage | * subpagen (optional) - nice (no-underscored) version of subpage | ||
{{Song Subpage Linker | {{Song Subpage Linker | ||
− | | basepage=Test | + | | basepage=Test Page |
| subpage=Videos}} | | subpage=Videos}} | ||
{{Song Subpage Linker | {{Song Subpage Linker | ||
− | |basepage= | + | |basepage=Code Monkey |
|subpage=Videos}} | |subpage=Videos}} | ||
{{Song Subpage Linker | {{Song Subpage Linker | ||
− | |basepage=I | + | |basepage=I%27m_a_Mason_Now |
|subpage=Lyrics}} | |subpage=Lyrics}} | ||
<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}}}]] | [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>]}} {{{basepage}}}</includeonly> | + | </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>]}} {{urlencode:{{{basepage}}}}}</includeonly> |
Revision as of 12:29, 11 May 2008
Params:
- basepage (required) - song title (underscored)
- basepage (required) - song title (not-underscored)
- subpage (required) - section being linked to (underscored)
- subpagen (optional) - nice (no-underscored) version of subpage
Page/Videos&action=edit&preload=Template:Videos_Boilerplate Videos Test+Page Videos Code+Monkey Lyrics I%2527m_a_Mason_Now
not a link broken link not a link