Features in Mediawiki in Relation to the Needs Matrix: Difference between revisions
Appearance
Darren Blake (talk | contribs) →Using Images: Added some text about inserting an image for markdown |
Darren Blake (talk | contribs) →Syntax Highlighting: Added some notes about HTML tags pre and code |
||
| Line 14: | Line 14: | ||
== Syntax Highlighting == | == Syntax Highlighting == | ||
Not a standard feature of MediaWiki. Requires an extension. | |||
Without the extension, you can use the HTML tags like <nowiki><pre></nowiki> or <nowiki><code></nowiki> such that: | |||
<nowiki><pre> | |||
SELECT s.spriden_first_name | |||
FROM spriden s | |||
WHERE s.spriden_last_name = 'Blake'; | |||
</pre></nowiki> | |||
produces: | |||
<pre> | |||
SELECT s.spriden_first_name | |||
FROM spriden s | |||
WHERE s.spriden_last_name = 'Blake'; | |||
</pre> | |||
and: | |||
<nowiki><code> | |||
SELECT s.spriden_first_name | |||
FROM spriden s | |||
WHERE s.spriden_last_name = 'Blake'; | |||
</code></nowiki> | |||
produces: | |||
<code> | |||
SELECT s.spriden_first_name | |||
FROM spriden s | |||
WHERE s.spriden_last_name = 'Blake'; | |||
</code> | |||
== Version History == | == Version History == | ||
Revision as of 16:44, 23 September 2025
WYSIWYG
What You See Is What You Get
Markdown
Using Images
A little clunky when not using a visual editor. If using the markdown editor then you need to:
- go to the upload page first
- Upload your image and set filename and description
- Then edit your wiki page and reference the file using the following syntax:
- [[File:your_filename.jpg]]
- An example image is displayed below
Syntax Highlighting
Not a standard feature of MediaWiki. Requires an extension.
Without the extension, you can use the HTML tags like <pre> or <code> such that:
<pre> SELECT s.spriden_first_name FROM spriden s WHERE s.spriden_last_name = 'Blake'; </pre>
produces:
SELECT s.spriden_first_name FROM spriden s WHERE s.spriden_last_name = 'Blake';
and:
<code> SELECT s.spriden_first_name FROM spriden s WHERE s.spriden_last_name = 'Blake'; </code>
produces:
SELECT s.spriden_first_name
FROM spriden s
WHERE s.spriden_last_name = 'Blake';
Version History
See this page's history
Templates
Transclusion
Structure
Main Menu
Categories
Search
Table of Contents
See to the left of this page.
Content Discussion
Auto-generated Content
Export Content
Each page has a "Printable Version" (on the right-hand side).