]>
Commit | Line | Data |
---|---|---|
b90ea8d3 | 1 | # |
d77aa8bc | 2 | # mediawiki.conf (based on html5.conf) |
b90ea8d3 DM |
3 | # |
4 | # Asciidoc configuration file. | |
d77aa8bc | 5 | # html5 backend for Proxmox VE mediawiki imports |
b90ea8d3 DM |
6 | # |
7 | ||
8 | [miscellaneous] | |
9 | outfilesuffix=.html | |
10 | ||
11 | [attributes] | |
12 | basebackend=html | |
13 | basebackend-html= | |
14 | basebackend-html5= | |
404a1dc1 | 15 | basebackend-mediawiki= |
b90ea8d3 DM |
16 | |
17 | [replacements2] | |
18 | # Line break. | |
19 | (?m)^(.*)\s\+$=\1<br> | |
20 | ||
21 | [replacements] | |
22 | ifdef::asciidoc7compatible[] | |
23 | # Superscripts. | |
24 | \^(.+?)\^=<sup>\1</sup> | |
25 | # Subscripts. | |
26 | ~(.+?)~=<sub>\1</sub> | |
27 | endif::asciidoc7compatible[] | |
28 | ||
29 | [ruler-blockmacro] | |
30 | <hr> | |
31 | ||
32 | [pagebreak-blockmacro] | |
33 | <div style="page-break-after:always"></div> | |
34 | ||
35 | [blockdef-pass] | |
36 | asciimath-style=template="asciimathblock",subs=() | |
37 | latexmath-style=template="latexmathblock",subs=() | |
38 | ||
39 | [macros] | |
40 | (?u)^(?P<name>audio|video)::(?P<target>\S*?)(\[(?P<attrlist>.*?)\])$=# | |
41 | # math macros. | |
42 | # Special characters are escaped in HTML math markup. | |
43 | (?su)[\\]?(?P<name>asciimath|latexmath):(?P<subslist>\S*?)\[(?P<passtext>.*?)(?<!\\)\]=[specialcharacters] | |
44 | (?u)^(?P<name>asciimath|latexmath)::(?P<subslist>\S*?)(\[(?P<passtext>.*?)\])$=#[specialcharacters] | |
45 | ||
46 | [asciimath-inlinemacro] | |
47 | `{passtext}` | |
48 | ||
49 | [asciimath-blockmacro] | |
50 | <div class="mathblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}> | |
51 | <div class="content"> | |
52 | <div class="title">{title}</div> | |
53 | `{passtext}` | |
54 | </div></div> | |
55 | ||
56 | [asciimathblock] | |
57 | <div class="mathblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}> | |
58 | <div class="content"> | |
59 | <div class="title">{title}</div> | |
60 | `|` | |
61 | </div></div> | |
62 | ||
63 | [latexmath-inlinemacro] | |
64 | {passtext} | |
65 | ||
66 | [latexmath-blockmacro] | |
67 | <div class="mathblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}> | |
68 | <div class="content"> | |
69 | <div class="title">{title}</div> | |
70 | {passtext} | |
71 | </div></div> | |
72 | ||
73 | [latexmathblock] | |
74 | <div class="mathblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}> | |
75 | <div class="content"> | |
76 | <div class="title">{title}</div> | |
77 | | | |
78 | </div></div> | |
79 | ||
80 | [image-inlinemacro] | |
81 | <span class="image{role? {role}}"> | |
82 | <a class="image" href="{link}"> | |
83 | {data-uri%}<img src="{imagesdir=}{imagesdir?/}{target}" alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}{title? title="{title}"}> | |
84 | {data-uri#}<img alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}{title? title="{title}"} | |
cf7a2acc | 85 | {data-uri#}{sys:"{python}" -u -c "import mimetypes,base64,sys; print('src=\x22data:' + mimetypes.guess_type(r'{target}')[0] + ';base64,'); base64.encode(sys.stdin.buffer,sys.stdout.buffer)" < "{eval:os.path.join(r"{indir={outdir}}",r"{imagesdir=}",r"{target}")}"}"> |
b90ea8d3 DM |
86 | {link#}</a> |
87 | </span> | |
88 | ||
89 | [image-blockmacro] | |
90 | <div class="imageblock{style? {style}}{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}{align? style="text-align:{align};"}{float? style="float:{float};"}> | |
91 | <div class="content"> | |
92 | <a class="image" href="{link}"> | |
93 | {data-uri%}<img src="{imagesdir=}{imagesdir?/}{target}" alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"}> | |
94 | {data-uri#}<img alt="{alt={target}}"{width? width="{width}"}{height? height="{height}"} | |
cf7a2acc | 95 | {data-uri#}{sys:"{python}" -u -c "import mimetypes,base64,sys; print('src=\x22data:' + mimetypes.guess_type(r'{target}')[0] + ';base64,'); base64.encode(sys.stdin.buffer,sys.stdout.buffer)" < "{eval:os.path.join(r"{indir={outdir}}",r"{imagesdir=}",r"{target}")}"}"> |
b90ea8d3 DM |
96 | {link#}</a> |
97 | </div> | |
98 | <div class="title">{caption={figure-caption} {counter:figure-number}. }{title}</div> | |
99 | </div> | |
100 | ||
101 | [audio-blockmacro] | |
102 | <div class="audioblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}> | |
103 | <div class="title">{caption=}{title}</div> | |
104 | <div class="content"> | |
105 | <audio src="{imagesdir=}{imagesdir?/}{target}"{autoplay-option? autoplay}{nocontrols-option! controls}{loop-option? loop}> | |
106 | Your browser does not support the audio tag. | |
107 | </audio> | |
108 | </div></div> | |
109 | ||
110 | [video-blockmacro] | |
111 | <div class="videoblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}> | |
112 | <div class="title">{caption=}{title}</div> | |
113 | <div class="content"> | |
114 | <video src="{imagesdir=}{imagesdir?/}{target}"{width? width="{width}"}{height? height="{height}"}{poster? poster="{poster}"}{autoplay-option? autoplay}{nocontrols-option! controls}{loop-option? loop}> | |
115 | Your browser does not support the video tag. | |
116 | </video> | |
117 | </div></div> | |
118 | ||
119 | [unfloat-blockmacro] | |
120 | <div style="clear:both;"></div> | |
121 | ||
122 | [toc-blockmacro] | |
123 | template::[toc] | |
124 | ||
125 | [indexterm-inlinemacro] | |
126 | # Index term. | |
127 | {empty} | |
128 | ||
129 | [indexterm2-inlinemacro] | |
130 | # Index term. | |
131 | # Single entry index term that is visible in the primary text flow. | |
132 | {1} | |
133 | ||
134 | [footnote-inlinemacro] | |
135 | # footnote:[<text>]. | |
110ebe8f | 136 | <span class="footnote"><br>[{0}]<br></span> |
b90ea8d3 DM |
137 | |
138 | [footnoteref-inlinemacro] | |
139 | # footnoteref:[<id>], create reference to footnote. | |
140 | {2%}<span class="footnoteref"><br><a href="#_footnote_{1}">[{1}]</a><br></span> | |
141 | # footnoteref:[<id>,<text>], create footnote with ID. | |
142 | {2#}<span class="footnote" id="_footnote_{1}"><br>[{2}]<br></span> | |
143 | ||
144 | [callout-inlinemacro] | |
145 | ifndef::icons[] | |
146 | <b><{index}></b> | |
147 | endif::icons[] | |
148 | ifdef::icons[] | |
149 | ifndef::data-uri[] | |
150 | <img src="{icon={iconsdir}/callouts/{index}.png}" alt="{index}"> | |
151 | endif::data-uri[] | |
152 | ifdef::data-uri[] | |
153 | <img alt="{index}" src="data:image/png;base64, | |
cf7a2acc | 154 | {sys:"{python}" -u -c "import base64,sys; base64.encode(sys.stdin.buffer,sys.stdout.buffer)" < "{eval:os.path.join(r"{indir={outdir}}",r"{icon={iconsdir}/callouts/{index}.png}")}"}"> |
b90ea8d3 DM |
155 | endif::data-uri[] |
156 | endif::icons[] | |
157 | ||
158 | # Comment line macros. | |
159 | [comment-inlinemacro] | |
160 | {showcomments#}<br><span class="comment">{passtext}</span><br> | |
161 | ||
162 | [comment-blockmacro] | |
163 | {showcomments#}<p><span class="comment">{passtext}</span></p> | |
164 | ||
165 | [literal-inlinemacro] | |
166 | # Inline literal. | |
344921df | 167 | <tt><span class="monospaced">{passtext}</span></tt> |
b90ea8d3 DM |
168 | |
169 | # List tags. | |
170 | [listtags-bulleted] | |
171 | list=<div class="ulist{style? {style}}{compact-option? compact}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ul>|</ul></div> | |
172 | item=<li>|</li> | |
173 | text=<p>|</p> | |
174 | ||
175 | [listtags-numbered] | |
176 | # The start attribute is not valid XHTML 1.1 but all browsers support it. | |
177 | list=<div class="olist{style? {style}}{compact-option? compact}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ol class="{style}"{start? start="{start}"}>|</ol></div> | |
178 | item=<li>|</li> | |
179 | text=<p>|</p> | |
180 | ||
181 | [listtags-labeled] | |
182 | list=<div class="dlist{compact-option? compact}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<dl>|</dl></div> | |
183 | entry= | |
184 | label= | |
185 | term=<dt class="hdlist1{strong-option? strong}">|</dt> | |
186 | item=<dd>|</dd> | |
187 | text=<p>|</p> | |
188 | ||
189 | [listtags-horizontal] | |
190 | list=<div class="hdlist{compact-option? compact}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<table>{labelwidth?<col width="{labelwidth}%">}{itemwidth?<col width="{itemwidth}%">}|</table></div> | |
191 | label=<td class="hdlist1{strong-option? strong}">|</td> | |
192 | term=|<br> | |
193 | entry=<tr>|</tr> | |
194 | item=<td class="hdlist2">|</td> | |
195 | text=<p style="margin-top: 0;">|</p> | |
196 | ||
197 | [listtags-qanda] | |
198 | list=<div class="qlist{style? {style}}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ol>|</ol></div> | |
199 | entry=<li>|</li> | |
200 | label= | |
201 | term=<p><em>|</em></p> | |
202 | item= | |
203 | text=<p>|</p> | |
204 | ||
205 | [listtags-callout] | |
206 | ifndef::icons[] | |
207 | list=<div class="colist{style? {style}}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ol>|</ol></div> | |
208 | item=<li>|</li> | |
209 | text=<p>|</p> | |
210 | endif::icons[] | |
211 | ifdef::icons[] | |
212 | list=<div class="colist{style? {style}}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<table>|</table></div> | |
213 | ifndef::data-uri[] | |
214 | item=<tr><td><img src="{iconsdir}/callouts/{listindex}.png" alt="{listindex}"></td><td>|</td></tr> | |
215 | endif::data-uri[] | |
216 | ifdef::data-uri[] | |
cf7a2acc | 217 | item=<tr><td><img alt="{listindex}" src="data:image/png;base64, {sys:"{python}" -u -c "import base64,sys; base64.encode(sys.stdin.buffer,sys.stdout.buffer)" < "{eval:os.path.join(r"{indir={outdir}}",r"{icon={iconsdir}/callouts/{listindex}.png}")}"}"></td><td>|</td></tr> |
b90ea8d3 DM |
218 | endif::data-uri[] |
219 | text=| | |
220 | endif::icons[] | |
221 | ||
222 | [listtags-glossary] | |
223 | list=<div class="dlist{style? {style}}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<dl>|</dl></div> | |
224 | label= | |
225 | entry= | |
226 | term=<dt>|</dt> | |
227 | item=<dd>|</dd> | |
228 | text=<p>|</p> | |
229 | ||
230 | [listtags-bibliography] | |
231 | list=<div class="ulist{style? {style}}{role? {role}}"{id? id="{id}"}>{title?<div class="title">{title}</div>}<ul>|</ul></div> | |
232 | item=<li>|</li> | |
233 | text=<p>|</p> | |
234 | ||
235 | [tags] | |
236 | # Quoted text. | |
237 | emphasis=<em>{1?<span class="{1}">}|{1?</span>}</em> | |
238 | strong=<strong>{1?<span class="{1}">}|{1?</span>}</strong> | |
344921df | 239 | monospaced=<tt><span class="monospaced{1? {1}}">|</span></tt> |
b90ea8d3 DM |
240 | singlequoted={lsquo}{1?<span class="{1}">}|{1?</span>}{rsquo} |
241 | doublequoted={ldquo}{1?<span class="{1}">}|{1?</span>}{rdquo} | |
242 | unquoted={1?<span class="{1}">}|{1?</span>} | |
243 | superscript=<sup>{1?<span class="{1}">}|{1?</span>}</sup> | |
244 | subscript=<sub>{1?<span class="{1}">}|{1?</span>}</sub> | |
245 | ||
246 | ifdef::deprecated-quotes[] | |
247 | # Override with deprecated quote attributes. | |
248 | emphasis={role?<span class="{role}">}<em{1,2,3? style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?"}>|</em>{role?</span>} | |
249 | strong={role?<span class="{role}">}<strong{1,2,3? style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?"}>|</strong>{role?</span>} | |
250 | monospaced=<span class="monospaced{role? {role}}"{1,2,3? style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?"}>|</span> | |
251 | singlequoted={role?<span class="{role}">}{1,2,3?<span style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?">}{amp}#8216;|{amp}#8217;{1,2,3?</span>}{role?</span>} | |
252 | doublequoted={role?<span class="{role}">}{1,2,3?<span style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?">}{amp}#8220;|{amp}#8221;{1,2,3?</span>}{role?</span>} | |
253 | unquoted={role?<span class="{role}">}{1,2,3?<span style="{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}">}|{1,2,3?</span>}{role?</span>} | |
254 | superscript={role?<span class="{role}">}<sup{1,2,3? style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?"}>|</sup>{role?</span>} | |
255 | subscript={role?<span class="{role}">}<sub{1,2,3? style="}{1?color:{1};}{2?background-color:{2};}{3?font-size:{3}em;}{1,2,3?"}>|</sub>{role?</span>} | |
256 | endif::deprecated-quotes[] | |
257 | ||
258 | # Inline macros | |
259 | [http-inlinemacro] | |
260 | <a href="{name}:{target}">{0={name}:{target}}</a> | |
261 | [https-inlinemacro] | |
262 | <a href="{name}:{target}">{0={name}:{target}}</a> | |
263 | [ftp-inlinemacro] | |
264 | <a href="{name}:{target}">{0={name}:{target}}</a> | |
265 | [file-inlinemacro] | |
266 | <a href="{name}:{target}">{0={name}:{target}}</a> | |
267 | [irc-inlinemacro] | |
268 | <a href="{name}:{target}">{0={name}:{target}}</a> | |
269 | [mailto-inlinemacro] | |
270 | <a href="mailto:{target}">{0={target}}</a> | |
271 | [link-inlinemacro] | |
272 | <a href="{target}">{0={target}}</a> | |
273 | [callto-inlinemacro] | |
274 | <a href="{name}:{target}">{0={target}}</a> | |
275 | # anchor:id[text] | |
276 | [anchor-inlinemacro] | |
277 | <a id="{target}"></a> | |
278 | # [[id,text]] | |
279 | [anchor2-inlinemacro] | |
280 | <a id="{1}"></a> | |
281 | # [[[id]]] | |
282 | [anchor3-inlinemacro] | |
283 | <a id="{1}"></a>[{1}] | |
284 | # xref:id[text] | |
285 | [xref-inlinemacro] | |
286 | <a href="#{target}">{0=[{target}]}</a> | |
287 | # <<id,text>> | |
288 | [xref2-inlinemacro] | |
289 | <a href="#{1}">{2=[{1}]}</a> | |
290 | ||
291 | # Special word substitution. | |
292 | [emphasizedwords] | |
293 | <em>{words}</em> | |
294 | [monospacedwords] | |
344921df | 295 | <tt>{words}</tt> |
b90ea8d3 DM |
296 | [strongwords] |
297 | <strong>{words}</strong> | |
298 | ||
299 | # Paragraph substitution. | |
300 | [paragraph] | |
8c8ae224 | 301 | <div class="paragraph{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}> |
1ff5e4e8 DM |
302 | {thumbnail#}<a class="image" href="/pve-docs/images/{thumbnail}"> |
303 | {thumbnail#}<img src="/pve-docs/images/{thumbnail}" alt="{alt={thumbnail}}" width=250 | |
b179764d DM |
304 | {thumbnail#}{float@left: style="padding\: 0 10px 0 0;float\:left;"} |
305 | {thumbnail#}{float@right: style="padding\: 0 0 0 10px;float\:right;"} | |
306 | {thumbnail#}{float%} style="padding: 0 0 0 10px;float:right;" | |
307 | {thumbnail#}></a> | |
df0649a4 | 308 | {title#}<div class="title"><h5>{title}</h5></div> |
8c8ae224 | 309 | <p> |
b90ea8d3 DM |
310 | | |
311 | </p></div> | |
312 | ||
313 | [admonitionparagraph] | |
314 | template::[admonitionblock] | |
315 | ||
316 | # Delimited blocks. | |
317 | [listingblock] | |
318 | <div class="listingblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}> | |
319 | <div class="title">{caption=}{title}</div> | |
320 | <div class="content monospaced"> | |
52cac052 | 321 | <pre><tt> |
b90ea8d3 | 322 | | |
52cac052 | 323 | </tt></pre> |
b90ea8d3 DM |
324 | </div></div> |
325 | ||
326 | [literalblock] | |
327 | <div class="literalblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}> | |
328 | <div class="title">{title}</div> | |
329 | <div class="content monospaced"> | |
77d64ef7 | 330 | <pre><tt> |
b90ea8d3 | 331 | | |
77d64ef7 | 332 | </tt></pre> |
b90ea8d3 DM |
333 | </div></div> |
334 | ||
335 | [sidebarblock] | |
336 | <div class="sidebarblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}> | |
337 | <div class="content"> | |
338 | <div class="title">{title}</div> | |
339 | | | |
340 | </div></div> | |
341 | ||
342 | [openblock] | |
343 | <div class="openblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}> | |
344 | <div class="title">{title}</div> | |
345 | <div class="content"> | |
346 | | | |
347 | </div></div> | |
348 | ||
349 | [partintroblock] | |
350 | template::[openblock] | |
351 | ||
352 | [abstractblock] | |
353 | template::[quoteblock] | |
354 | ||
355 | [quoteblock] | |
356 | <div class="quoteblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}> | |
357 | <div class="title">{title}</div> | |
358 | <div class="content"> | |
359 | | | |
360 | </div> | |
361 | <div class="attribution"> | |
362 | <em>{citetitle}</em>{attribution?<br>} | |
363 | — {attribution} | |
364 | </div></div> | |
365 | ||
366 | [verseblock] | |
367 | <div class="verseblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}> | |
368 | <div class="title">{title}</div> | |
369 | <pre class="content"> | |
370 | | | |
371 | </pre> | |
372 | <div class="attribution"> | |
373 | <em>{citetitle}</em>{attribution?<br>} | |
374 | — {attribution} | |
375 | </div></div> | |
376 | ||
377 | [exampleblock] | |
378 | <div class="exampleblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}> | |
379 | <div class="title">{caption={example-caption} {counter:example-number}. }{title}</div> | |
380 | <div class="content"> | |
381 | | | |
382 | </div></div> | |
383 | ||
384 | [admonitionblock] | |
385 | <div class="admonitionblock{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"}> | |
386 | <table><tr> | |
387 | <td class="icon"> | |
388 | {data-uri%}{icons#}<img src="{icon={iconsdir}/{name}.png}" alt="{caption}"> | |
389 | {data-uri#}{icons#}<img alt="{caption}" src="data:image/png;base64, | |
cf7a2acc | 390 | {data-uri#}{icons#}{sys:"{python}" -u -c "import base64,sys; base64.encode(sys.stdin.buffer,sys.stdout.buffer)" < "{eval:os.path.join(r"{indir={outdir}}",r"{icon={iconsdir}/{name}.png}")}"}"> |
b90ea8d3 DM |
391 | {icons%}<div class="title">{caption}</div> |
392 | </td> | |
393 | <td class="content"> | |
394 | <div class="title">{title}</div> | |
395 | | | |
396 | </td> | |
397 | </tr></table> | |
398 | </div> | |
399 | ||
400 | # Tables. | |
401 | [tabletags-default] | |
402 | colspec=<col{autowidth-option! style="width:{colpcwidth}%;"}> | |
403 | bodyrow=<tr>|</tr> | |
404 | headdata=<th class="tableblock halign-{halign=left} valign-{valign=top}" {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }>|</th> | |
405 | bodydata=<td class="tableblock halign-{halign=left} valign-{valign=top}" {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }>|</td> | |
406 | paragraph=<p class="tableblock">|</p> | |
407 | ||
408 | [tabletags-header] | |
409 | paragraph=<p class="tableblock header">|</p> | |
410 | ||
411 | [tabletags-emphasis] | |
412 | paragraph=<p class="tableblock"><em>|</em></p> | |
413 | ||
414 | [tabletags-strong] | |
415 | paragraph=<p class="tableblock"><strong>|</strong></p> | |
416 | ||
417 | [tabletags-monospaced] | |
344921df | 418 | paragraph=<p class="tableblock monospaced"><tt>|</tt></p> |
b90ea8d3 DM |
419 | |
420 | [tabletags-verse] | |
421 | bodydata=<td class="tableblock halign-{halign=left} valign-{valign=top}" {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }><div class="verse">|</div></td> | |
422 | paragraph= | |
423 | ||
424 | [tabletags-literal] | |
77d64ef7 | 425 | bodydata=<td class="tableblock halign-{halign=left} valign-{valign=top}" {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }><div class="literal monospaced"><pre><tt>|</tt></pre></div></td> |
b90ea8d3 DM |
426 | paragraph= |
427 | ||
428 | [tabletags-asciidoc] | |
429 | bodydata=<td class="tableblock halign-{halign=left} valign-{valign=top}" {colspan@1::colspan="{colspan}" }{rowspan@1::rowspan="{rowspan}" }><div>|</div></td> | |
430 | paragraph= | |
431 | ||
432 | [table] | |
f70eb3a8 | 433 | <table class="wikitable tableblock frame-{frame=all} grid-{grid=all}{role? {role}}{unbreakable-option? unbreakable}"{id? id="{id}"} |
b90ea8d3 DM |
434 | style=" |
435 | margin-left:{align@left:0}{align@center|right:auto}; margin-right:{align@left|center:auto}{align@right:0}; | |
436 | float:{float}; | |
437 | {autowidth-option%}width:{tablepcwidth}%; | |
438 | {autowidth-option#}{width#style=width:{tablepcwidth}%;} | |
439 | "> | |
440 | <caption class="title">{caption={table-caption} {counter:table-number}. }{title}</caption> | |
441 | {colspecs} | |
442 | {headrows#}<thead> | |
443 | {headrows} | |
444 | {headrows#}</thead> | |
445 | {footrows#}<tfoot> | |
446 | {footrows} | |
447 | {footrows#}</tfoot> | |
448 | <tbody> | |
449 | {bodyrows} | |
450 | </tbody> | |
451 | </table> | |
452 | ||
453 | #-------------------------------------------------------------------- | |
454 | # Deprecated old table definitions. | |
455 | # | |
456 | ||
457 | [miscellaneous] | |
458 | # Screen width in pixels. | |
459 | pagewidth=800 | |
460 | pageunits=px | |
461 | ||
462 | [old_tabledef-default] | |
463 | template=old_table | |
464 | colspec=<col style="width:{colwidth}{pageunits};" /> | |
465 | bodyrow=<tr>|</tr> | |
466 | headdata=<th class="tableblock halign-{colalign=left}">|</th> | |
467 | footdata=<td class="tableblock halign-{colalign=left}">|</td> | |
468 | bodydata=<td class="tableblock halign-{colalign=left}">|</td> | |
469 | ||
470 | [old_table] | |
471 | <table class="tableblock frame-{frame=all} grid-{grid=all}"{id? id="{id}"}> | |
472 | <caption class="title">{caption={table-caption}}{title}</caption> | |
473 | {colspecs} | |
474 | {headrows#}<thead> | |
475 | {headrows} | |
476 | {headrows#}</thead> | |
477 | {footrows#}<tfoot> | |
478 | {footrows} | |
479 | {footrows#}</tfoot> | |
480 | <tbody style="vertical-align:top;"> | |
481 | {bodyrows} | |
482 | </tbody> | |
483 | </table> | |
484 | ||
485 | # End of deprecated old table definitions. | |
486 | #-------------------------------------------------------------------- | |
487 | ||
488 | [floatingtitle] | |
489 | <h{level@0:1}{level@1:2}{level@2:3}{level@3:4}{level@4:5}{id? id="{id}"} class="float">{title}</h{level@0:1}{level@1:2}{level@2:3}{level@3:4}{level@4:5}> | |
490 | ||
491 | [preamble] | |
492 | # Untitled elements between header and first section title. | |
493 | <div id="preamble"> | |
494 | <div class="sectionbody"> | |
495 | | | |
496 | </div> | |
497 | </div> | |
498 | ||
499 | # Document sections. | |
500 | [sect0] | |
501 | <h1{id? id="{id}"}>{title}</h1> | |
502 | | | |
503 | ||
504 | [sect1] | |
505 | <div class="sect1{style? {style}}{role? {role}}"> | |
506 | <h2{id? id="{id}"}>{numbered?{sectnum} }{title}</h2> | |
507 | <div class="sectionbody"> | |
508 | | | |
509 | </div> | |
510 | </div> | |
511 | ||
512 | [sect2] | |
513 | <div class="sect2{style? {style}}{role? {role}}"> | |
514 | <h3{id? id="{id}"}>{numbered?{sectnum} }{title}</h3> | |
515 | | | |
516 | </div> | |
517 | ||
518 | [sect3] | |
519 | <div class="sect3{style? {style}}{role? {role}}"> | |
520 | <h4{id? id="{id}"}>{numbered?{sectnum} }{title}</h4> | |
521 | | | |
522 | </div> | |
523 | ||
524 | [sect4] | |
525 | <div class="sect4{style? {style}}{role? {role}}"> | |
526 | <h5{id? id="{id}"}>{title}</h5> | |
527 | | | |
528 | </div> | |
529 | ||
450dc469 TL |
530 | [sect5] |
531 | <div class="sect5{style? {style}}{role? {role}}"> | |
532 | <h6{id? id="{id}"}>{title}</h6> | |
533 | | | |
534 | </div> | |
535 | ||
b90ea8d3 DM |
536 | [appendix] |
537 | <div class="sect1{style? {style}}{role? {role}}"> | |
538 | <h2{id? id="{id}"}>{numbered?{sectnum} }{appendix-caption} {counter:appendix-number:A}: {title}</h2> | |
539 | <div class="sectionbody"> | |
540 | | | |
541 | </div> | |
542 | </div> | |
543 | ||
544 | [toc] | |
7cbfd919 DM |
545 | <div id="toc" class="toc"> |
546 | </div> | |
b90ea8d3 DM |
547 | |
548 | [header] | |
110ebe8f DM |
549 | template::[toc] |
550 | <div id="asciidoccontent"> | |
9dbe49eb DM |
551 | <style type="text/css" scoped> |
552 | td.hdlist1 { | |
553 | vertical-align: top; | |
554 | } | |
555 | td.hdlist2 { | |
556 | vertical-align: top; | |
557 | } | |
558 | </style> | |
b90ea8d3 DM |
559 | |
560 | [footer] | |
404a1dc1 | 561 | <!-- FOOTER --> |
110ebe8f DM |
562 | </div> |
563 | <div id="footnotes"></div> | |
b90ea8d3 DM |
564 | |
565 | [footer-date] | |
566 | # Default footer date is document modification time | |
567 | ifeval::["{footer-style=default}"!="revdate"] | |
568 | {docdate} {doctime} | |
569 | endif::[] | |
570 | # If set to "revdate", it'll be set to the revision date | |
571 | ifeval::["{footer-style=default}"=="revdate"] | |
572 | {revdate} | |
573 | endif::[] | |
574 | ||
575 | ifdef::doctype-manpage[] | |
576 | [synopsis] | |
577 | template::[sect1] | |
578 | endif::doctype-manpage[] | |
579 |