wiki-formats: Difference between revisions

From Microformats Wiki
Jump to navigation Jump to search
m (Reverted edits by DomliTroco (Talk) to last version by ChristopheDucamp)
 
(36 intermediate revisions by 20 users not shown)
Line 4: Line 4:


* Tantek Çelik
* Tantek Çelik
* Ben West


== Intro ==
== Intro ==
Line 29: Line 30:
* paragraphs
* paragraphs
** blank line creates a new paragraph
** blank line creates a new paragraph
* lists
* unordered lists
** start a line with "* " and it will put it into an unordered list.
** start a line with "* " and it will put it into an unordered list.
** use multiple "*", e.g. "** " for 2nd level, for nested unordered lists.
** use multiple "*", e.g. "** " for 2nd level, for nested unordered lists.
* ordered lists
** start a line with "# " and it will put it into an ordered list.
** use multiple "#", e.g. "## " for 2nd level, for nested ordered lists.
* headings
* headings
** prefix (and suffix?) with "=" for level 1 heading, "==" for level 2 heading etc.
** prefix and suffix with "=" for level 1 heading, "==" for level 2 heading etc.
* literal
* literal
** use <pre> ... </pre> tags
** use
* [[mediawiki-mark-up-issues|mediawiki mark-up issues]]


=== MoinMoin ===
==Comments==


What the [http://developers.technorati.com/ Technorati Developer's Wiki] uses.
Guy Fraser: I assume you've not seen Confluence from www.atlassian.com - what you describe above is exactly how Confluence wiki notation works. Confluence has one major benefit over MediaWiki in that it has decent navigation tools - you can, for example, see a page index, site map, etc. In media wiki, unless you know what you are searching for or unless someone makes a link in a prominent place, content tends to dissapear unless you know what to search for. [unsigned comment from [[User:Aubergine10]] ]


=== Kwiki ===
JimMahoney: http://www.wikicreole.org is working on a common wiki markup language - the discussion there seems closely related to the issues raised here.
 
* See http://www.kwiki.org/
 
== wiki formats ==
 
* [http://www.kwiki.org/?WaflProposal WAFL - Wiki Abstract Formatting Langauage]
 
== straw proposals ==
 
What Ian uses in his text/plain documents:
 
* h1:
**
<pre>
first level heading - followed by a line starting with equal signs "="
=============================================
</pre>
* h2:
**
<pre>
second level heading - followed by a line starting dashes "-"
--------
</pre>
* h3:
**
<pre>
THIRD LEVEL HEADING - ALL CAPS ON A LINE
</pre>
* p:
** a blank line to start and finish
* ol / li
** a line starting with space then a number followed immediately by a period, e.g.
<pre>
1. Here is one ordered list item
</pre>
** note that such list items may be separated by blank lines. 
** note that paragraphs within a list item will be indented as much as the text after the list item marker.
** list is terminated by a non-blank line that *doesn't* start with space then a number then a period, and is outdented from where list item paragraphs are.
* ul / li
** a line starting with space then an asterisk then at least one space, e.g.
<pre>
* Here is an unordered list item
</pre>
** same notes apply respectively as those for ordered list items above.
** nested unordered list items are similar, except that their marker is further indented, and in addition to "*", other list item markers may be used such as "+" and "-".
* pre / code
** some amount of nesting with whitespace.  pre / code.  it's not clear what type of code (e.g. HTML or CSS).
* em
** text surrounded by a single adjacent underline on both sides, e.g.
<pre>
_at the moment_
</pre>
* blockquote and cite attribute
** a set of lines that being with "| ", and after the last one, a line that starts with " -- ", followed by the citation URL, e.g.:
<pre>
| This is a quote
| and a second line
-- http://example.com/quotation/
</pre>
 
Open issues:
* What's this?
** <code>-*- Mode: text; -*-</code>
* how do you encode the in text/plain the semantics of:
** strong
** dfn
** dl/dt/dd
** h4, h5, h6
** table / thead, tbody, tfoot, caption / tr / td, th
** hyperlinked text
** hyperlink relationships (rel attribute on hyperlinked text)
** address (possibly the "Author: " line?)
** inline code

Latest revision as of 18:14, 20 December 2008

wiki formats

Authors

  • Tantek Çelik
  • Ben West

Intro

Ian Hickson recently lamented to me that:

"I have yet to find a wiki that has both a nice syntax (i.e. one that looks 
like text/plain as opposed to one that looks like just another obscure 
markup language -- if you're going to use markup, why not just use HTML 
in the first place), and that produces semantic markup (as opposed to 
having tags for "bold" and "italics")."

And I have to kind of agree with him. My experience with current wiki formats is that they haven't done that good a job of "paving the cowpaths", that is, taking what people write in plain text documents, and interpreting them as structure, rather than inventing new text conventions (e.g. equal signs for headings?!?) and getting people to learn them.

This page is an attempt to catalog/document current wiki and wiki-like text formats to see if there is any chance of solving this problem.

Technically a wiki format would not be a microformat because it is not expressed in XHTML building blocks. However, many of the other principles of microformats can be applied to perhaps come up with a better solution that what wikis use today (since they all seem to use their own variant formats anyway).


wiki software

MediaWiki

What you're using now.

  • paragraphs
    • blank line creates a new paragraph
  • unordered lists
    • start a line with "* " and it will put it into an unordered list.
    • use multiple "*", e.g. "** " for 2nd level, for nested unordered lists.
  • ordered lists
    • start a line with "# " and it will put it into an ordered list.
    • use multiple "#", e.g. "## " for 2nd level, for nested ordered lists.
  • headings
    • prefix and suffix with "=" for level 1 heading, "==" for level 2 heading etc.
  • literal
    • use
  • mediawiki mark-up issues

Comments

Guy Fraser: I assume you've not seen Confluence from www.atlassian.com - what you describe above is exactly how Confluence wiki notation works. Confluence has one major benefit over MediaWiki in that it has decent navigation tools - you can, for example, see a page index, site map, etc. In media wiki, unless you know what you are searching for or unless someone makes a link in a prominent place, content tends to dissapear unless you know what to search for. [unsigned comment from User:Aubergine10 ]

JimMahoney: http://www.wikicreole.org is working on a common wiki markup language - the discussion there seems closely related to the issues raised here.