Modeller logo

HelpForUsers > HelpOnEditing > HelpOnFormatting

This page describes using the MoinMoin wiki syntax (which is the default syntax for a MoinMoin based wiki, but not the only one). For other parsers/syntaxes take a look at HelpOnParsers.

General

  • Use one or more blank lines to separate paragraphs.
  • Use <<BR>> to insert linebreaks into paragraphs.

Typeface

Name/Sample

Markup

Notes

italic

''italic''

Double single quotes.

bold

'''bold'''

Triple single quotes.

monospace

`monospace`

Single backticks. Wiki markup is ignored.

code

{{{code}}}

Example. Wiki markup is ignored.

underline

__underline__

superscript

^super^script

subscript

,,sub,,script

smaller

~-smaller-~

larger

~+larger+~

stroke

--(stroke)--

Colorize text

Colorizing is enabled in tables without additional macros (see HelpOnTables).

See also How can I colorize my text? in the FAQ.

Or install the Macro Color2 except of the font it worked also in 1.7.1

Colorize code (Syntax Highlighting)

There are several ways to highlight code:

  1. Start a special code block containing the parser's name: {{{#!parsername

  2. Embed a file attachment bearing a supported extension (such as ".py") with {{attachment:test.py}}

  3. Begin a page with the format processing instruction: #format parsername

Example.

To see the list of supported languages see HelpOnParsers.


Examples

Mixing ''italic'' and '''bold'''

Markup

Result

'''''Mix''' at the beginning''

Mix at the beginning

'''''Mix'' at the beginning'''

Mix at the beginning

'''Mix at the ''end'''''

Mix at the end

''Mix at the '''end'''''

Mix at the end

Code

{{{
10 PRINT "Hello, world!"
20 GOTO 10
}}}

Result:

10 PRINT "Hello, world!"
20 GOTO 10

Nesting curly braces

As pointed out on HelpOnParsers, you can nest multiple levels of curly braces:

{{{{ 
This is a preformatted text block.
{{{ with curly braces inside }}}
}}}}

is rendered as:

This is a preformatted text block.
{{{ with curly braces inside }}}

Superscript & Subscript

You might recall ''a''^2^ + ''b''^2^ = ''c''^2^ from your math lessons, unless your head is filled with H,,2,,O.

Result:

You might recall a2 + b2 = c2 from your math lessons, unless your head is filled with H2O.

Colorized Code, Method #1

{{{#!python
from colors import palette
palette.colorize('python')
}}}

Result:

   1 from colors import palette
   2 palette.colorize('python')
--> -->

TypeError

cannot concatenate 'str' and 'dict' objects

If you want to report a bug, please save this page and attach it to your bug report.

