Help:Editing: Difference between revisions

From ASCEND
Jump to navigation Jump to search
No edit summary
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
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 [http://meta.wikimedia.org/wiki/Help:Editing Help:Editing on the meta.wikimedia.org site].
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 [http://meta.wikimedia.org/wiki/Help:Editing Help:Editing on the meta.wikimedia.org site]. There are [https://meta.wikimedia.org/wiki/Help:Wikitext_examples lots of helpful examples of syntax] there too.


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


{|
{|
|- valign=top
|- valign=bottom
| <pre><nowiki>{{src|models/johnpye/testlog10.a4c}}</nowiki></pre>
| For a specific code file in the repository trunk: <pre><nowiki>{{src|models/johnpye/testlog10.a4c}}</nowiki></pre>
| <div style="border:dashed 1pt blue;padding:8px;margin-top:12px">{{src|models/johnpye/testlog10.a4c}}</div>
| <div style="border:dashed 1pt blue;padding:11px;margin-bottom:12px">{{src|models/johnpye/testlog10.a4c}}</div>
|- valign=top
|- valign=bottom
| <pre><nowiki>{{srcdir|models/johnpye}}</nowiki></pre>
| For a directory in the repository trunk: <pre><nowiki>{{srcdir|models/johnpye}}</nowiki></pre>
| <div style="border:dashed 1pt blue;padding:8px;margin-top:12px">{{srcdir|models/johnpye}}</div>
| <div style="border:dashed 1pt blue;padding:11px;margin-bottom:12px">{{srcdir|models/johnpye}}</div>
|- valign=top
|- valign=bottom
| <pre><nowiki>{{srcbranch|grivan2|models/johnpye/testlog10.a4c}}</nowiki></pre>
| For a code file in a repository branch: <pre><nowiki>{{srcbranch|grivan2|models/johnpye/testlog10.a4c}}</nowiki></pre>
| <div style="border:dashed 1pt blue;padding:8px;margin-top:12px">{{srcbranch|grivan2|models/johnpye/testlog10.a4c}}</div>
| <div style="border:dashed 1pt blue;padding:11px;margin-bottom:12px">{{srcbranch|grivan2|models/johnpye/testlog10.a4c}}</div>
|- valign=top
|- valign=bottom
| <pre><nowiki>{{srcbranchdir|grivan2|models/johnpye}}</nowiki></pre>
| For a directory in a repository branch: <pre><nowiki>{{srcbranchdir|grivan2|models/johnpye}}</nowiki></pre>
| <div style="border:dashed 1pt blue;padding:8px;margin-top:12px">{{srcbranchdir|grivan2|models/johnpye}}</div>
| <div style="border:dashed 1pt blue;padding:11px;margin-bottom:12px">{{srcbranchdir|grivan2|models/johnpye}}</div>
|}
|}


Line 60: Line 60:


{|
{|
|- valign=top
|- valign=bottom
| <pre><nowiki>{{changeset|3000}}</nowiki></pre>
| <pre><nowiki>{{changeset|2000}}</nowiki></pre>
| <div style="border:dashed 1pt blue;padding:8px;margin-top:12px">{{changeset|3000}}</div>
| <div style="border:dashed 1pt blue;padding:10px;margin-bottom:12px">{{changeset|2000}}</div>
|}
|}


Line 75: Line 75:
|}
|}


== References ==
== References to literature ==


You can use <tt><nowiki><ref></nowiki></tt> tags in our wiki. Please see [http://meta.wikimedia.org/wiki/Help:Footnotes documentation] and [http://www.mediawiki.org/wiki/Extension:Cite/Cite.php plugin details].
You can use <tt><nowiki><ref></nowiki></tt> tags in our wiki. Please see [http://meta.wikimedia.org/wiki/Help:Footnotes documentation] and [http://www.mediawiki.org/wiki/Extension:Cite/Cite.php plugin details].
Line 89: Line 89:


<references/></div>
<references/></div>
|}
If you are citing a journal article, please use our DOI template to reference the article:
{|
|- valign=top
| <pre><nowiki>A W Westerberg, 2003, ''A retrospective
on design and process synthesis'', Computers &
Chemical Engineering, '''28''' (4), 447-458.
{{doi|10.1016/j.compchemeng.2003.09.029}}.</nowiki></pre>
| <div style="border:dashed 1pt blue;padding:8px;margin-top:12px">A W Westerberg, 2003, ''A retrospective on design and process synthesis'', Computers & Chemical Engineering, '''28''' (4), 447-458. {{doi|10.1016/j.compchemeng.2003.09.029}}.
</div>
|}
|}


