Debian Codegraph @

tests/snippets/wikitext/template.txt

raw
1 ---input---
2 {{payoff matrix | UL = 5 | UR = 7 | DL = 2 | DR = 9 | Name = Example usage }}
3 {{payoff matrix
4 | UL = 5
5 | UR = 7
6 | DL = 2
7 | DR = 9
8 | Name = Example usage
9 }}
10
11 {{Wikipedia:foo|1=1}}
12 {{Wikipe{{void}}dia:foo|1=1}}
13 {{:foo|1=1}}
14
15 {{short description|Wikipedia help page}}
16 {{pp-move-indef|small=yes}}
17 {{pp-vandalism|small=yes}}
18 {{for|the '''encyclopedic''' section on wikitext|Wiki#Editing}}
19 {{redirect|H:WT|the welcoming templates|Wikipedia:Welcoming committee/Welcome templates}}
20 {{Locutions pages header}}
21 {{Wikipedia how to|H:WT|H:MARKUP|H:WIKICODE}}
22 {{Wikitext navbox}}
23
24 {{Template|1={{{1}}}}}
25
26 {{vo{{void|void}}id|param1=1|par{{void}}am2=2}}
27
28 {{math|2''x'' &times; 4''y'' &divide; 6''z'' + 8 &minus; {{sfrac|''y''|''z''<sup>2</sup>}} {{=}} 0}}
29
30 {{math|sin 2&pi;''x'' + ln ''e''}}
31 It follows that {{math|''x''<sup>2</sup> &ge; 0}} for real {{mvar|x}}.
32
33 {{Help:Transclusion demo}}
34
35 {{Tooltip|Hover your mouse over this text
36 |This is the hover text}}
37
38 Go to this page to see the Tooltip
39 template itself: {{tl|Tooltip}}
40
41 This is how to {{Font color||yellow|highlight part of a sentence}}.
42
43 {{msg:xyz}}
44 {{raw:xyz}}
45 {{msgnw:xyz}}
46 {{subst:xyz}}
47 {{safesubst:xyz}}
48
49 {{{1}}}
50 {{{IncludedWorkURL|}}}
51 {{{Citation class|{{{Citation type|}}}}}}
52
53 ---tokens---
54 '{{' Punctuation
55 'payoff' Name.Tag
56 ' ' Name.Tag
57 'matrix' Name.Tag
58 ' ' Text
59 '|' Punctuation
60 ' UL ' Name.Label
61 '=' Operator
62 ' ' Text
63 '5' Text
64 ' ' Text
65 '|' Punctuation
66 ' UR ' Name.Label
67 '=' Operator
68 ' ' Text
69 '7' Text
70 ' ' Text
71 '|' Punctuation
72 ' DL ' Name.Label
73 '=' Operator
74 ' ' Text
75 '2' Text
76 ' ' Text
77 '|' Punctuation
78 ' DR ' Name.Label
79 '=' Operator
80 ' ' Text
81 '9' Text
82 ' ' Text
83 '|' Punctuation
84 ' Name ' Name.Label
85 '=' Operator
86 ' ' Text
87 'Example' Text
88 ' ' Text
89 'usage' Text
90 ' ' Text
91 '}}' Punctuation
92 '\n' Text
93
94 '{{' Punctuation
95 'payoff' Name.Tag
96 ' ' Name.Tag
97 'matrix' Name.Tag
98 '\n' Text
99
100 '|' Punctuation
101 ' UL ' Name.Label
102 '=' Operator
103 ' ' Text
104 '5' Text
105 '\n' Text
106
107 '|' Punctuation
108 ' UR ' Name.Label
109 '=' Operator
110 ' ' Text
111 '7' Text
112 '\n' Text
113
114 '|' Punctuation
115 ' DL ' Name.Label
116 '=' Operator
117 ' ' Text
118 '2' Text
119 '\n' Text
120
121 '|' Punctuation
122 ' DR ' Name.Label
123 '=' Operator
124 ' ' Text
125 '9' Text
126 '\n' Text
127
128 '|' Punctuation
129 ' Name ' Name.Label
130 '=' Operator
131 ' ' Text
132 'Example' Text
133 ' ' Text
134 'usage' Text
135 '\n' Text
136
137 '}}' Punctuation
138 '\n' Text
139
140 '\n' Text
141
142 '{{' Punctuation
143 'Wikipedia' Name.Namespace
144 ':' Punctuation
145 'foo' Name.Tag
146 '|' Punctuation
147 '1' Name.Label
148 '=' Operator
149 '1' Text
150 '}}' Punctuation
151 '\n' Text
152
153 '{{' Punctuation
154 'Wikipe' Name.Tag
155 '{{' Punctuation
156 'void' Name.Tag
157 '}}' Punctuation
158 'dia' Name.Tag
159 ':' Name.Tag
160 'foo' Name.Tag
161 '|' Punctuation
162 '1' Name.Label
163 '=' Operator
164 '1' Text
165 '}}' Punctuation
166 '\n' Text
167
168 '{{' Punctuation
169 ':' Punctuation
170 'foo' Name.Tag
171 '|' Punctuation
172 '1' Name.Label
173 '=' Operator
174 '1' Text
175 '}}' Punctuation
176 '\n' Text
177
178 '\n' Text
179
180 '{{' Punctuation
181 'short' Name.Tag
182 ' ' Name.Tag
183 'description' Name.Tag
184 '|' Punctuation
185 'Wikipedia' Text
186 ' ' Text
187 'help' Text
188 ' ' Text
189 'page' Text
190 '}}' Punctuation
191 '\n' Text
192
193 '{{' Punctuation
194 'pp' Name.Tag
195 '-' Name.Tag
196 'move' Name.Tag
197 '-' Name.Tag
198 'indef' Name.Tag
199 '|' Punctuation
200 'small' Name.Label
201 '=' Operator
202 'yes' Text
203 '}}' Punctuation
204 '\n' Text
205
206 '{{' Punctuation
207 'pp' Name.Tag
208 '-' Name.Tag
209 'vandalism' Name.Tag
210 '|' Punctuation
211 'small' Name.Label
212 '=' Operator
213 'yes' Text
214 '}}' Punctuation
215 '\n' Text
216
217 '{{' Punctuation
218 'for' Name.Tag
219 '|' Punctuation
220 'the' Text
221 ' ' Text
222 "'''" Generic.Strong
223 'encyclopedic' Generic.Strong
224 "'''" Generic.Strong
225 ' ' Text
226 'section' Text
227 ' ' Text
228 'on' Text
229 ' ' Text
230 'wikitext' Text
231 '|' Punctuation
232 'Wiki' Text
233 '#' Text
234 'Editing' Text
235 '}}' Punctuation
236 '\n' Text
237
238 '{{' Punctuation
239 'redirect' Name.Tag
240 '|' Punctuation
241 'H' Text
242 ':' Text
243 'WT' Text
244 '|' Punctuation
245 'the' Text
246 ' ' Text
247 'welcoming' Text
248 ' ' Text
249 'templates' Text
250 '|' Punctuation
251 'Wikipedia' Text
252 ':' Text
253 'Welcoming' Text
254 ' ' Text
255 'committee' Text
256 '/' Text
257 'Welcome' Text
258 ' ' Text
259 'templates' Text
260 '}}' Punctuation
261 '\n' Text
262
263 '{{' Punctuation
264 'Locutions' Name.Tag
265 ' ' Name.Tag
266 'pages' Name.Tag
267 ' ' Name.Tag
268 'header' Name.Tag
269 '}}' Punctuation
270 '\n' Text
271
272 '{{' Punctuation
273 'Wikipedia' Name.Tag
274 ' ' Name.Tag
275 'how' Name.Tag
276 ' ' Name.Tag
277 'to' Name.Tag
278 '|' Punctuation
279 'H' Text
280 ':' Text
281 'WT' Text
282 '|' Punctuation
283 'H' Text
284 ':' Text
285 'MARKUP' Text
286 '|' Punctuation
287 'H' Text
288 ':' Text
289 'WIKICODE' Text
290 '}}' Punctuation
291 '\n' Text
292
293 '{{' Punctuation
294 'Wikitext' Name.Tag
295 ' ' Name.Tag
296 'navbox' Name.Tag
297 '}}' Punctuation
298 '\n' Text
299
300 '\n' Text
301
302 '{{' Punctuation
303 'Template' Name.Tag
304 '|' Punctuation
305 '1' Name.Label
306 '=' Operator
307 '{{{' Punctuation
308 '1' Name.Variable
309 '}}}' Punctuation
310 '}}' Punctuation
311 '\n' Text
312
313 '\n' Text
314
315 '{{' Punctuation
316 'vo' Name.Tag
317 '{{' Punctuation
318 'void' Name.Tag
319 '|' Punctuation
320 'void' Text
321 '}}' Punctuation
322 'id' Name.Tag
323 '|' Punctuation
324 'param1' Name.Label
325 '=' Operator
326 '1' Text
327 '|' Punctuation
328 'par' Text
329 '{{' Punctuation
330 'void' Name.Tag
331 '}}' Punctuation
332 'am2' Text
333 '=' Text
334 '2' Text
335 '}}' Punctuation
336 '\n' Text
337
338 '\n' Text
339
340 '{{' Punctuation
341 'math' Name.Tag
342 '|' Punctuation
343 '2' Text
344 "''" Generic.Emph
345 'x' Generic.Emph
346 "''" Generic.Emph
347 ' ' Text
348 '&times;' Name.Entity
349 ' ' Text
350 '4' Text
351 "''" Generic.Emph
352 'y' Generic.Emph
353 "''" Generic.Emph
354 ' ' Text
355 '&divide;' Name.Entity
356 ' ' Text
357 '6' Text
358 "''" Generic.Emph
359 'z' Generic.Emph
360 "''" Generic.Emph
361 ' ' Text
362 '+' Text
363 ' ' Text
364 '8' Text
365 ' ' Text
366 '&minus;' Name.Entity
367 ' ' Text
368 '{{' Punctuation
369 'sfrac' Name.Tag
370 '|' Punctuation
371 "''" Generic.Emph
372 'y' Generic.Emph
373 "''" Generic.Emph
374 '|' Punctuation
375 "''" Generic.Emph
376 'z' Generic.Emph
377 "''" Generic.Emph
378 '<' Punctuation
379 'sup' Name.Tag
380 '>' Punctuation
381 '2' Text
382 '</' Punctuation
383 'sup' Name.Tag
384 '>' Punctuation
385 '}}' Punctuation
386 ' ' Text
387 '{{' Punctuation
388 '=' Name.Function
389 '}}' Punctuation
390 ' ' Text
391 '0' Text
392 '}}' Punctuation
393 '\n' Text
394
395 '\n' Text
396
397 '{{' Punctuation
398 'math' Name.Tag
399 '|' Punctuation
400 'sin' Text
401 ' ' Text
402 '2' Text
403 '&pi;' Name.Entity
404 "''" Generic.Emph
405 'x' Generic.Emph
406 "''" Generic.Emph
407 ' ' Text
408 '+' Text
409 ' ' Text
410 'ln' Text
411 ' ' Text
412 "''" Generic.Emph
413 'e' Generic.Emph
414 "''" Generic.Emph
415 '}}' Punctuation
416 '\n' Text
417
418 'It' Text
419 ' ' Text
420 'follows' Text
421 ' ' Text
422 'that' Text
423 ' ' Text
424 '{{' Punctuation
425 'math' Name.Tag
426 '|' Punctuation
427 "''" Generic.Emph
428 'x' Generic.Emph
429 "''" Generic.Emph
430 '<' Punctuation
431 'sup' Name.Tag
432 '>' Punctuation
433 '2' Text
434 '</' Punctuation
435 'sup' Name.Tag
436 '>' Punctuation
437 ' ' Text
438 '&ge;' Name.Entity
439 ' ' Text
440 '0' Text
441 '}}' Punctuation
442 ' ' Text
443 'for' Text
444 ' ' Text
445 'real' Text
446 ' ' Text
447 '{{' Punctuation
448 'mvar' Name.Tag
449 '|' Punctuation
450 'x' Text
451 '}}' Punctuation
452 '.' Text
453 '\n' Text
454
455 '\n' Text
456
457 '{{' Punctuation
458 'Help' Name.Namespace
459 ':' Punctuation
460 'Transclusion' Name.Tag
461 ' ' Name.Tag
462 'demo' Name.Tag
463 '}}' Punctuation
464 '\n' Text
465
466 '\n' Text
467
468 '{{' Punctuation
469 'Tooltip' Name.Tag
470 '|' Punctuation
471 'Hover' Text
472 ' ' Text
473 'your' Text
474 ' ' Text
475 'mouse' Text
476 ' ' Text
477 'over' Text
478 ' ' Text
479 'this' Text
480 ' ' Text
481 'text' Text
482 '\n' Text
483
484 '|' Punctuation
485 'This' Text
486 ' ' Text
487 'is' Text
488 ' ' Text
489 'the' Text
490 ' ' Text
491 'hover' Text
492 ' ' Text
493 'text' Text
494 '}}' Punctuation
495 '\n' Text
496
497 '\n' Text
498
499 'Go' Text
500 ' ' Text
501 'to' Text
502 ' ' Text
503 'this' Text
504 ' ' Text
505 'page' Text
506 ' ' Text
507 'to' Text
508 ' ' Text
509 'see' Text
510 ' ' Text
511 'the' Text
512 ' ' Text
513 'Tooltip' Text
514 '\n' Text
515
516 'template' Text
517 ' ' Text
518 'itself' Text
519 ':' Text
520 ' ' Text
521 '{{' Punctuation
522 'tl' Name.Tag
523 '|' Punctuation
524 'Tooltip' Text
525 '}}' Punctuation
526 '\n' Text
527
528 '\n' Text
529
530 'This' Text
531 ' ' Text
532 'is' Text
533 ' ' Text
534 'how' Text
535 ' ' Text
536 'to' Text
537 ' ' Text
538 '{{' Punctuation
539 'Font' Name.Tag
540 ' ' Name.Tag
541 'color' Name.Tag
542 '|' Punctuation
543 '|' Punctuation
544 'yellow' Text
545 '|' Punctuation
546 'highlight' Text
547 ' ' Text
548 'part' Text
549 ' ' Text
550 'of' Text
551 ' ' Text
552 'a' Text
553 ' ' Text
554 'sentence' Text
555 '}}' Punctuation
556 '.' Text
557 '\n' Text
558
559 '\n' Text
560
561 '{{' Punctuation
562 'msg' Name.Namespace
563 ':' Punctuation
564 'xyz' Name.Tag
565 '}}' Punctuation
566 '\n' Text
567
568 '{{' Punctuation
569 'raw' Name.Namespace
570 ':' Punctuation
571 'xyz' Name.Tag
572 '}}' Punctuation
573 '\n' Text
574
575 '{{' Punctuation
576 'msgnw' Name.Namespace
577 ':' Punctuation
578 'xyz' Name.Tag
579 '}}' Punctuation
580 '\n' Text
581
582 '{{' Punctuation
583 'subst' Name.Namespace
584 ':' Punctuation
585 'xyz' Name.Tag
586 '}}' Punctuation
587 '\n' Text
588
589 '{{' Punctuation
590 'safesubst' Name.Namespace
591 ':' Punctuation
592 'xyz' Name.Tag
593 '}}' Punctuation
594 '\n' Text
595
596 '\n' Text
597
598 '{{{' Punctuation
599 '1' Name.Variable
600 '}}}' Punctuation
601 '\n' Text
602
603 '{{{' Punctuation
604 'IncludedWorkURL' Name.Variable
605 '|' Punctuation
606 '}}}' Punctuation
607 '\n' Text
608
609 '{{{' Punctuation
610 'Citation class' Name.Variable
611 '|' Punctuation
612 '{{{' Punctuation
613 'Citation type' Name.Variable
614 '|' Punctuation
615 '}}}' Punctuation
616 '}}}' Punctuation
617 '\n' Text