Editing Help:Manual

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 152: Line 152:
 
MediaWiki supports regular HTML and CSS markup, but use this sparingly! Avoid <span> tags and inline CSS, and instead familiarize yourself with the classes available in [[MediaWiki:Common.css]].
 
MediaWiki supports regular HTML and CSS markup, but use this sparingly! Avoid <span> tags and inline CSS, and instead familiarize yourself with the classes available in [[MediaWiki:Common.css]].
  
βˆ’
==🧩 Some common and useful CSS classes==
+
Here are some common classes that you may find useful:
  
 
===mbox and mbox small===
 
===mbox and mbox small===
Line 162: Line 162:
 
===figure and tablecaption===
 
===figure and tablecaption===
  
βˆ’
<div class="figure">
+
See previous section on figures. Edit these to change the look of figures and tables across the wiki.
βˆ’
[[File:Black rectangle.png]]
 
βˆ’
Example 1: a live example of the "figure" class.</div>
 
βˆ’
 
 
βˆ’
<div class="tablecaption">Example 2: a live example of the "tablecaption" class.</div>
 
βˆ’
{| class="wikitable"
 
βˆ’
! Header 1
 
βˆ’
! Header 2
 
βˆ’
|-
 
βˆ’
|Cell 1-L
 
βˆ’
|Cell 1-R
 
βˆ’
|-
 
βˆ’
|Cell 2-L
 
βˆ’
|Cell 2-R
 
βˆ’
|}
 
βˆ’
 
 
βˆ’
See the previous section on figures and tables. Edit these to change the look of figures and tables across the wiki.
 
  
 
===navFrame and Infobox===
 
===navFrame and Infobox===
  
βˆ’
See the next section on templates. Edit these to change the look of navFrames and infoboxes across the wiki.
+
See next section on templates. Edit these to change the look of navFrames and infoboxes across the wiki.
  
 
==πŸ–‡οΈ Understanding templates==
 
==πŸ–‡οΈ Understanding templates==
  
βˆ’
One of MediaWiki's most useful features is ''[https://www.mediawiki.org/wiki/Transclusion transclusion]'', ie. showing the contents of a page on another page. Generally this is done using '''templates'''. By creating a template with eg. information about a project, and using that template across the wiki, if there is a change in the original information we only need to change a single page – the template. The rest will transclude the new information automatically.
+
One of MediaWiki's most useful features is ''transclusion'' – moving the template  
βˆ’
 
+
''Coming soon: what are templates? List of common templates in use on the ENVRI wiki, links to more resources.''
βˆ’
Templates are identified by the '''"Template:" prefix'''. They are transcluded by using a '''template call''' which is the name of the template inside curly braces, like so: <nowiki>{{Template:TemplateName}}</nowiki>.
 
  
βˆ’
Here's an example of a template in action:
+
<!--TODO: what are templates? list of important templates on this wiki, links to external resources, creating new templates-->
βˆ’
* The top of the [[:Category:ENVRIplus]] page contains some general information about the ENVRIplus project.
 
βˆ’
* However, instead of having this information written directly on the page, the page simply contains two template calls to: [[Template:ENVRIplus/short]] and [[Template:ENVRIplus/summary]].
 
βˆ’
* Consequently, these contents are transcluded unto the category page. If the templates change, so does the information on [[:Category:ENVRIplus]].
 
  
βˆ’
Templates can also be called with '''parameters''', resulting in unique results on the page where they are called. Both of the two most common templates in use on the ENVRI wiki, namely [[Template:Infobox]] and [[Template:DocumentMetadata]], use parameters. (See the template pages for an explanation of their purpose and syntax.) In other words, changing the templates can change the look and behaviour of infoboxes and document metadata boxes across the entire wiki, but leave the specifics of each page (infobox titles, the metadata itself, etc.) untouched.
+
Here are some commonly used templates on the ENVRI wiki:
  
βˆ’
To list all templates on the wiki, you can do [[http://mediawiki.envri.eu/index.php?title=Special%3APrefixIndex&prefix=&namespace=10 a namespace search using Special:PrefixIndex]].
+
InfoBox
 +
NavFrame
  
 
=πŸ“– About this manual=
 
=πŸ“– About this manual=

Please note that all contributions to may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)