Debian Codegraph @

tests/snippets/wikitext/medialink.txt

raw
1 ---input---
2 [[File:wiki.png|thumb|Wikipedia logo]]
3 [[File:wiki.png]]
4 [[File:wiki.png|alt=Puzzle globe logo]]
5 [[File:wiki.png|link=Wikipedia]]
6 [[File:wiki.png|frame|centre|alt=Puzzle globe|Wikipedia logo]]
7 [[File:wiki.png|thumb|left|alt=Puzzle globe|Wikipedia logo]]
8 [[File:wiki.png|50 px|Wikipedia encyclopedia]]
9 [[File:wiki.png|thumb|[[a|b]]]]
10 [[File:wiki.png|thumb|[https://www.google.com]]]
11
12 [[Media:wiki.png|Image of jigsaw globe]]
13 [[media:Classical guitar scale.ogg|Sound]]
14
15 ---tokens---
16 '[[' Punctuation
17 'File' Name.Namespace
18 ':' Punctuation
19 'wiki.png' Name.Tag
20 '|' Punctuation
21 'thumb' Text
22 '|' Punctuation
23 'Wikipedia' Text
24 ' ' Text
25 'logo' Text
26 ']]' Punctuation
27 '\n' Text
28
29 '[[' Punctuation
30 'File' Name.Namespace
31 ':' Punctuation
32 'wiki.png' Name.Tag
33 ']]' Punctuation
34 '\n' Text
35
36 '[[' Punctuation
37 'File' Name.Namespace
38 ':' Punctuation
39 'wiki.png' Name.Tag
40 '|' Punctuation
41 'alt' Name.Attribute
42 '=' Operator
43 'Puzzle' Text
44 ' ' Text
45 'globe' Text
46 ' ' Text
47 'logo' Text
48 ']]' Punctuation
49 '\n' Text
50
51 '[[' Punctuation
52 'File' Name.Namespace
53 ':' Punctuation
54 'wiki.png' Name.Tag
55 '|' Punctuation
56 'link' Name.Attribute
57 '=' Operator
58 'Wikipedia' Text
59 ']]' Punctuation
60 '\n' Text
61
62 '[[' Punctuation
63 'File' Name.Namespace
64 ':' Punctuation
65 'wiki.png' Name.Tag
66 '|' Punctuation
67 'frame' Text
68 '|' Punctuation
69 'centre' Text
70 '|' Punctuation
71 'alt' Name.Attribute
72 '=' Operator
73 'Puzzle' Text
74 ' ' Text
75 'globe' Text
76 '|' Punctuation
77 'Wikipedia' Text
78 ' ' Text
79 'logo' Text
80 ']]' Punctuation
81 '\n' Text
82
83 '[[' Punctuation
84 'File' Name.Namespace
85 ':' Punctuation
86 'wiki.png' Name.Tag
87 '|' Punctuation
88 'thumb' Text
89 '|' Punctuation
90 'left' Text
91 '|' Punctuation
92 'alt' Name.Attribute
93 '=' Operator
94 'Puzzle' Text
95 ' ' Text
96 'globe' Text
97 '|' Punctuation
98 'Wikipedia' Text
99 ' ' Text
100 'logo' Text
101 ']]' Punctuation
102 '\n' Text
103
104 '[[' Punctuation
105 'File' Name.Namespace
106 ':' Punctuation
107 'wiki.png' Name.Tag
108 '|' Punctuation
109 '50' Text
110 ' ' Text
111 'px' Text
112 '|' Punctuation
113 'Wikipedia' Text
114 ' ' Text
115 'encyclopedia' Text
116 ']]' Punctuation
117 '\n' Text
118
119 '[[' Punctuation
120 'File' Name.Namespace
121 ':' Punctuation
122 'wiki.png' Name.Tag
123 '|' Punctuation
124 'thumb' Text
125 '|' Punctuation
126 '[[' Punctuation
127 'a' Name.Tag
128 '|' Punctuation
129 'b' Text
130 ']]' Punctuation
131 ']]' Punctuation
132 '\n' Text
133
134 '[[' Punctuation
135 'File' Name.Namespace
136 ':' Punctuation
137 'wiki.png' Name.Tag
138 '|' Punctuation
139 'thumb' Text
140 '|' Punctuation
141 '[' Punctuation
142 'https://www.google.com' Name.Label
143 ']' Punctuation
144 ']]' Punctuation
145 '\n' Text
146
147 '\n' Text
148
149 '[[' Punctuation
150 'Media' Name.Namespace
151 ':' Punctuation
152 'wiki.png' Name.Tag
153 '|' Punctuation
154 'Image' Text
155 ' ' Text
156 'of' Text
157 ' ' Text
158 'jigsaw' Text
159 ' ' Text
160 'globe' Text
161 ']]' Punctuation
162 '\n' Text
163
164 '[[' Punctuation
165 'media' Name.Namespace
166 ':' Punctuation
167 'Classical guitar scale.ogg' Name.Tag
168 '|' Punctuation
169 'Sound' Text
170 ']]' Punctuation
171 '\n' Text