From Industrial Ecology
Jump to: navigation, search

This is a Semantic MediaWiki


Some interesting plugins that are used

Text Formatting Tips

  • On Mediawiki
  • In general, if you would like to reproduce formatting that you already see on the page, just press the edit tab and see how the syntax was used by others. (If you press show preview button at the bottom of the form it makes it easier)

Uploading Files and Images

  • On the left side of the page, in the toolbox there is a link 'Upload file'.
Once you uploaded a file (e.g.: .jpg) you can embed it to any of the pages (by using the embed tool in edit-mode).
Example: If you type [[File:Ie_logo.png]] the IE logo should appear on the page after saving (or previewing).

Leaving Signature and/or Date

It is useful sometimes to leave your signature and/or the date

Function Wiki markup Resulting code Resulting display
Signature plus timestamp

[[User:Username|Username]] 12:34, 1 February 2008 (UTC)

Username 12:34, 1 February 2008 (UTC)
Signature alone


Timestamp alone
12:34, 1 February 2008 (UTC) 12:34, 1 February 2008 (UTC)

From: mediawiki help

Adding Properties to Forms and Templates

This is about adding new types of properties to the database, so that people can add new types of criteria for the EIPs.

To make editing of standard properties easier, you want to update the fields defined in the form:

which you click on edit, you'll see the code behind the form. You want to pay attention to the bits that look like this:

! Country:
| {{{field|country}}}

The "! Country:" is the text that you'll see in the form, use this to tell people what to fill out in the box. This is just wikitable syntax, so you can do whatever you want with it.

The "| {{{field|country}}}" is where the magic happens. This is the bit that generates the input box for the country property.

"|-" is just the new row symbol for a wikitable.

That's really about all there is. So to add new properties, just add in sections like this:

! This is some new important property that I just made up:
| {{{field|some new property}}}

Except for the {{{field|some new property}}} bit, this is all wikitable syntax, so just follow that and you'll be fine.

So the next part is that you need to update the template. The template is the thing that reads in the properties, and figures out how to display them on the pages. You need to update this in order to make sure that the properties you fill in with the form will show up on the pages, otherwise it won't know what to do with these properties.

If you go to and click on edit, you'll see some code similar to that which you saw in the form:

! country
| [[Country::{{{country|}}}]]

The first line is the descriptive text will be displayed in the infobox for that particular property. The second line is the one that sets the property values. On each of the EIP pages, you'll see a template with values filled out that looks something like:

 | name=Greenport Shanghai
 | country=China

{{{country|}}} means that you want to get the value for the country= part. So for this page, [[Country::{{{country|}}}]] means that the property [[Country::China]] will be created on that particular page.

To add a new property to the template, you need to do something like:

! This is some new important property that I just made up:
| [[some new property::{{{some new property|}}}]]

As a sanity check, you can always use "__SHOWFACTBOX__" to list all the properties on the page, to make sure that you have set up the syntax correctly. has more info on how properties can be specified on the wiki.