Wiki source code of scripttest
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
1.1 | 1 | (% class="jumbotron" %) |
![]() |
21.1 | 2 | ((( |
![]() |
1.1 | 3 | (% class="container" %) |
![]() |
21.1 | 4 | ((( |
5 | = Attachment Rename Script Test Page = | ||
![]() |
1.1 | 6 | |
![]() |
21.1 | 7 | This page is used to test all known edge cases for attachment renaming and broken reference recovery. |
![]() |
1.1 | 8 | |
![]() |
21.1 | 9 | == โ Working Link with Bad Filename == |
![]() |
24.1 | 10 | This should show a valid image but with a bad filename like `a b.jpg`, which will be renamed to `a_b.jpg`. |
11 | {{velocity}} | ||
12 | <img src="$doc.getAttachmentURL('a b.jpg')" width="300" /> | ||
13 | {{/velocity}} | ||
![]() |
1.1 | 14 | |
![]() |
24.1 | 15 | == ๐งผ Already-clean filename == |
16 | [[image:already_clean.jpg]] | ||
![]() |
1.1 | 17 | |
![]() |
21.1 | 18 | == ๐ฅ Broken reference (does not exist at all) == |
![]() |
24.1 | 19 | [[image:nonexistent[broken].jpg]] |
![]() |
1.1 | 20 | |
![]() |
21.1 | 21 | == ๐ Previously renamed (should be fixed if stale) == |
![]() |
24.1 | 22 | {{velocity}} |
23 | <img src="$doc.getAttachmentURL('bad name.jpg')" width="250" /> | ||
24 | {{/velocity}} | ||
![]() |
1.1 | 25 | |
![]() |
24.1 | 26 | == ๐ง Fuzzy-match candidate (actual file is `a_b.jpg`) == |
![]() |
47.1 | 27 | [[image:a b.jpg]] |
![]() |
1.1 | 28 | |
![]() |
24.1 | 29 | == ๐งช Badly-encoded filename with leftover macro syntax == |
![]() |
47.1 | 30 | [[image:blacks_counted_as_white_injustice_ethnicity_image_images_non-hispanic_race_texas_white.jpg].jpg]] |
![]() |
1.1 | 31 | |
![]() |
24.1 | 32 | == ๐งฑ HTML Embed (should still work after rename) == |
33 | {{velocity}} | ||
34 | <img src="$doc.getAttachmentURL('a b.jpg')" width="200" /> | ||
35 | {{/velocity}} | ||
![]() |
1.1 | 36 | |
![]() |
24.1 | 37 | == โ๏ธ Velocity-based Embed with bad name == |
![]() |
21.1 | 38 | {{velocity}} |
![]() |
24.1 | 39 | <img src="$doc.getAttachmentURL('bad name.jpg')" width="200" /> |
![]() |
21.1 | 40 | {{/velocity}} |
![]() |
1.1 | 41 | |
![]() |
26.1 | 42 | == ๐ Embedded MP4 (should be renamed and still playable) == |
43 | {{video attachment="bad video.mp4"/}} | ||
![]() |
1.1 | 44 | |
![]() |
24.1 | 45 | == ๐ Gallery Rendering == |
![]() |
21.1 | 46 | {{gallery columns="3"}} |
47 | image:a b.jpg | ||
48 | image:already_clean.jpg | ||
49 | image:comparison.png | ||
50 | image:1000000503.jpg | ||
51 | {{/gallery}} | ||
![]() |
1.1 | 52 | |
![]() |
24.1 | 53 | == ๐ Attachment Reference == |
54 | [[Archived Chart>>attach:comparison.png]] | ||
![]() |
21.1 | 55 | |
![]() |
24.1 | 56 | {{putFootnotes/}} |
![]() |
1.1 | 57 | ))) |
![]() |
24.1 | 58 | ))) |
![]() |
1.1 | 59 |