2016-08-19

← Older revision

Revision as of 10:11, August 19, 2016

Line 1:

Line 1:



<div style="text-align:center; background-color:#f9f9f9; width:90%; border:1px dashed #aaa; margin:auto; padding:10px; margin-bottom:10px;">This page documents version 2 of the related code. If you are still using version 1, it is advised to update to the newer version as soon as possible. For documentation on version 1, see [http://dev.wikia.com/?oldid=19432 here] (no longer updated).</div>

+

<div style="text-align:

center; background-color:

#f9f9f9; width:

90%; border:

1px dashed #aaa; margin:

auto; padding:

10px; margin-bottom:

10px;">This page documents version 2 of the related code. If you are still using version 1, it is advised to update to the newer version as soon as possible. For documentation on version 1, see [http://dev.wikia.com/?oldid=19432 here] (no longer updated).</div>

{{Infobox JavaScript

{{Infobox JavaScript



|
Title
=
Less

+

|
Description
=
LESS support for Wikia wikis



|
Description
=
LESS support for Wikia wikis

+

|
Image file
=
Less.png



| Image
file
=
Less.png

+

| Image
caption
=
(click to enlarge)



|
Image caption
=
(click to

enlarge)

+

|
Scope
=
Site-wide

use



|
Scope
=
Site-wide

+

|
Author
=
[[User:Cqm|Cqm]]



|
Author
=
[[User
:
Cqm|Cqm]]

+

|
Updated
=
2015-07-18<!-- {{subst
:
#time:Y-m-d}} -->



|
Updated
=
2015-07-18
<
!--

{{subst
:
#time:Y-m-d}}

--
>

+

|
Code
=
[[Mediawiki:Less/code.js|code.js]] (deprecated)
<
br

/>[[Mediawiki
:
Less/code.2.js|code.2.js]]<br

/
>
[[Less/mixins.less|mixins.less]]<br />[[Mediawiki:Less/less.js|less.js]] (less source)



|
Code
=
[[Mediawiki:Less/code.js|code.js]] (deprecated)
<br
>[[Mediawiki:Less
/
code.2.js|code.2.js]]<br
>
[[Less/mixins.less|mixins.less]]<br>[[Mediawiki:Less/less.js|less.js]] (less source)

+

|
Skins
=
Monobook
<br

/>
Oasis



|
Skins
=
Oasis,

Monobook

+

|
Languages
=
{{#language:en}}<br

/>{{#language:es}}<br />{{#language:hu}}<br />{{#language:uk}}<br />{{#language:ru}}



| Languages = {{#language:en}}<br>{{#language:es}}<br>{{#language:hu}}<br>{{#language:uk}}<br>{{#language:ru}}

}}

}}

+

Wiki stylesheets can fast become too large to easily maintain. They can contain anything and everything from skin customisations to template styles to username highlights. In Oasis this is worsened as there is just one stylesheet by default, as opposed the normal two used in every other MediaWiki skin. This script seeks to make your wiki's CSS that little bit easier to maintain.

Wiki stylesheets can fast become too large to easily maintain. They can contain anything and everything from skin customisations to template styles to username highlights. In Oasis this is worsened as there is just one stylesheet by default, as opposed the normal two used in every other MediaWiki skin. This script seeks to make your wiki's CSS that little bit easier to maintain.

Line 21:

Line 22:

type: 'script',

type: 'script',

articles: [

articles: [



// ...

'u:dev:Less/code.2.js',

'u:dev:Less/code.2.js',



//...

]

]

} );

} );

Line 301:

Line 300:

* Add support for more than one update CSS button per page

* Add support for more than one update CSS button per page

* Integrate the [http://ace.c9.io/ ace editor] for syntax highlighting and linting as you type, similar to the codeeditor extension found on Wikimedia wikis

* Integrate the [http://ace.c9.io/ ace editor] for syntax highlighting and linting as you type, similar to the codeeditor extension found on Wikimedia wikis



** Source code found at [[github:ajaxorg/ace]], with LESS support at [[github:ajaxorg/ace/blob/master/lib/ace/mode/less.js|1]] and [[github:ajaxorg/ace/blob/master/lib/ace/mode/
less_highlight_rules
.js|2]].

+

** Source code found at [[github:ajaxorg/ace]], with LESS support at [[github:ajaxorg/ace/blob/master/lib/ace/mode/less.js|1]] and [[github:ajaxorg/ace/blob/master/lib/ace/mode/
less highlight rules
.js|2]].

** Possibly try to extend wikia's code editor (which uses ace as well).

** Possibly try to extend wikia's code editor (which uses ace as well).

* Add a small API for testing new ideas/debugging

* Add a small API for testing new ideas/debugging

Show more