Team:KULeuven/Tools/Wiki Help
From 2008.igem.org
m (→FAQ) |
m (→FAQ) |
||
Line 39: | Line 39: | ||
<blockquote>'''Q''': I wish to use html syntax (e.g. <a>, <ul>, ...) but it doesn't work, what do I do?</blockquote> | <blockquote>'''Q''': I wish to use html syntax (e.g. <a>, <ul>, ...) but it doesn't work, what do I do?</blockquote> | ||
- | '''A''': Simply put it between <html> ... </html> tags. | + | '''A''': Simply put it between <html> ... </html> tags. The wiki engine will then remove the html tags but still interpret it as html code instead of wiki code, which unevitably means that you can't add wiki code between html tags. |
<blockquote>'''Q''': How do I show wiki code on a page?</blockquote> | <blockquote>'''Q''': How do I show wiki code on a page?</blockquote> | ||
'''A''': Put it between <nowiki> ... </nowiki> tags. | '''A''': Put it between <nowiki> ... </nowiki> tags. |
Revision as of 22:34, 13 September 2008
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]
- [http://www.tyssendesign.com.au/articles/css/centering-a-dropdown-menu Centering a dropdown menu (centered horizontal ul list)]
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}}
The only difference is that you have to put an extra colon(:) right after the two first braces({{)
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> ... </html> tags. The wiki engine will then remove the html tags but still interpret it as html code instead of wiki code, which unevitably means that you can't add wiki code between html tags.
Q: How do I show wiki code on a page?
A: Put it between <nowiki> ... </nowiki> tags.