Practical Semantic Mediawiki: Difference between revisions

Jump to navigation Jump to search
Line 66: Line 66:
=== Basic markup ===
=== Basic markup ===


[[File:Sky_Clouds_13.jpg|right|200px|A picture of clouds with the sun poking through in case people start to panic]]
[[File:Sky_Clouds_13.jpg|right|400px|A picture of clouds with the sun poking through in case people start to panic]]


''Rather than using a rich text editor, Mediawiki uses a progressively learned set of markup, that's designed to be human-readable, consistent and enforces meaning over appearance. It's not dependant on special programs, and could be carved into a park bench and retain its meaning.''
''Rather than using a rich text editor, Mediawiki uses a progressively learned set of markup, that's designed to be human-readable, consistent and enforces meaning over appearance. It's not dependant on special programs, and could be carved into a park bench and retain its meaning.''


* <nowiki>[[Mypage]]</nowiki> — A wiki link
** <nowiki>[[File:Mypicture.png]]</nowiki> — Media (inline or link)
** <nowiki>[[Mypage|This is my page]]</nowiki> Alternate link text (using pipe symbol)
* <nowiki>[http://theirsite.com]</nowiki> — A non-wiki link. Use a space after the link to use your own link text. <nowiki>[http://theirsite.com Their site]</nowiki>.
* <nowiki>{{My Template}}</nowiki> — A template (reusable content, function or variable) — Don't Repeat Yourself
** Pipe symbol is used to pass parameters — <nowiki>{{Show Something|Something}}</nowiki>
* <nowiki>{{{}}}</nowiki> — SMW variable
* <nowiki>''Italic'', '''Bold'''</nowiki>
* <nowiki>''Italic'', '''Bold'''</nowiki>
* <nowiki>* List heading level one</nowiki> — use # for numbered list
* <nowiki>* List heading level one</nowiki> — use # for numbered list
Line 84: Line 77:
** <nowiki>==Heading two==</nowiki>
** <nowiki>==Heading two==</nowiki>
*** ...
*** ...
* <nowiki>[[Mypage]]</nowiki> — A wiki link
** <nowiki>[[File:Mypicture.png]]</nowiki> — Media (inline or link)
** <nowiki>[[Mypage|This is my page]]</nowiki> Alternate link text (using pipe symbol)
* <nowiki>[http://theirsite.com]</nowiki> — A non-wiki link
** Use a space after the link to use your own link text. <nowiki>[http://theirsite.com Their site]</nowiki>.
* <nowiki>{{My Template}}</nowiki> — A template (reusable content, function or variable) — Don't Repeat Yourself
** Pipe symbol is used to pass parameters — <nowiki>{{Show Something|Something}}</nowiki>
* <nowiki>{{{}}}</nowiki> — SMW variable


* Proactive linking
* Proactive linking

Navigation menu