(unsigned, reply) |
m (fmt) |
||
Line 54: | Line 54: | ||
:::Every icon in your template that is not displayed will leave a line break. If you display all five icons, all is well. But I haven't been able to find a work-around yet. Maybe DIVs? --<span style="text-shadow:#909090 2px 2px 2px;">[[User:Weas-El|Weas-El]] [[User_talk:Weas-El|<span style="font-size:12pt;">✉</span>]]</span> 13:30, July 7, 2011 (UTC) |
:::Every icon in your template that is not displayed will leave a line break. If you display all five icons, all is well. But I haven't been able to find a work-around yet. Maybe DIVs? --<span style="text-shadow:#909090 2px 2px 2px;">[[User:Weas-El|Weas-El]] [[User_talk:Weas-El|<span style="font-size:12pt;">✉</span>]]</span> 13:30, July 7, 2011 (UTC) |
||
− | :::The last thing I can think of is to use multiple span instead of single row table. |
+ | :::The last thing I can think of is to use multiple span instead of single row table. If there's no workaround then nevermind. thx for your help =) {{unsigned|Kevinlaw|13:32, 7 July 2011 (UTC)}} |
⚫ | |||
− | If there's no workaround then nevermind. thx for your help =) {{unsigned|Kevinlaw|13:32, 7 July 2011 (UTC)}} |
||
− | |||
⚫ |
Revision as of 13:46, 7 July 2011
To contact staff directly or to report bugs, please use Special:Contact.
I have this code in template:
{| align="center" border="0" cellpadding="0" cellspacing="0" |- {{#if: {{{1|}}}| {{!}}[[File:a.svg|32px|alt=A]]}} {{#if: {{{2|}}}| {{!}}[[File:b.svg|32px|alt=B]]}} {{#if: {{{3|}}}| {{!}}[[File:c.svg|32px|alt=C]]}} {{#if: {{{4|}}}| {{!}}[[File:d.svg|32px|alt=D]]}} {{#if: {{{5|}}}| {{!}}[[File:e.svg|32px|alt=E]]}} |- |} when param 1,2,3 is defined(param 5,6 is empty/null), wikia renders a.svg, b.svg and c.svg correctly
however, immediately after anchor element of c.svg,
<p><br></p>
is added into the third cell generating new line.
I don't want the new line. How can I remove it? Thx for any advice. —This unsigned comment is by Kevinlaw (talk • contribs) 12:35, 7. Jul. 2011. Please sign your posts with Kevin Law 12:50, July 7, 2011 (UTC)!
Yes, but still no luck.I believe param 4 & 5 is generating the new lines, so I tried stacking all #if without line break too, but the layout is broken that way:
{| align="center" border="0" cellpadding="0" cellspacing="0" |- {{#if: {{{1|}}}| {{!}}[[File:a.svg|32px|alt=A]]}}{{#if: {{{2|}}}| {{!}}[[File:b.svg|32px|alt=B]]}}{{#if: {{{3|}}}| {{!}}[[File:c.svg|32px|alt=C]]}}{{#if: {{{4|}}}| {{!}}[[File:d.svg|32px|alt=D]]}}{{#if: {{{5|}}}| {{!}}[[File:e.svg|32px|alt=E]]}} |- |} Kevin Law 12:50, July 7, 2011 (UTC)
- template in http://fishhunt.wikia.com/wiki/Template:Sandbox01
- sandbox for testing in http://fishhunt.wikia.com/wiki/Sandbox01
- notice the "D2" icon in infobox at right sideKevin Law