Difference between revisions of "Cunnan:Village pump"
From Cunnan
Jump to navigationJump to searchLine 47: | Line 47: | ||
There is a way to modify the template to use a portion if it isn't empty, but I'm not sure if functions on 1.4 versions of the wiki software. Two new templates are needed, [[Template:HideIfEmpty|HideIfEmpty]] and [[Template:IfEmptyDo|IfEmptyDo]]. I'll add them and see if I can help out with this! [[User:ThorgrimrGunnarrsson|Thorgrimr of Dragonsspine]] 19:37, 22 Feb 2006 (CST) |
There is a way to modify the template to use a portion if it isn't empty, but I'm not sure if functions on 1.4 versions of the wiki software. Two new templates are needed, [[Template:HideIfEmpty|HideIfEmpty]] and [[Template:IfEmptyDo|IfEmptyDo]]. I'll add them and see if I can help out with this! [[User:ThorgrimrGunnarrsson|Thorgrimr of Dragonsspine]] 19:37, 22 Feb 2006 (CST) |
||
+ | |||
+ | :UPDATE--I got the hiding code to work. To use it in an article, you still need to have the variable name (i.e. ''baroness= |'') and it will provide the label in the infobox, but you won't get the triple-bracketed stuff after it so it's much cleaner. To implement this functionality in your own templates, you must first enclose the transclusion info in a span or div tag with a call to the "HideIfEmpty" template (i.e. <nowiki><span {{HideIfEmpty|{{{baroness}}}}}>{{{baroness}}}</span></nowiki>). Just send me a note on my talk page if you have questions on this, I'm no expert, but I might be able to help![[User:ThorgrimrGunnarrsson|Thorgrimr of Dragonsspine]] 19:52, 22 Feb 2006 (CST) |
||
=== Welcoming new users === |
=== Welcoming new users === |