The Sims Wiki talk:Development Portal: Difference between revisions

imported>LostInRiverview
imported>Nikel23
Line 434:
I've made few technical changes to the template itself. I've removed a row for the neighborhood name because it's redundant now. The name is shown in huge letters on top of the infobox. Also, I've changed the way the template decides whether the article is a neighborhood or a world. Currently, it uses {{T|Checkgame}} to determine it automatically. But I don't think it's practical at all. Some articles don't belong anywhere because they're not listed in the Checkgame template (See [[:Category:Neighborhoods in]]). We can simply add them to the template, but I think it's simpler to add another parameter <code>type</code> in the Neighborhood template to determine itself manually. [[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>]] 12:31, July 30, 2015 (UTC)
:I'd like to see this in color before I make any judgments. This is no insult to you, but I can't say I'm terribly impressed. I say it's no insult because you're working with the tools we have available to us, considering we're tooling it for mobile. To be perfectly blunt, I don't much like the idea of making our infoboxes ugly for mobile devices. I'd rather we make them look nice for 50% of our audience, rather than make them look equally awful for everyone. So overall, I guess you could say I'm opposed to this whole damn exercise. /rant -- '''[[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>''' 14:04, July 30, 2015 (UTC)
::Well, after tweaking the infobox module for a few hours, I can say that I'm far less optimistic... or maybe even a bit disappointed. Maybe that's because I'm new to it and haven't tried to get more used to it, but it's difficult to realize the module. It might be very easy to use for simple infoboxes like ones in the help page, but frankly our infoboxes here are pretty complicated and a simple tool like this is harder to convert a complex infobox.
 
::For one thing, there's just no way to preview the template without submitting your edit and try the template in a different page. Maybe there's a way to preview it, but I just can't find it at the moment. I spent my evening learning the basics and I just didn't have time to search for things that aren't provided in the help page. Variables used for <nowiki><data source="name"></nowiki> and <nowiki>{{{name}}}</nowiki> don't really work together very well. More about it later, but it's hard to explain...
 
::Secondly, I still haven't figured out how to make the infobox colorful with our convention. We're provided with <code>theme</code> and <code>theme-source</code> attribute to determine the theme, but the way I tried to implement it for {{T|Neighborhood}} is still impossible. Well, it's still possible, but it's ''impractical'' the way I can think of. For example, we want to have a green infobox if the game parameter is TS3 or its EPs / SPs. To do so, we'd need <nowiki><infobox theme-source="game"></nowiki>, so the theme color will change according to the value specified in the <code>game</code> parameter. However, it means we have to provide as many CSS classes as there are TS3 games for each available tag. This is far from practical.
 
::Then I thought that maybe we could use <nowiki><infobox theme="{{lc:{{Vgseries|{{{game}}}}}}}"></nowiki> so the value set in game parameter will automatically set the game series and used for the theme. It didn't work either, because the tag cannot recognize wikitext. Then I tried <nowiki><infobox theme-source="theme"></nowiki> and made a parameter <nowiki>{{{theme}}}</nowiki> somewhere in and outside the infobox, with its default value as <nowiki>{{lc:{{Vgseries|{{{game}}}}}}}</nowiki>, but it still didn't work. You have to explicitly write the parameter when using the template, such as:
 
<pre>
{{Neighborhood
|name = Sunset Valley
|game = The Sims 2: FreeTime
|theme = The Sims 4
}}
</pre>
 
::and then the infobox would normally use the CSS class for TS4. This isn't good because we certainly don't want to separately specify the theme color and the game for each infobox we have. Why would we do that? Our current infobox can avoid this, but not the new module.
 
::It's all I can say at the moment. Maybe I spent too much time with it and need to freshen up for now... and figure out a workaround later. Who knows? Also, I value your opinion, LiR. I just wanted to make an impression of how the infobox might look like in TSW. If the majority dislikes the infobox after all, we can discard the idea before we make further progress. [[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>]] 14:50, July 30, 2015 (UTC)
 
==Modular main page templates==
Anonymous user