Community Central
Register
Community Central
(help)
 
No edit summary
 
Line 4: Line 4:
   
 
*On [http://spongebob.wikia.com/wiki/Template:Character this template], that organizes information into sections (General Information, Family & Friends, Other Information, Show Information) I want it so if there is no information under these sections, that these will not appear on the article that this is placed. Thanks for any help. -[[User:AMK152|<font color="blue">AMK152</font>]]<sup>([[User talk:AMK152|Talk]] • [[Special:Contributions/AMK152|Contributions]]</sup> 15:40, 29 September 2007 (UTC)
 
*On [http://spongebob.wikia.com/wiki/Template:Character this template], that organizes information into sections (General Information, Family & Friends, Other Information, Show Information) I want it so if there is no information under these sections, that these will not appear on the article that this is placed. Thanks for any help. -[[User:AMK152|<font color="blue">AMK152</font>]]<sup>([[User talk:AMK152|Talk]] • [[Special:Contributions/AMK152|Contributions]]</sup> 15:40, 29 September 2007 (UTC)
  +
  +
:If I understand you correctly, you only want a section to show if there is at least one parameter in that section being used? This looks like a call for embedded parserfunctions. I've done the [http://spongebob.wikia.com/index.php?title=Template:Character&diff=3409&oldid=3020 first one] for you. Please test it and follow my example (lemme know if you need more help). Basically: wrap that section (converting tables to exclaimed wikicode) in another #if that checks if any parameter is being used. --[[w:User:Splarka|Splarka]] <small>([[w:User_talk:Splarka|talk]])</small> &lt;[[w:Wikia_Staff|Staff]]&gt; 09:58, 30 September 2007 (UTC)

Latest revision as of 09:58, 30 September 2007

Forums: Index Help desk Organized templates
Fandom's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.
Archive
Note: This topic has been unedited for 6015 days. It is considered archived - the discussion is over. Information in this thread may be out of date. Do not add to unless it really needs a response.


  • On this template, that organizes information into sections (General Information, Family & Friends, Other Information, Show Information) I want it so if there is no information under these sections, that these will not appear on the article that this is placed. Thanks for any help. -AMK152(TalkContributions 15:40, 29 September 2007 (UTC)
If I understand you correctly, you only want a section to show if there is at least one parameter in that section being used? This looks like a call for embedded parserfunctions. I've done the first one for you. Please test it and follow my example (lemme know if you need more help). Basically: wrap that section (converting tables to exclaimed wikicode) in another #if that checks if any parameter is being used. --Splarka (talk) <Staff> 09:58, 30 September 2007 (UTC)