Help:Examples
From RHESSI Wiki
Code
Code snippets can be formatted automatically for example for IDL code,
<source lang="ittvis_idl"> xrt_file = [f]vso_files[/f]('25-Jan-2007 06:57', instr='xrt') [p]vso_prep[/p], xrt_file, oprep=xrt_obj xrt_obj->[p]plotman[/p], /colors, plotman=p </source>
yields the following
xrt_file = vso_files('25-Jan-2007 06:57', instr='xrt') vso_prep, xrt_file, oprep=xrt_obj xrt_obj->plotman, /colors, plotman=p
Images
Multiple Images
There are two ways to display multiple images together (e.g. image comparisons), the first uses the "galleries" and the second uses standard tables. Tables enable each image to be formatted separately which is not true in galleries.
Here is example code for a gallery
<gallery caption="Sample gallery" widths="100px" heights="100px" perrow="6"> Image:Icon116.jpg|[[w:Drenthe|Drenthe]], the least crowded province Image:Icon116.jpg Image:Icon116.jpg|[[w:Friesland|Friesland]] has many lakes Image:Icon116.jpg Image:Icon116.jpg Image:Icon116.jpg Image:Icon116.jpg </gallery>
which then displays
Drenthe, the least crowded province |
Friesland has many lakes |
||||
To use tables, you must use wikimedia's syntax for tables which is not straightforward. An example of images displayed in a table is given by the following code
{| border="0" |+'''Provinces of the Netherlands''' |- | valign="top"| [[Image:Icon116.jpg|thumb|left|150px|[[w:Drenthe|Drenthe]], the least crowded province]] | valign="bottom"| [[Image:Icon116.jpg|thumb|left|100px|]] | valign="top"| [[Image:Icon116.jpg|thumb|left|100px|]] |- | |- | valign="top"| [[Image:Icon116.jpg|thumb|left|100px|]] | valign="top"| [[Image:Icon116.jpg|thumb|left|100px|[[w:South Holland|South Holland]], the most crowded province]] | valign="top"| [[Image:Icon116.jpg|thumb|left|50px|]] |}
which is responsible for the following display.
![]() Drenthe, the least crowded province | ||
![]() South Holland, the most crowded province |