]> git.openstreetmap.org Git - osqa.git/blob - forum/skins/default/templates/markdown_help.html
Adds a user preferences page. Not much to see yet, only the preference to make sorts...
[osqa.git] / forum / skins / default / templates / markdown_help.html
1 {% extends "base_content.html" %}
2 {% load extra_tags %}
3 {% load humanize %}
4 {% load i18n %}
5
6 {% block fulltitle %}{% spaceless %}{% trans "Markdown Help" %}{% endspaceless %}{% endblock %}
7
8 {% block forejs %}
9     <link rel="stylesheet" type="text/css" media="all" href="{% media  "/media/style/markdown_help.css" %}" />
10 {% endblock %}
11
12 {% block content %}
13     <div id="main-wrapper"><br /><br />
14         <div id="heading">
15             <h1>{% trans "Markdown Syntax" %}</h1>
16             <p>{% blocktrans %}This document describes some of the more important parts of Markdown (for writers, that is).  There's a lot more to the syntax than is mentioned here, though.  To get the full syntax documentation, go to John Gruber's <a href="http://daringfireball.net/projects/markdown/syntax" rel="nofollow">Markdown Syntax</a> page{% endblocktrans %}</p>
17         </div>
18
19         <div class="section">
20             <h2 class="section-title">{% trans "Headers" %}</h2>
21             <div class="section-description">
22                 {% trans "For top-level headers underline the text with equal signs.  For second-level headers use dashes to underline." %}
23             </div>
24             <table class="section-example"><tr>
25                 <td>
26                     <code>{% trans "This is an H1" %}</code><br />
27                     <code>============= </code>
28                 </td>
29                 <td>
30                     <h1>{% trans "This is an H1" %}</h1>
31                 </td>
32             </tr></table>
33             
34             <table class="section-example"><tr>
35                 <td>
36                     <code>{% trans "This is an H2" %}</code><br />
37                     <code>-------------</code>
38                 </td>
39                 <td>
40                     <h2>{% trans "This is an H2" %}</h2>
41                 </td>
42              </tr></table>
43
44             <div class="section-description">
45                 {%  blocktrans %}If you would rather, you can prefix headers with a hash (#) symbol instead.  The number of hash symbols indicates the header level.  For example, a single hash indicates a header level of one while two indicates the second header level:{%  endblocktrans %}
46             </div>
47             <table class="section-example"><tr>
48                 <td>
49                     <code># {% trans "This is an H1" %}</code>
50                 </td>
51                 <td>
52                     <h1>{% trans "This is an H1" %}</h1>
53                 </td>
54             </tr></table>
55
56             <table class="section-example"><tr>
57                 <td>
58                     <code>## {% trans "This is an H2" %}</code>
59                 </td>
60                 <td>
61                     <h2>{% trans "This is an H2" %}</h2>
62                 </td>
63             </tr></table>
64
65             <table class="section-example"><tr>
66                 <td>
67                     <code>### {% trans "This is an H3" %}</code>
68                 </td>
69                 <td>
70                     <h3>{% trans "This is an H3" %}</h3>
71                 </td>
72              </tr></table>
73
74             <div class="section-description">
75                 {% trans "Which you choose is a matter of style.  Whichever you thinks looks better in the text document.  In both cases, the final, fully formatted, document looks the same." %}
76             </div>
77         </div>
78
79         <div class="section">
80             <h2 class="section-title">{% trans "Paragraphs" %}</h2>
81             <div class="section-description">
82                 {% trans "Paragraphs are surrounded by blank lines." %}
83             </div>
84             <div class="section-example">
85                 <code>{% trans "This is paragraph one." %}</code>
86             </div><br />
87             <div class="section-example">
88                 <code>{% trans "This is paragraph two." %}</code>
89             </div>
90         </div>
91
92         <div class="section">
93             <h2 class="section-title">{% trans "Links" %}</h2>
94             <div class="section-description">
95                 {%  blocktrans %}
96                 There are two parts to every link.
97                 The first is the actual text that the user will see and it is surrounded by brackets.
98                 The second is address of the page you wish to link to and it is surrounded in parenthesis.
99                 {%  endblocktrans %}
100             </div>
101             <table class="section-example"><tr>
102                 <td>
103                     <code>[{% trans "link text" %}]({% trans "http://example.com/" %})</code>
104                 </td>
105                 <td>
106                     <a>{% trans "link text" %}</a>
107                 </td>
108             </tr></table>
109         </div>
110
111         <div class="section">
112             <h2 class="section-title">{% trans "Formatting" %}</h2>
113             <div class="section-description">
114                 {% trans "To indicate bold text surround the text with two star (*) symbols or two underscore (_) symbols:" %}
115             </div>
116             <table class="section-example"><tr>
117                 <td>
118                     <code>**{% trans "This is bold" %}**</code>
119                 </td>
120                 <td>
121                     <strong>{% trans "This is bold" %}</strong>
122                 </td>
123             </tr></table>
124             <table class="section-example"><tr>
125                 <td>
126                     <code>__{% trans "This is also bold" %}__</code>
127                  </td>
128                  <td>
129                      <strong>{% trans "This is also bold" %}</strong>
130                  </td>
131              </tr></table>
132
133             <div class="section-description">
134                 {% trans "To indicate italicized text surround the text with a single star (*) symbol or underscore (_) symbol:" %}
135             </div>
136             <table class="section-example"><tr>
137                 <td>
138                     <code>*{% trans "This is italics" %}*</code>
139                 </td>
140                 <td>
141                     <i>{% trans "This is italics" %}</i>
142                 </td>
143             </tr></table>
144             <table class="section-example"><tr>
145                 <td>
146                     <code>_{% trans "This is also italics" %}_</code>
147                  </td>
148                  <td>
149                      <i>{% trans "This is also italics" %}</i>
150                  </td>
151              </tr></table>
152
153             <div class="section-description">
154                 {% trans "To indicate italicized and bold text surround the text with three star (*) symbol or underscore (_) symbol:" %}
155             </div>
156             <table class="section-example"><tr>
157                 <td>
158                     <code>***{% trans "This is bold and italics" %}***</code>
159                 </td>
160                 <td>
161                     <strong><i>{% trans "This is italics" %}</i></strong>
162                 </td>
163             </tr></table>
164             <table class="section-example"><tr>
165                 <td>
166                     <code>___{% trans "This is also bold and italics" %}___</code>
167                 </td>
168                 <td>
169                     <strong><i>{% trans "This is italics" %}</i></strong>
170                 </td>
171             </tr></table>
172         </div>
173
174
175         <div class="section">
176             <h2 class="section-title">{% trans "Blockquotes" %}</h2>
177             <div class="section-description">
178                 {% trans "To create an indented area use the right angle bracket (&gt;) character before each line to be included in the blockquote." %}
179             </div>
180             <table class="section-example"><tr>
181                 <td>
182                     <code>&gt; {% trans "This is part of a blockquote." %}</code><br />
183                     <code>&gt; {% trans "This is part of the same blockquote." %}</code>
184                 </td>
185                 <td>
186                     <p style="padding-left:15px;">{% trans "This is part of a blockquote." %}<br />{% trans "This is part of the same blockquote." %}</p>
187                 </td>
188             </tr></table>
189
190             <div class="section-description">
191                 {% trans "Rather than putting it in front of each line to include in the block quote you can put it at the beginning and end the quote with a newline." %}
192             </div>
193             <table class="section-example"><tr>
194                 <td>
195                     <code>&gt; {% trans "This is part of a blockquote." %}</code><br />
196                     <code>{% trans "This continues the blockquote even though there's no bracket." %}</code><br /><br />
197                     <code>{% trans "The blank line ends the blockquote." %}</code>
198                 </td>
199                 <td>
200                     <p style="padding-left:15px;">{% trans "This is part of a blockquote." %} <br /> {% trans "This continues the blockquote even though there's no bracket." %}</p>
201                     <p>{% trans "The blank line ends the blockquote." %}</p>
202                 </td>
203             </tr></table>
204         </div>
205
206         <div class="section">
207              <h2 class="section-title">{% trans "Lists" %}</h2>
208              <div class="section-description">
209                  {% trans "To create a numbered list in Markdown, prefix each item in the list with a number followed by a period and space.  The number you use actually doesn't matter." %}
210              </div>
211              <table class="section-example"><tr>
212                  <td>
213                     <code>1. {% trans "Item" %} 1</code><br />
214                     <code>2. {% trans "Item" %} 2</code><br />
215                     <code>3. {% trans "Item" %} 3</code>
216                  </td>
217                  <td>
218                     <ol>
219                         <li>{% trans "Item" %} 1</li>
220                         <li>{% trans "Item" %} 2</li>
221                         <li>{% trans "Item" %} 3</li>
222                     </ol>
223                  </td>
224              </tr></table>
225
226              <div class="section-description">
227                  {% trans "To create a bulleted list, prefix each item in the list with a star (*) character." %}
228              </div>
229              <table class="section-example"><tr>
230                  <td>
231                     <code>* {% trans "A list item" %}</code><br />
232                     <code>* {% trans "Another list item" %}</code><br />
233                     <code>* {% trans "A third list item" %}</code>
234                  </td>
235                  <td>
236                     <ul>
237                         <li>{% trans "A list item" %}</li>
238                         <li>{% trans "Another list item" %}</li>
239                         <li>{% trans "A third list item" %}</li>
240                     </ul>
241                  </td>
242              </tr></table>
243         </div>
244
245         <div class="section">
246             <h2 class="section-title">{% trans "A Lot More" %}</h2>
247             <div class="section-description">{% blocktrans %}There's a lot more to the Markdown syntax than is mentioned here.  But for creative writers, this covers a lot of the necessities.  To find out more about Markdown than you'd ever want to really know, <a href="http://daringfireball.net/projects/markdown/syntax" target="_blank" rel="nofollow">go to the Markdown page where it all started</a>.{% endblocktrans %}</div>
248         </div>
249     </div>
250 {% endblock %}