Help:Editing

From ASCEND
Jump to navigation Jump to search

This wiki makes use of the MediaWiki software, which is the same software as is used to power the all-knowing Wikipedia website. For an overview of the syntax that you can use, see Help:Editing on the meta.wikimedia.org site.

Some specific areas including MediaWiki plugins ('extensions') that we have installed:

Code highlighting

We are using the ASHighlight extension (that we wrote ourselves, making use of Andre Simon's highlight program inside):

Write this: ...and you'll get:
<source lang=a4c>
MODEL mymodel;
    x IS_A length;
END model;
</source>

MODEL mymodel;
    x IS_A length;
END model;
<source lang=c>
int main(void);
    fprintf(stderr,"hello world!\n");
    exit(0);
}
</source>
int main(void);
    fprintf(stderr,"hello world!\n");
    exit(0);
}

References to code

If you would like to reference a piece of ASCEND code, you can use the following MediaWiki templates:

{{src|models/johnpye/testlog10.a4c}}
{{srcdir|models/johnpye}}
{{srcbranch|grivan2|models/johnpye/testlog10.a4c}}
{{srcbranchdir|grivan2|models/johnpye}}

References to bugs

To refer to a bug on our bug tracker, please use

References

You can use <ref> tags in our wiki. Please see documentation and plugin details.

{{bug|501}}
Steel is very strong<ref>Ashby & Jones 
''Engineering Materials 1'', Pergamon,
1980</ref> and so we make things out of it.

<references/>
Steel is very strong[1] and so we make things out of it.
  1. Ashby & Jones Engineering Materials 1, Pergamon, 1980

Images

You can upload images of various types to our wiki, and display them in your pages. We suggest PNG images in most cases, although SVG images are also appropriate for primarily vector graphics.

A tutorial on the use of images is here.

Tables

If you want to create a table on your page, see here.