Difference between revisions of "Help:CodeSyntax"

From OOModels
Jump to navigationJump to search
 
Line 5: Line 5:


* Code is contained in a section labelled <nowiki>== Code ==</nowiki>
* Code is contained in a section labelled <nowiki>== Code ==</nowiki>
* Code is entered with [http://meta.wikimedia.org/wiki/Help:Wikitext#Just_show_what_I_typed leading spaces] (Mediawiki then considers it as preformatted)
* Code is either
* To improve readability, <nowiki><div></nowiki> tags can be used to apply styles to parts of the code; these tags have to be put on their own line without any leading space
** enclosed within a leading <nowiki><div class="code"></nowiki> tag and an ending <nowiki></div></nowiki> tag
** and entered with [http://meta.wikimedia.org/wiki/Help:Wikitext#Just_show_what_I_typed leading spaces] (Mediawiki then considers it as preformatted)
* or, alternatively
** enclosed within a leading <nowiki><wiml></nowiki> tag and an ending <nowiki></wiml></nowiki> tag
** and entered in [[Type:org/oomodels/WIML/1.0|WIML]] syntax

Latest revision as of 14:34, 7 May 2009

Artefacts represented in the wiki shall be both readable by humans and machines and have to be easily editable by humans. The following rules shall guarantee that this is possible.

  • Code is contained in a section labelled == Code ==
  • Code is either
    • enclosed within a leading <div class="code"> tag and an ending </div> tag
    • and entered with leading spaces (Mediawiki then considers it as preformatted)
  • or, alternatively
    • enclosed within a leading <wiml> tag and an ending </wiml> tag
    • and entered in WIML syntax