Traceback

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

  1. /usr/lib/python2.6/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_modpython.Request object at 0xb70e30cc>)

    1. 1309 self.page.send_page()
    2. 1310 else:
    3. 1311 handler(self.page.page_name, self)
    4. 1312
    5. 1313 # every action that didn't use to raise MoinMoinFinish must call this now:
    • handler = <function do_show at 0xb734a80c>
    • self = <MoinMoin.request.request_modpython.Request object at 0xb70e30cc>
    • self.page = <MoinMoin.Page.Page object at 0xb70e392c>
    • self.page.page_name = u'HelpOnFormatting'
  2. /usr/lib/python2.6/site-packages/MoinMoin/action/__init__.py in do_show (pagename=u'HelpOnFormatting', request=<MoinMoin.request.request_modpython.Request object at 0xb70e30cc>, content_only=0, count_hit=1, cacheable=1, print_mode=0)

    1. 251 count_hit=count_hit,
    2. 252 print_mode=print_mode,
    3. 253 content_only=content_only,
    4. 254 )
    5. 255
    • content_only = 0
  3. /usr/lib/python2.6/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object at 0xb70e358c>, **keywords={'content_only': 0, 'count_hit': 1, 'print_mode': 0})

    1. 1213 # send the page footer
    2. 1214 if self.default_formatter:
    3. 1215 request.theme.send_footer(self.page_name, print_mode=print_mode)
    4. 1216
    5. 1217 request.write(self.formatter.endDocument())
    • request = <MoinMoin.request.request_modpython.Request object at 0xb70e30cc>
    • request.theme = <modeller.p_1b0ad971f9554463f82a39d64deb081a16f2dabf.theme.modeller.Theme instance at 0xb70e0b4c>
    • request.theme.send_footer = <bound method Theme.send_footer of <modeller.p_1...abf.theme.modeller.Theme instance at 0xb70e0b4c>>
    • self = <MoinMoin.Page.Page object at 0xb70e358c>
    • self.page_name = u'HelpOnFormatting'
    • print_mode = 0
  4. /usr/lib/python2.6/site-packages/MoinMoin/theme/__init__.py in send_footer (self=<modeller.p_1b0ad971f9554463f82a39d64deb081a16f2dabf.theme.modeller.Theme instance at 0xb70e0b4c>, pagename=u'HelpOnFormatting', **keywords={'print_mode': 0})

    1. 1808 request.write(self.endPage())
    2. 1809 else:
    3. 1810 request.write(self.footer(d, **keywords))
    4. 1811
    5. 1812 # stuff moved from request.py
    • request = <MoinMoin.request.request_modpython.Request object at 0xb70e30cc>
    • request.write = <bound method Request.write of <MoinMoin.request.request_modpython.Request object at 0xb70e30cc>>
    • self = <modeller.p_1b0ad971f9554463f82a39d64deb081a16f2dabf.theme.modeller.Theme instance at 0xb70e0b4c>
    • self.footer = <bound method Theme.footer of <modeller.p_1b0ad9...abf.theme.modeller.Theme instance at 0xb70e0b4c>>
    • d = {'available_actions': ['use self.request.availableActions(page)'], 'baseurl': '/modeller/wiki', 'home_page': None, 'last_edit_info': '', 'logo_string': u'Modeller Wiki', 'msg': [], 'navibar': ['use self.navibar(d)'], 'page': <MoinMoin.Page.Page object at 0xb70e358c>, 'page_find_page': 'FindPage', 'page_front_page': u'FrontPage', ...}
    • keywords = {'print_mode': 0}
  5. /guitar3/home/wiki/modeller-wiki/data/plugin/theme/modeller.py in footer (self=<modeller.p_1b0ad971f9554463f82a39d64deb081a16f2dabf.theme.modeller.Theme instance at 0xb70e0b4c>, d={'available_actions': ['use self.request.availableActions(page)'], 'baseurl': '/modeller/wiki', 'home_page': None, 'last_edit_info': '', 'logo_string': u'Modeller Wiki', 'msg': [], 'navibar': ['use self.navibar(d)'], 'page': <MoinMoin.Page.Page object at 0xb70e358c>, 'page_find_page': 'FindPage', 'page_front_page': u'FrontPage', ...}, **keywords={'print_mode': 0})

    1. 62 self.endPage(),
    2. 63 u'</td></tr></table>',
    3. 64 self.mod_pageinfo(page),
    4. 65
    5. 66 # Pre footer custom html (not recommended!)
    • self = <modeller.p_1b0ad971f9554463f82a39d64deb081a16f2dabf.theme.modeller.Theme instance at 0xb70e0b4c>
    • self.mod_pageinfo = <bound method Theme.mod_pageinfo of <modeller.p_...abf.theme.modeller.Theme instance at 0xb70e0b4c>>
    • page = <MoinMoin.Page.Page object at 0xb70e358c>
  6. /guitar3/home/wiki/modeller-wiki/data/plugin/theme/modeller.py in mod_pageinfo (self=<modeller.p_1b0ad971f9554463f82a39d64deb081a16f2dabf.theme.modeller.Theme instance at 0xb70e0b4c>, page=<MoinMoin.Page.Page object at 0xb70e358c>)

    1. 101 else:
    2. 102 info = "This file last modified %(time)s." % info
    3. 103 return copyright + info + "</p></td></tr></table></div>"
    4. 104
    5. 105 def modeller_menu(self):
    • copyright = '\n<p></p>\n<div class="copyright">\n<table><tr>\n<td...d without a written permission from Andrej Sali.\n'
    • info = {}

TypeError

cannot concatenate 'str' and 'dict' objects

  • args = ("cannot concatenate 'str' and 'dict' objects",)
  • message = "cannot concatenate 'str' and 'dict' objects"

System Details