Forum:New Metabox development: Difference between revisions

Jump to navigation Jump to search
Content added Content deleted
imported>LostInRiverview
No edit summary
imported>LostInRiverview
Line 147: Line 147:
::::Alright, I implemented your suggestions in points 1 and 2 onto {{t|Metabox2}}. I did plan on implemeting {{t|clr}} but have encountered some issues that have caused me to temporarily remove it from the template. You can see what I mean [http://sims.wikia.com/wiki/User:LostInRiverview/Test3?oldid=663648#Life_leading_up_to_The_Sims_2 here]. I wanted to test how Metabox would interact when placed alongside other templates, specifically infoboxes like {{t|Sim}}. The result was... not as I had expected. I've done some experimentation and it appears that the image used on Metabox2 will continue to move downwards on the page as more instances of a Sim or Simbio template are added, and the image will align itself to the top of the final instance of the template used on that page. To be honest I'm not exactly sure of why this is - could it have anything to do with the fact that the image on Metabox2 is set to float left? I'm baffled at this point. Obviously this is a significant problem, and I wouldn't feel comfortable rolling out the changes until it's fixed. -- '''[[User:LostInRiverview|<font color="navy">LostInRiverview</font>]]<sup> [[User_talk:LostInRiverview|<font color="green">talk</font>]] • [[User_blog:LostInRiverview|<font color="green">blog</font>]] • [[Special:Contributions/LostInRiverview|<font color="green">contribs</font>]]</sup>''' 03:02, April 3, 2015 (UTC)
::::Alright, I implemented your suggestions in points 1 and 2 onto {{t|Metabox2}}. I did plan on implemeting {{t|clr}} but have encountered some issues that have caused me to temporarily remove it from the template. You can see what I mean [http://sims.wikia.com/wiki/User:LostInRiverview/Test3?oldid=663648#Life_leading_up_to_The_Sims_2 here]. I wanted to test how Metabox would interact when placed alongside other templates, specifically infoboxes like {{t|Sim}}. The result was... not as I had expected. I've done some experimentation and it appears that the image used on Metabox2 will continue to move downwards on the page as more instances of a Sim or Simbio template are added, and the image will align itself to the top of the final instance of the template used on that page. To be honest I'm not exactly sure of why this is - could it have anything to do with the fact that the image on Metabox2 is set to float left? I'm baffled at this point. Obviously this is a significant problem, and I wouldn't feel comfortable rolling out the changes until it's fixed. -- '''[[User:LostInRiverview|<font color="navy">LostInRiverview</font>]]<sup> [[User_talk:LostInRiverview|<font color="green">talk</font>]] • [[User_blog:LostInRiverview|<font color="green">blog</font>]] • [[Special:Contributions/LostInRiverview|<font color="green">contribs</font>]]</sup>''' 03:02, April 3, 2015 (UTC)
:::::Whoa, that's a terrible bug. I have no idea what's wrong with it either. I'll try to figure out what's wrong if I can. [[User:Nikel23|'''<span style="color:#007FFF; text-shadow: #ACE5EE 0 4px 4px;">Nikel</span>''']] [[User talk:Nikel23|<span style="color: #30D5C8 ; text-shadow: #00FFEF 0 4px 4px;"><sub>''Talk''</sub></span>]] <sub>–</sub> [[The Sims Wiki:Featured Media/Voting|<span style="color:red ; text-shadow:#E97451 0 4px 4px;"><sub>''Vote!''</sub></span>]] 04:10, April 3, 2015 (UTC)
:::::Whoa, that's a terrible bug. I have no idea what's wrong with it either. I'll try to figure out what's wrong if I can. [[User:Nikel23|'''<span style="color:#007FFF; text-shadow: #ACE5EE 0 4px 4px;">Nikel</span>''']] [[User talk:Nikel23|<span style="color: #30D5C8 ; text-shadow: #00FFEF 0 4px 4px;"><sub>''Talk''</sub></span>]] <sub>–</sub> [[The Sims Wiki:Featured Media/Voting|<span style="color:red ; text-shadow:#E97451 0 4px 4px;"><sub>''Vote!''</sub></span>]] 04:10, April 3, 2015 (UTC)
::::::I don't want to speak too soon, but it looks like you fixed it. - '''[[User:LostInRiverview|<font color="navy">LostInRiverview</font>]]<sup> [[User_talk:LostInRiverview|<font color="green">talk</font>]] • [[User_blog:LostInRiverview|<font color="green">blog</font>]] • [[Special:Contributions/LostInRiverview|<font color="green">contribs</font>]]</sup>''' 05:04, April 3, 2015 (UTC)
::::::I don't want to speak too soon, <s>but it looks like you fixed it.</s> - '''[[User:LostInRiverview|<font color="navy">LostInRiverview</font>]]<sup> [[User_talk:LostInRiverview|<font color="green">talk</font>]] • [[User_blog:LostInRiverview|<font color="green">blog</font>]] • [[Special:Contributions/LostInRiverview|<font color="green">contribs</font>]]</sup>''' 05:04, April 3, 2015 (UTC)
::::::It looks like I did speak too soon. You did indeed fix the problem with it interacting with {{t|Sim}}, but a new problem has introduced itself. Behold:
{{#ifeq:small|small|
<div style="background: #{{#if:|{{{backgroundcolor}}}|{{MetaboxBG|info }} }}; border: 1px solid #E0E0E0; text-align: left; width: {{#if:|{{{width}}}%|40%}}; box-shadow: 1px 1px 3px #777; margin-bottom: 1px;">{{#if:TS4_boxing_gloves_icon.png|<div style="float: left; width: 55px; margin-left: 3px; position: absolute;">[[File:TS4_boxing_gloves_icon.png|center|{{#if:|{{{imagesize}}}px|45px}}]]</div>|}}<div style="background: #{{#if:|{{{headercolor}}}|{{#if:|{{{bordercolor}}}|{{MetaboxHeader|info }} }} }}; width: auto; margin: 3px;{{#if:TS4_boxing_gloves_icon.png|| padding-left:50px;}} font-side: 95%; font-weight: bold; text-shadow: 1px 1px 2px #333; color: white; box-shadow: 1px 1px 3px #777;">{{#if: Headline text|Headline text|&nbsp;}}</div><div style="padding-bottom: 3px; margin-left: 55px; font-size: 90%;">
Template text</div>
</div>
|<center>
<div style="background: #{{#if:|{{{backgroundcolor}}}|{{MetaboxBG|info }} }}; border: 1px solid #E0E0E0; text-align: left; width: {{#if: |{{{width}}}%|85%}}; box-shadow: 1px 1px 3px #777; margin-bottom: 1px;">{{#if:TS4_boxing_gloves_icon.png|<div style="float: left; width: {{#expr: 60 + 5}}px; margin-left: 5px; position: absolute;">[[File:TS4_boxing_gloves_icon.png|center|{{#if:|{{{imagesize}}}px|60px}}]]</div>|}}<div style="background: #{{#if:|{{{headercolor}}}|{{#if:|{{{bordercolor}}}|{{MetaboxHeader|info }} }} }}; width: auto; margin: 5px;{{#if:TS4_boxing_gloves_icon.png| padding-left:{{#expr: 60 + 5}}px;| padding-left: 5px;}} font-side: 110%; font-weight: bold; text-shadow: 1px 1px 2px #333; color: white; box-shadow: 1px 1px 3px #777;">{{#if: Headline text|Headline text|&nbsp;}}</div><div style="padding-bottom: 5px;{{#if:TS4_boxing_gloves_icon.png|margin-left: {{#expr: 60 + 10}}px; margin-right: {{#expr: 60 + 10}}px;|margin-left: 5px; margin-right: 5px;}}">
Template text</div>
{{clrl}}</div></center>
}}{{#if:|{{#ifeq:{{NAMESPACE}}| | [[Category:{{{cat}}}|{{#if:|{{{catsort}}}|{{{PAGENAME}}}}}]]|}}|}}{{#if: | | {{#ifeq:{{NAMESPACE}}|Template|[[Category:Templates using Metabox2|{{PAGENAME}}]]|}}}}
::::::That's the small version of the template. Whatever fix was implemented, it did not take kindly to this version. I'll take a look at what's going on. -- '''[[User:LostInRiverview|<font color="navy">LostInRiverview</font>]]<sup> [[User_talk:LostInRiverview|<font color="green">talk</font>]] • [[User_blog:LostInRiverview|<font color="green">blog</font>]] • [[Special:Contributions/LostInRiverview|<font color="green">contribs</font>]]</sup>''' 05:08, April 3, 2015 (UTC)