This page discusses editorial policies and best practices to follow when updating or creating content in the GMOD web site.
The GMOD web site editorial policies and best practices are defined here. Consistent use of these policies and practices will hopefully lead to a consistent and readable web site.
This page first introduces meta-guidelines. These are guidelines about these guidelines and cover things like how to update the guidelines, and when you can ignore them. These are followed by the actual guidelines, describing how content should be created.
Or, Guidelines on Guidelines.
Q: Can I ignore these guidelines?
A: Yes.
We would much rather have a contribution that completely ignores these guidelines than not have the contribution at all.
This is for pragmatic and philosophical reasons. The whole goal of a wiki is to encourage people to contribute and maintain content. Site guidelines encourage a clean and well organized web site, but if the guidelines discourage people from contributing in the first place, then they have defeated the whole purpose.
It also takes some time to become proficient at MediaWiki (the wiki package behind this web site), and it can be a challenge to learn MediaWiki details and site policies at the same time.
However, once you get comfortable with MediaWiki, please think about writing your content so it does conform to these standards.
These guidelines are a work in progress and you are encouraged to suggest additions, deletions or revisions to them. The best way to do this is to send your comments to the GMOD Help Desk. Alternatively, you can post them to this page (or to this page’s discussion/talk page).
Q: Is there any enforcement of these guidelines?
A: Not really.
Beyond the usual wiki practices, there is no enforcement of these guidelines. This means that any non-conforming material you write won’t be deleted, but it might be modified to follow the guidelines if and when somebody notices.
This is a list of guidelines for creating content in the GMOD web site. Some guidelines are accompanied by discussion that explains them.
Guidelines are shown like this.
Discussion is shown as regular text.
Use Generous Capitalization instead of Parsimonious capitalization.
For example, use “Site Guidelines” instead of “Site guidelines”.
It looks better.
Use of MediaWiki redirects for page name synonyms is encouraged.
This means that if a user types “Generic Genome Browser” in the “Go/Search” box and you have a redirect defined for “GBrowse” then they will go directly to the GBrowse page, instead of the search results page.
To create a redirect page, enter the name of the redirect page in the Go/Search box and hit enter. Then click on the “create this page” link. In our example, you would enter/search for “Generic Genome Browser”.
This will display an empty page. Enter
#REDIRECT [[Page Name to Redirect to]]
In our example this would be:
#REDIRECT [[GBrowse]]
and then save the page.
A slight downside of this is that the Special:Allpages view now displays lots of pages that are only redirects to other pages. This turns into more of an index than a listing of all pages.
If you do not want the page you are editing to be listed in the New & Revised Pages list on the GMOD home page, then mark your edit as minor.
When you update a page in this web site you can flag it as a minor edit. As of December 2007, the minor/major edit distinction is used in one place in the GMOD web site: Major edits (that is, edits that are not marked as minor) cause the page to be listed in the New & Revised Pages list on the GMOD home page. That list is a reverse chronological ordering of all recent non-minor edits
If your edit is small, such as a spelling or other typo correction, then mark it as a minor edit.
Tag any pages you edit with appropriate categories for that page.
Be generous in your tagging. If a particular category gets too many pages in it then the help desk will subdivide that category.
This web site makes extensive use of tags, called categories in MediaWiki, to flag pages as being related to different topics. To encourage the use of categories, an input field and tag cloud listing existing categories is shown at the bottom of every edit page. You can either type in the category name or click on the category in the tag cloud to add it to the current page.
As of January, 2008 we are still adding category tags to pages. Once that work is closer to complete, categories will be prominently featured in site navigation.
If you think we need a new category then create it.
You can create a new category by typing the new category name in the Categories form on an edit page.
When creating a new category please:
Or, just send your new category suggestion to the GMOD Help Desk and we will add it.
When uploading a file, please give the file a meaningful Destination filename.
The Destination filename is the name the file will have in the GMOD web site. Why does this matter? Filenames are displayed in Categories, but none of the text in the file is. Therefore the filename should describe the contents of the file.
For example, the file Gkl777.pdf is an article on ParameciumDB from Nucleic Acids Research, but if you look at the file’s listing in the Publications category all you see is “Gkl777.pdf”. You have to follow the link to find out what the file is about.
When uploading a presentation or a paper, please add it to the Presentations or Publications categories. Also add the file to any other appropriate categories.
If the file is an image that is being linked to from a page then you don’t need to categorize it.
When uploading a diagram or cartoon that was created in a drawing program upload the exported image file (png, jpg, gif) and the original source file. Load both files with the same name, but different extensions.
This will allow others (and yourself) to modify the diagrams in the future rather than recreate them from scratch.
Please Note:
Descriptions of what formatting is desired and how to achieve it. For each type of text, this shows a minimum desired formatting, and, in most cases, a better (but more work) formatting.
Many of these are the result of questions and suggestions from past participants.
Type of text | Minimum | Better |
---|---|---|
|
Check the thingy.conf file. |
Check the |
|
You can add a leading space on each line:
Or use
Or
|
Same |
|
|
|
|
Edit the configuration file:
|
Edit the configuration file:
A word on text
editors such as gedit.
|
|
I dunno | I dunno either |
|
|
|
|
Here's an example of what not to do:
|
Same |
|
Now, to enable this theme, navigate to Administer, Site Building, Themes page and select the Pixture Reloaded radio button. |
Now, to enable this theme, navigate to the Administer → Site Building → Themes page and select the Pixture Reloaded button. |
The GMOD wiki uses Widgets to embed various types of file.
To embed Flash into a page, use the following syntax:
<oflash file="File:Movie.swf" caption="A cool flash movie that I made" width=500 height=900 />
More documentation on the OFlash MediaWiki page.
The GMOD wiki employs the extension
Syntax Highlight GeSHi to produce code with
highlighting. For coloured code, use the `
<syntaxhighlight lang="perl">
#!/usr/bin/perl
my $life = "over";
die("Goodbye, cruel world!");
</syntaxhighlight>
#!/usr/bin/perl
my $life = "over";
die("Goodbye, cruel world!");
Languages supported include Javascript, Java, Perl, PHP, XML, CSS, and more. Full documentation can be found on the Syntax Highlight GeSHi MediaWiki page.
If you wish to reference a paper with a PubMed ID or a digital object
identifier (DOI), the full information can be automatically retrieved
from PubMed or the CrossRef server for you. To create the reference, use
the <ref />
tag:
<ref name=PMID:15752432 />
The name
attribute can contain either a PubMed ID in the form
PMID:00000000 or a DOI in the form DOI:10.1186/1471-2164-14-741.
Put the tag <references />
where you want the full references to
appear on the page. The full details of each paper will magically appear
in place of the <references />
tag.
Wikitext
The 2013 paper by Leite ''et al.'' on the grooved shell carpet clam <ref name="DOI:10.1186/1471-2164-14-741" />
represents a first attempt to characterize ''Ruditapes decussatus'' transcriptome; it cites the classic Ficklin
''et al.'' Tripal paper <ref name="PMID:21959868" />.
<references />
Result
The 2013 paper by Leite et al. on the grooved shell carpet clam[1] represents a first attempt to characterize Ruditapes decussatus transcriptome; it cites the classic Ficklin et al. Tripal paper [2].
<ref>
tag; no text was provided for refs
named DOI:10.1186.2F1471-2164-14-741
<ref>
tag; no text was provided for refs
named PMID:21959868
The information pages about each component are generated by feeding the
information on the tool_data
page through a template. To edit what
appears on the component page, you need to edit the corresponding
tool_data
page.
Tool data is stored in tag-value pairs in the format
| tag = value
The value can be formatted wiki text or a wiki template, and may span numerous lines. For example:
| tag = value
| tag = '''value'''
| tag = [[Main Page|A link to a page]]
Some more wikitext here
[[Site Guidelines|A link to another page]]
| tag = Include A Template
The tool_data
pages essentially act as a data store, and the page
Template:ToolDisplay
parses and formats the data to produce a standardized GMOD component
page.