Forum:Which should take precedence? External link or Template call?

I have been attempting to make changes to c:ChristianMusic:Template:Related Scripture/Entry so it can call an external link with its parameters as parameters to the link. However, the template sees the space in the subtemplate name as the url/linkname divider for the external link. Is there a fix? You can see my latest attempt at. Will (Talk - contribs) 03:48, 10 May 2008 (UTC)
 * do you have a page where your passing a url, so we can see how its breaking? --Uberfuzzy 04:02, 10 May 2008 (UTC)

Look at w:c:ChristianMusic:Template:Related Scripture/test/Entry (it has the source that I linked to) and w:c:ChristianMusic:Template:Related Scripture/test (it has samples). I had to save the templates in a working configuration. Will (Talk - contribs) 02:17, 11 May 2008 (UTC) fixed link --Ciencia Al Poder (talk) -WikiDex 10:11, 11 May 2008 (UTC)


 * On w:c:ChristianMusic:Template:Related Scripture/test/Entry I found:

(...) [http://net.bible.org?{{Related Scripture/Entry/Get Book Name|{{{Book ID}}}))+{{{Chapter}}}(...)
 * and {{Related Scripture/Entry/Get Book Name}} returns a link to wikipedia. So you attempt to insert a link inside a link, which is not possible. I removed that template call so there's no extra link inside the url and it seems fixed now. Also, I had to encode the colon because it breaks the link. Is it now OK? --Ciencia Al Poder (talk) -WikiDex 10:43, 11 May 2008 (UTC)

Nope. I forgot that Get Book Name returns a link. However, a lookup function is needed. To demo this, I added a link to Song of Solomon in the samples. Please click its verse link. I create the codes myself before working with the people at bible.org. They want the full book name. Now that I know what went wrong (my mistake there), I know how to fix it: Turn Get Book Name into BookID2Name, BookID2WikPage, and BookID2WikLink. BookID2WikLink will call the others to build a WP link. Entry will call BookID2WikLink to link the book name and BookID2Name direct to build the URL. Will (Talk - contribs) 02:41, 12 May 2008 (UTC)
 * Fixed. Thanks to User:JSharp. Will (Talk - contribs) 09:07, 12 May 2008 (UTC)