Line 95: Line 107:
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.
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 [http://en.wikipedia.org/wiki/Wikipedia:Picture_tutorial here].
A general tutorial on the use of images within Mediawiki is [http://en.wikipedia.org/wiki/Wikipedia:Picture_tutorial here].
 
For screenshots, it's useful to make your window as small as possible while still showing what you want to depict, then use a screenshot that only captures the current window. Even better, sometimes just a portion of the window is enough. On Ubuntu 12.04, try the "select area to grab" option from the screenshot tool, or the ctrl-shift-PrtSc keystroke.
 
When inserting an large image or screenshot into a wiki page, use the 'thumb' feature (see help page above), with a suggested image width of 400px. This helps the page to be more readable, while still allowing the reader to see what the image contains if just scanning over the text.


== Tables ==
== Tables ==


If you want to create a table on your page, see [http://meta.wikimedia.org/wiki/Help:Table here].
If you want to create a table on your page, see [http://meta.wikimedia.org/wiki/Help:Table here].
== File Uploads ==
Our wiki can support file uploads, although we generally restrict access to this feature for security reasons. Contact us if you want us to upload something for you and we'll sort it out.
== Equation numbers ==
You can use equation numbering in your pages with the [[Template:Eq]] and [[Template:Eqref]] templates.
{|
|- valign=bottom
| <pre><nowiki>Here is the ideal gas equation:
{{eq|:|<math>pv=nRT</math>|1}}
And reuse {{eqref|1}} to then show...</nowiki></pre>
| <div style="width:300px;padding:7px;border:dashed 1px blue">Here is the ideal gas equation:
{{eq|:|<math>pv=nRT</math>|1}}
And reuse {{eqref|1}} to then show...</div>
|}
== Bug tracker ==
Also please note the modifications we've made to our bug tracker to allow [[Automatic URL linking to MediaWiki and ViewVC from Mantis]].

Latest revision as of 09:34, 3 August 2019

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. There are lots of helpful examples of syntax there too.

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 file in the ASCEND source code repository, you can use the following MediaWiki templates:

For a specific code file in the repository trunk:
{{src|models/johnpye/testlog10.a4c}}
For a directory in the repository trunk:
{{srcdir|models/johnpye}}
For a code file in a repository branch:
{{srcbranch|grivan2|models/johnpye/testlog10.a4c}}
For a directory in a repository branch:
{{srcbranchdir|grivan2|models/johnpye}}

To make a reference to a particular changeset, in any branch of the repository, use:

{{changeset|2000}}

References to bugs

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

{{bug|501}}

References to literature

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

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

If you are citing a journal article, please use our DOI template to reference the article:

A W Westerberg, 2003, ''A retrospective
on design and process synthesis'', Computers & 
Chemical Engineering, '''28''' (4), 447-458.
{{doi|10.1016/j.compchemeng.2003.09.029}}.
A W Westerberg, 2003, A retrospective on design and process synthesis, Computers & Chemical Engineering, 28 (4), 447-458. doi:10.1016/j.compchemeng.2003.09.029.

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 general tutorial on the use of images within Mediawiki is here.

For screenshots, it's useful to make your window as small as possible while still showing what you want to depict, then use a screenshot that only captures the current window. Even better, sometimes just a portion of the window is enough. On Ubuntu 12.04, try the "select area to grab" option from the screenshot tool, or the ctrl-shift-PrtSc keystroke.

When inserting an large image or screenshot into a wiki page, use the 'thumb' feature (see help page above), with a suggested image width of 400px. This helps the page to be more readable, while still allowing the reader to see what the image contains if just scanning over the text.

Tables

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

File Uploads

Our wiki can support file uploads, although we generally restrict access to this feature for security reasons. Contact us if you want us to upload something for you and we'll sort it out.

Equation numbers

You can use equation numbering in your pages with the Template:Eq and Template:Eqref templates.


Here is the ideal gas equation:
{{eq|:|<math>pv=nRT</math>|1}}
And reuse {{eqref|1}} to then show...
Here is the ideal gas equation:
([[#equation_{{{3}}}|{{{3}}}]])
1
And reuse Eq 1 to then show...

Bug tracker

Also please note the modifications we've made to our bug tracker to allow Automatic URL linking to MediaWiki and ViewVC from Mantis.