The Sims Wiki talk:Development Portal: Difference between revisions

→‎RTE editor: new section
imported>Duskey
imported>Duskey
(→‎RTE editor: new section)
Line 215:
: --[[User:Roguebfl|Roguebfl]] <sup>[[User talk:Roguebfl|Talk]]</sup> 07:29, August 24, 2010 (UTC)</blockquote>
The documentation, t and tocright templates are nice upgrades. Wikitemplates should be used when/if a template is copied from [[w:c:templates|templates.wikia]]. 'From Wikimedia' and 'Information' are actually being discussed in the [[The Sims Wiki:Project Message template standardization|Message template standardization project]] and [[The Sims Wiki:Project Images|Images project]] respectively. '''[[User:Duskey|Duskey]]'''<small>([[User_talk:Duskey|<span style="color:green;">talk</span>]])</small> 10:56, August 24, 2010 (UTC)
 
== RTE editor ==
 
As some of you may know the Rich Text Editor can break tables and templates like there was no tomorrow. I believe I've found part of the reason why. The RTE deletes single lineskips since wikicode requires a double lineskip in the simple editor to produce on lineskip in the article. This wouls also be why the <code>----</code> horizontal line keeps breaking in archive navigation boxes on user talk pages.
 
An example:
 
Here's some code written in the simple text editor:
<pre>
{|
|
*Item 1
*Item 2
|}
</pre>
Which will look like this:
{|style="border:1px solid black;"
|
*Item 1
*Item 2
|}
When someone using the RTE edits the same article, even if they edit another part of it, it becomes...
<pre>
{|
|*Item 1
*Item 2
|}
</pre>
...breaking the list:
{|style="border:1px solid black;"
|*Item 1
*Item 2
|}
I believe a solution would be to remember double lineskips for people using the basic text editor, like so:
<pre>
{|
|
 
*Item 1
*Item 2
|}
</pre>
Resulting in...
{|style="border:1px solid black;"
|
 
*Item 1
*Item 2
|}
As you can see there's no difference from this, to the first table. This '''''should''''' result in break-free tables and templates. '''[[User:Duskey|Duskey]]'''<small>([[User_talk:Duskey|<span style="color:green;">talk</span>]])</small> 21:50, August 25, 2010 (UTC)
Anonymous user