|
Post by James McCloud IS John Godot on Dec 1, 2010 15:45:24 GMT -5
I need some help and being a crotchety old shut in, this is where I choose to go. I'm trying to use the #if function around a section of my infobox, below so that if the field is not in use, it does not appear in the infobox, saving space.
|- {{#if: {{{family}}}| align="center" colspan="4" | {| class="roundy" align="center" width="100%" style="background: #FFFFFF; border: 1px solid #000000;" |- align="center" |'''Family''' {| class="roundy" align="center" width="100%" style="background: #1c3855;" |- align="center" | class="roundy" style="background: #1c3855; border: 1px solid #000000;" | {{{family|}}} |} |} |-}}
But no matter where I insert the code, the result is the same: broken box in which an empty family feed returns an { and a filled family feed returns align="center" colspan="4"
Anyone who can help with get a thousand lap dances or their choice of salad dressing.
|
|
|
Post by lildude8218 on Dec 1, 2010 15:52:43 GMT -5
can you post the entire coding of your infobox? I have my own wiki and i'll try to compare it to some of the infoboxes i'm using. I didn't make any of them myself though.
|
|
|
Post by James McCloud IS John Godot on Dec 1, 2010 16:21:05 GMT -5
can you post the entire coding of your infobox? I have my own wiki and i'll try to compare it to some of the infoboxes i'm using. I didn't make any of them myself though. Yeah, I do a lot of frankensteining myself. I figure it's like a jigsaw, just trying to fit the pieces together. So any help would be, um, helpful. {| class="roundy" align="right" style="background: #FFFFFF; width: 24em; max-width: 30%; margin-left: 5px; margin-bottom: 5px; border: 3px solid #000000;" |- | align="center" colspan="4" | {| class="roundy" align="center" width="100%" style="background: #F5F5F5;" |- | align="center" | <big><big>'''{{{name}}}'''</big></big><br><span lang="ja">'''{{{japanese_name}}}'''</span> ''{{{romaji_name}}}'' |} |- | align="center" colspan="4" | {| class="roundy" align="center" width="100%" style="background: #1c3855;}" |- align="center" | {{#if: {{{image|}}}|[[File:{{{name|}}}.png|{{{size|x280px}}}]]<br><small>''{{{caption|Art by Fumi Ishikawa}}}''<br>{{{star}}}</small> |} |- | align="center" {{#ifeq: {{{forme|1}}}|1||colspan="4" }}| {| class="roundy" align="center" width="100%" style="background: #FFFFFF; border: 1px solid #000000;" |- align="center" | '''Gender''' {| class="roundy" align="center" width="100%" style="background: #1c3855;" |- align="center" | class="roundy" style="background: #1c3855; border: 1px solid #FFFFFF;" | {{{gender}}} |} |} | align="center" | {| class="roundy" align="center" width="100%" style="background: #FFFFFF; border: 1px solid #000000;" |- align="center" | '''Race''' {| class="roundy" align="center" width="100%" style="background: #1c3855;" |- align="center" | class="roundy" style="background: #1c3855; border: 1px solid #FFFFFF;" | {{{race}}} |} |} | align="center" | {| class="roundy" align="center" width="100%" style="background: #FFFFFF; border: 1px solid #000000;" |- align="center" | '''Born''' {| class="roundy" align="center" width="100%" style="background: #1c3855;" |- align="center" | class="roundy" style="background: #1c3855; border: 1px solid #FFFFFF;" | {{{birth_date}}} |} |} |- | align="center" colspan="4" | {| class="roundy" align="center" width="100%" style="background: #FFFFFF; border: 1px solid #000000;" |- align="center" | '''Age''' {| class="roundy" align="center" width="100%" style="background: #1c3855;" |- align="center" | class="roundy" style="background: #1c3855; border: 1px solid #FFFFFF; " | {{{age}}} |} |} |- | align="center" colspan="4" | {| class="roundy" align="center" width="100%" style="background: #FFFFFF; border: 1px solid #000000;" |- align="center" | '''From''' {| class="roundy" align="center" width="100%" style="background: #1c3855;" |- align="center" | class="roundy" style="background: #1c3855; border: 1px solid #FFFFFF; " | {{{from}}} |} |} |- {{#if: {{{family}}}| align="center" colspan="4" | {| class="roundy" align="center" width="100%" style="background: #FFFFFF; border: 1px solid #000000;" |- align="center" |'''Family''' {| class="roundy" align="center" width="100%" style="background: #1c3855;" |- align="center" | class="roundy" style="background: #1c3855; border: 1px solid #FFFFFF;" | {{{family}}} |} |} |-}} | align="center" colspan="4" | {| class="collapsible roundy" align="center" width="100%" style="background: #FFFFFF; border: 1px solid #000000;" |- class="expandable" align="center" | '''Voice''' |- align="center" | {| class="roundy" align="center" width="100%" style="background: #1c3855;" |- align="center" | class="roundy" style="background: #1c3855; border: 1px solid #FFFFFF;" |{{{va}}} {{{footnotes|}}} |} |} |}
|
|
|
Post by lildude8218 on Dec 1, 2010 16:54:47 GMT -5
That's a hell of a problem.....I have no idea how to fix it, sorry. I would get Family to show up disformed and if i changed any coding in that section, it screwed up the whole box
|
|