Category talk:Wikia: Difference between revisions

(→‎Perhaps..: Vanishing parameter)
Line 91: Line 91:


:Both solutions are possible, but I think that the 2nd solution might work better. Otherwise, when we modified the standard infobox, we'd also need to modify the alternate infoboxes. I can easily see them getting out of sync. I've learned but have forgotten the syntax to make an optional parameter that will not appear if not used. I believe it uses some kind of {{{if}}} statement. It already exists in practice in the standard template for the wiki license parameter. --[[User:MarvelZuvembie|MarvelZuvembie]] 14:57, 28 February 2011 (PST)
:Both solutions are possible, but I think that the 2nd solution might work better. Otherwise, when we modified the standard infobox, we'd also need to modify the alternate infoboxes. I can easily see them getting out of sync. I've learned but have forgotten the syntax to make an optional parameter that will not appear if not used. I believe it uses some kind of {{{if}}} statement. It already exists in practice in the standard template for the wiki license parameter. --[[User:MarvelZuvembie|MarvelZuvembie]] 14:57, 28 February 2011 (PST)
:OK, I've looked at the template and I believe that the line would look something like this. --[[User:MarvelZuvembie|MarvelZuvembie]] 15:01, 28 February 2011 (PST)
<nowiki>{{#if: {{{farm|{{{wiki farm|{{{wiki_farm|}}}}}}}}} |</nowiki>