Team:KULeuven/Tools/Wiki Help
From 2008.igem.org
CSS styling
For general styling, here are some interesting links:
- [http://www.w3.org/Style/CSS W3C CSS Standard]
- [http://www.w3.org/TR/css3-selectors CSS Selectors]
- [http://www.w3.org/TR/CSS2/cascade.html CSS Cascading (import, inherit, ...)]
- [http://www.w3schools.com/css W3Schools CSS tutorials]
- [http://www.quirksmode.org/css/display.html CSS Display Property (table, inline-block, block, ...)]
- [http://www.zoffix.com/css/center Various centering tricks in CSS]
Anybody who knows CSS a bit, can manipulate the wiki style easily by investigating id's and classes of the wiki structure. Firefox users can make handy use of the syntax highlighting of the HTML source code (right click in a webpage and select "View Page Source"), whereas IE users are stuck with a simple .txt file.
A lot of information can be retrieved by investigating the css files used on the iGEM wiki, they will be found in the head section of the html source, the url can be found at the import statements:
<head>
...
<style type="text/css">
@import url('... url to the css file ...');
@import url('... another url to another css file');
</style>
...
</head>
FAQ
Q: Do I need to put templates in the Template namespace (e.g. Template:Navigation_Menu)?
A: No, if you read [http://meta.wikimedia.org/wiki/Help:Embed_page this page on the Mediawiki homepage], you'll find out you can put templates simply in any namespace. For example, take we have a template located at the url ".../Team:KULeuven/Tools/A_Template" then we could include in a wiki page by typing:
{{:Team:KULeuven/Tools/A_Template}}
Q: How come I can't upload SVG (Scalable Vector Graphics), JS (Javascript) files or use add-ons that I can on other wiki's (e.g. Wikipedia)?
A: This will often require added functionality that comes in the form of [http://www.mediawiki.org/wiki/Extensions extensions]. Extensions need to be installed manually and you'll need access to the wiki server files, which isn't granted.
Q: I wish to use html syntax (e.g. <a>, <ul>, ...) but it doesn't work, what do I do?
A: Simply put it between <html> tags, don't forget to close it with </html>. This approach is discouraged by the W3C standard, but it is the only way.
Q: How do I show wiki code on a page?
A: Put it between <nowiki> ... </nowiki> tags.