Django Library Mycreole
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

help.py 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. MYCREOLE_HELP = """\
  2. = Creole Markup
  3. The Fields //"Description"// and //"Name"// of Tasks and Projects are interpreted as creole. \
  4. See http://www.wikicreole.org for more details.
  5. == Text Markup
  6. | =Name | =Syntax | =Result |
  7. | Normal | {{{text}}} | text |
  8. | Bold | {{{**text**}}} | **text** |
  9. | Italics | {{{//text//}}} | //text// |
  10. | Underline | {{{__text__}}} | __text__ |
  11. | Raw Link | {{{https://python.org}}} | https://python.org |
  12. | Text Link | {{{[[https://python.org|Python]]}}} | [[https://python.org|Python]] |
  13. | Image | {{{ {{/media/theme/logo.png|logo}} }}} | {{/media/theme/logo.png|logo}} |
  14. | Attachment Text Link | {{{[[attachment:file.ext|Python]]}}} | |
  15. | Attachment Image | {{{ {{attachment:logo.png|logo}} }}} | |
  16. == Paragraph Markup
  17. === Bullet List
  18. {{{
  19. * Entry One
  20. * Entry Two
  21. ** Subentry Two.One
  22. }}}
  23. results in:
  24. * Entry One
  25. * Entry Two
  26. ** Subentry Two.One
  27. === Numbered List
  28. {{{
  29. # Entry One
  30. # Entry Two
  31. ## Subentry Two.One
  32. }}}
  33. results in:
  34. # Entry One
  35. # Entry Two
  36. ## Subentry Two.One
  37. === Headings
  38. {{{ = Large Heading }}}
  39. results in:
  40. = Large Heading
  41. {{{ == Medium Heading }}}
  42. results in:
  43. == Medium Heading
  44. {{{ === Small Heading }}}
  45. results in:
  46. === Small Heading
  47. === Line Break
  48. {{{
  49. Multiple
  50. line text
  51. }}}
  52. results in:
  53. Multiple
  54. line text
  55. === No Line Break
  56. {{{
  57. Single \\
  58. Line
  59. }}}
  60. results in:
  61. Single \
  62. Line
  63. === Paragraph
  64. {{{
  65. Part 1
  66. Part 2
  67. }}}
  68. results in:
  69. Part 1
  70. Part 2
  71. === Horizontal Line
  72. {{{
  73. ----
  74. }}}
  75. results in:
  76. ----
  77. === Table
  78. {{{
  79. | =Header 1 | =Header 2 | =Header 3 |
  80. | body row 1 | column 2 | column 3 |
  81. | body row 2 | - | - |
  82. }}}
  83. results in:
  84. | =Header 1 | =Header 2 | =Header 3 |
  85. | body row 1 | column 2 | column 3 |
  86. | body row 2 | - | - |
  87. === Unprocessed (raw) Text
  88. {{{
  89. {{{
  90. unprocessde data! <div>
  91. }}\0}
  92. }}}
  93. results in:
  94. {{{
  95. unprocessde data! <div>
  96. }}}
  97. """