|
| 1 | +====== Tests for button plugin ====== |
| 2 | + |
| 3 | +[[target]] - [[folder:target2]] |
| 4 | + |
| 5 | + |
| 6 | +Default target new page [[{conf.target}toto|_blank]] |
| 7 | + |
| 8 | +Default style green and 15em [[{conf.styles}default|color:green; width:15em;]] |
| 9 | + |
| 10 | +Second style blue and 25em [[{conf.styles}second|color:blue; width:25em;]] |
| 11 | + |
| 12 | + |
| 13 | +===== Basic tests ===== |
| 14 | + |
| 15 | +Basic button: [[{{buttons:books.png}target]] |
| 16 | + |
| 17 | +Header: |
| 18 | +[[{buttons:fbreader.png|default}#Header]] |
| 19 | +[[{}#Header]] |
| 20 | +[[{}folder:target2#Header]] |
| 21 | +[[#Header]] |
| 22 | + |
| 23 | + |
| 24 | +Namespace: [[{{buttons:books.png}folder:target2]] |
| 25 | + |
| 26 | +Title: [[{{buttons:books.png}folder:target2|Second target]] |
| 27 | + |
| 28 | +Style inside button: [[{buttons:fbreader.png|default}Bouton|Bouton **gras** ]] |
| 29 | + |
| 30 | +[[{buttons:fbreader.png|second}target|Other button with a long text]] |
| 31 | + |
| 32 | +[[{buttons:fbreader.png|second}target|Other button \\ with a new line]] |
| 33 | + |
| 34 | + |
| 35 | +===== Custom styles ===== |
| 36 | + |
| 37 | +[[{buttons:fbreader.png?32|width: 15em;flex-direction: column;display: flex;}target]] |
| 38 | + |
| 39 | +[[{buttons:fbreader.png|width: 25em; display: table; margin: 0 auto; }target|Centered button]] |
| 40 | + |
| 41 | +[[{buttons:fbreader.png|width: 25em; position: absolute;margin: auto; right: 0; left: 0; width: 100px; height: 100px; background-color: #ccc;}target|Button with same size]] |
| 42 | + |
| 43 | + |
| 44 | +===== Various ===== |
| 45 | + |
| 46 | +==== Custom protocols ==== |
| 47 | + |
| 48 | +[[apt://test|Test apt]] |
| 49 | +[[mailto:nobody@nobody.org|Test mailto]] |
| 50 | +[[telnet://localhost|Test telnet]] |
| 51 | +[[\\server\space]] |
| 52 | + |
| 53 | +[[{buttons:fbreader.png|default}mailto:test@test.org|test@test.org]] |
| 54 | +[[{buttons:fbreader.png|default}!apt:toto|Package toto]] |
| 55 | +[[{buttons:fbreader.png|default}https://google.com|Google]] |
| 56 | +[[{buttons:fbreader.png|default}telnet://localhost|Telnet]] |
| 57 | +[[{buttons:fbreader.png|default}file:///\\server\space|Server Space]] [[{buttons:fbreader.png|default}!file:\\server\space|Server Space]] |
| 58 | + |
| 59 | + |
| 60 | +===== Some dokuwiki reminders ===== |
| 61 | + |
| 62 | +Interwiki syntax: {{icon>home}} (not supported with button) |
| 63 | + |
| 64 | + |
| 65 | +===== Header ===== |
| 66 | + |
| 67 | + |
| 68 | + |
| 69 | + |
0 commit comments