Wikimedia Code Style Guide
Closed, DeclinedPublic

Description

Every year the wikimedia movement becomes more and more open to users: the current TemplateStiles, the future gadgets' repository. More and more participants are involved in writing code in different languages.

People get together and write one code base; people leave and others have to maintain their code.

And in my opinion, in this situation, a rational decision will be to focus on the creation of a unified code guide for all our projects.

Yes, we have a small guide, but it is for MediaWiki and not everyone knows about it. It seems to me that the best solution would be to make a site like Wikimedia Style Guide. And fill it as Style Guide from Google.

Iniquity created this task.Jul 17 2018, 6:56 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJul 17 2018, 6:56 PM
Iniquity updated the task description. (Show Details)Jul 17 2018, 6:57 PM
Legoktm closed this task as Declined.Jul 17 2018, 8:29 PM
Legoktm added a subscriber: Legoktm.

Feel free to improve the existing coding conventions documentation and advertise them more prominently, but we're not going to create a separate site for them when they (and other docs too) belong best on a wiki page.

@Legoktm the existing coding conventions documentation is created for MediaWiki, not Wikimedia. Am I mistaken?

@Legoktm the existing coding conventions documentation is created for MediaWiki, not Wikimedia. Am I mistaken?

They are the same. All Wikimedia code should follow the MediaWiki coding conventions, which in other places are referred to as the Wikimedia coding conventions.

Iniquity added a comment.EditedJul 17 2018, 8:41 PM

@Legoktm the existing coding conventions documentation is created for MediaWiki, not Wikimedia. Am I mistaken?

They are the same. All Wikimedia code should follow the MediaWiki coding conventions, which in other places are referred to as the Wikimedia coding conventions.

Gadgets, common.js, common.css, TemplateStyles pages, Lua modules, personal scripts are included? Just there is nothing about it on this page. I kept thinking that this applies to the internal code only.

Gadgets, common.js, common.css, TemplateStyles pages, Lua modules, personal scripts are included? Just there is nothing about it on this page. I kept thinking that this applies to the internal code only.

I go to https://www.mediawiki.org/wiki/Manual:Coding_conventions and the very first list links to guidelines for CSS, JavaScript, Lua etc.
I don't understand why "there is nothing about it" on that page.

Gadgets, common.js, common.css, TemplateStyles pages, Lua modules, personal scripts are included? Just there is nothing about it on this page. I kept thinking that this applies to the internal code only.

I go to https://www.mediawiki.org/wiki/Manual:Coding_conventions and the very first list links to guidelines for CSS, JavaScript, Lua etc.
I don't understand why "there is nothing about it" on that page.

The entire family of these pages mentions the internal pages of the engine only.