Fandom

Brickipedia

Streamlining Code

Forum page

30,576pages on
this wiki
Add New Page

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.

This Forum has been archived

Visit the new Forums
Forums - Streamlining Code
This page is an archive. Please do not edit the contents of this page.

No reason for archiving given.



Streamlining Code To all coders - can we please have some sort of policy, even informal between ourselves, about where code should go? For example, this template has some code in itself, and some in MediaWiki:Common.css. Is there a reason that some of it has to be in the css, and some in the template?

(If I don't know what I'm talking about, and there's something I'm totally missing here, please tell me. Thanks.) Jag 04:29, April 5, 2012 (UTC)

  • Usually if the code's only going to be used once for one template, it would just go on the template, but if it's going to be used for multiple templates, it would go into a class and the templates would just be put into that class (that's what I thought anyway) NightblazeSaber 05:32, April 5, 2012 (UTC)

Also on Fandom

Random Wiki