The Sims Wiki talk:Development Portal: Difference between revisions

no edit summary
imported>K6ka
imported>WikiBuilder1147
No edit summary
Line 205:
::'''Edit''': [http://en.wikipedia.org/wiki/Wikipedia:Purge#Null_edit Wikipedia explains this phenomenon as well] - "All other purge methods do not apply to categorisation and 'what links here' changes from template edits, but a null edit does... Changes in category links are put into the job queue, and re-cached when the server load is low." -- '''[[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>''' 02:43, March 19, 2015 (UTC)
:::I tried all of those — purging and null editing. Didn't work. I did [[w:Thread:726136|file a bug report]] and they told me they were working on a fix, but I still see that same glitch pop up occasionally. --I am [[User:K6ka|'''<span style="color:#0040FF">k6ka</span>''']] [[User talk:K6ka|<span style="color:#0080FF"><sup>Talk to me!</sup></span>]] [[Special:Contributions/K6ka|<span style="color:#0B4C5F"><sub>See what I have done</sub></span>]] 02:52, March 19, 2015 (UTC)
 
==Adding TS4 age logos to TS4 Sim infoboxes==
Because TS4 uses different logos in its interface to the other three games, I was wondering if we could add a function to the code of [[Template:Sim]] in order for the pulling of TS4 age images into the template and onto the page. I have already uploaded the appropriate images:
 
[[File:TS4-Child.png|20px]]
[[File:TS4-Teen.png|20px]]
[[File:TS4-Young-Adult.png|20px]]
[[File:TS4-Adult.png|20px]]
[[File:TS4-Elder.png|20px]]
 
This could possibly be a another great way to 'modernise' the wiki. I also have a proposal as to how we could achieve this.
 
We could add a template named, say, Template:GetTS4StageImage, using the same code as [[Template:GetStageImage]], except with the TS4 images. Thereafter, we could put in the following code into [[Template:Sim]]:
 
<code><nowiki>{{#if:{{{age<includeonly>|</includeonly>}}} |
{{!}} width="75" style="background: {{Vgbodycolor|{{Vgcode|{{{game}}} }} }}; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid; color: #4B4B4B"{{!}}'''Age'''
{{!}} style="background: #FFFFFF; border-bottom:{{Vglinecolor|{{Vgcode|{{{game}}} }} }} 1px solid;" {{!}}{{#if:{{{age|}}}|
</nowiki>'''<nowiki>{{#switch: {{{game}}}
|The Sims 4
|The Sims 4 Outdoor Retreat
|The Sims 4 Get To Work = {{GetTS4StageImage|{{{age}}} }}
|#default = {{GetStageImage|{{{age}}} }} }} }}</nowiki>'''<nowiki> {{{age}}}
<includeonly>{{GetStageCat|{{{age}}}}}</includeonly>
{{!}}-
}}</nowiki></code>
 
The only disadvantage would be that there appears to be no logo for TS4 Babies, so I'm not entirely sure how to deal with that, should this plan get through...not that there are many noteworthy things about TS4 babies anyway.
 
I haven't tested it yet though, so I hope all you code-monkeys out there can help me iron out the code so it works! &#8213;'''[[User:WikiBuilder1147|<font color="green">The</font>]] [[Message Wall:WikiBuilder1147|<font color="blue">Tim</font>]] [[User blog:WikiBuilder1147|<font color="lime">Man</font>]]''' <sup>([http://historyfiction.wikia.com/wiki/User:WikiBuilder1147 Infinite Histories] • [http://galactic-crucibles.wikia.com/wiki/User:WikiBuilder1147 Galactic Crucibles] • [http://sims.wikia.com/wiki/User:WikiBuilder1147 The Sims Wiki] • [http://hallows-maleficent.wikia.com/wiki/User:WikiBuilder1147 Hallows Maleficent] • '''[[Special:Contributions/WikiBuilder1147|<font color="#006400">Why I'm here in the first place</font>]])'''</sup> 08:32, March 31, 2015 (UTC)