Forum:Template parameter not triggering

Hi, I wanted to make additions to one of the templates on my wiki, the original creator is no longer on the site. I copied and pasted the exact coding used, the difference being two new links and two icon images. I gave each parameter a different name, but when used on an article it no longer seems to trigger. And by that I mean the additional text that is called 'action' and externally links to the website the subject is about. Now of course if I rolled it back to how it was it will work, but i would like the additions to work also.

I tried a similar action in 2011, but that was when I didn't know about the "#if:" part of templates.

-- Bunai82 (talk) 17:50, October 7, 2012 (UTC)
 * Sandbox, tested template
 * Template in question
 * Template history, October 7th


 * The  parser function works like a template, the name of the template is , the first parameter to the template comes after the colon, the second parameter after the first pipe, 3rd after the 2nd pipe, etc. The way it works is that it checks if the first parameter is not blank, if it isn't blank then it displays the contents of the second parameter on the page, if it is blank then it displays the 3rd parameter on the page. You're getting blank output because your  s only have one parameter, not two, so it's doing what you asked and showing the missing, and therefore blank, second parameter on the page. Lunarity 00:04, October 8, 2012 (UTC)


 * Thanks for the reply.
 * Someone edited it and it 'seems' to be working. Though I actually did add dashes to the appropriate places, I guess it was the 'nowiki' part that caused the problem? -- Bunai82 (talk) 01:55, October 9, 2012 (UTC)


 * No, the problem was that you were missing the pipe characters between the test part of the  at the start and the actual contents you wanted it to display. The nowiki tag (shouldn't) wasn't do anything because it was self-closing, it was just unnecessary that it existed. Lunarity 03:09, October 9, 2012 (UTC)