Changes for page Sandbox

on 2024-05-02 05:56


on 2022-04-02 07:52
Summary
Details
- Page properties
-
- Content
-
... ... @@ -1,89 +10,7 @@ 1 -{{html}} 2 -<!-- 3 -= rss macro = 4 - 5 -{ { rss feed="https://nitter.net/I_Am_The_ICT/with_replies/rss" content="false" css="true" image="false" decoration="true"/ 6 ---> 7 -{{/html}} 8 - 9 - 10 10 = Quagmyre = 11 11 12 12 Quagmyre 13 13 14 -External Link ([[good>>https://files.quagmyre.com/index.html]]) 15 - 16 -External Link ([[bad>>https://files.quagmyre.com/nosuchfile.html]]) 17 - 18 -Linkchecker: [[here>>XWiki.ExternalLinks]] 19 - 20 -Non existing [[internal link>>notexist||style="outline-width: 0px !important; user-select: auto !important;"]] test 21 - 22 -== lc queue size == 23 - 24 -{{groovy}} 25 -import com.xpn.xwiki.web.* 26 -import org.xwiki.rendering.transformation.* 27 - 28 -def checker = Utils.getComponent(Transformation.class, "linkchecker") 29 - 30 -print "Link checker queue size = ${checker.linkQueue.size()}" 31 -{{/groovy}} 32 - 33 - 34 -== lc invalid links == 35 - 36 -{{groovy}} 37 -import groovy.util.logging.* 38 -import org.xwiki.observation.* 39 -import org.xwiki.observation.event.* 40 -import org.xwiki.rendering.transformation.linkchecker.* 41 -import com.xpn.xwiki.web.* 42 -import com.xpn.xwiki.* 43 - 44 -@Log 45 -class MyLinkListener implements EventListener 46 -{ 47 - def xwiki 48 - def context 49 - 50 - MyLinkListener(xwiki, context) 51 - { 52 - this.xwiki = xwiki 53 - this.context = context 54 - } 55 - 56 - String getName() 57 - { 58 - return "myLinkListener" 59 - } 60 - 61 - List<Event> getEvents() 62 - { 63 - return Arrays.asList(new InvalidURLEvent()) 64 - } 65 - 66 - void onEvent(Event event, Object eventSource, Object data) 67 - { 68 - def url = eventSource.get("url") 69 - def source = eventSource.get("source") 70 - def state = eventSource.get("state") 71 - 72 - log.info("Error for {url} in ${source} - Response code: ${state.getResponseCode()} - Checked: ${String.format('%tF %<tT', state.getLastCheckedTime())}") 73 - } 74 -} 75 - 76 -// Register against the Observation Manager 77 -def observation = Utils.getComponent(ObservationManager.class) 78 -observation.removeListener("myLinkListener") 79 -def listener = new MyLinkListener(xwiki, xcontext) 80 -observation.addListener(listener) 81 -{{/groovy}} 82 - 83 - 84 - 85 -Glossary test: {{glossaryReference glossaryId="Glossary" entryId="OTE"}}OTE{{/glossaryReference}} is an entry, but OTP is not. 86 - 87 87 The sandbox is a part of your wiki that you can freely modify. It's meant to let you practice editing. You will discover how page editing works and create new pages. Simply click on **Edit** to get started! 88 88 89 89 {{info}} ... ... @@ -198,7 +198,7 @@ 198 198 199 199 You can insert images in your wiki pages: 200 200 201 - [[image:XWikiLogo.png]]119 +image:XWikiLogo.png 202 202 203 203 = Macros = 204 204 ... ... @@ -210,7 +210,7 @@ 210 210 box 211 211 {{/box}} 212 212 213 -{{box title=" **Title**"}}131 +{{box title="Title"}} 214 214 box 215 215 {{/box}} 216 216 ... ... @@ -220,7 +220,7 @@ 220 220 Error 221 221 {{/error}} 222 222 223 -{{error title=" **Title**"}}141 +{{error title="Title"}} 224 224 Error 225 225 {{/error}} 226 226 ... ... @@ -230,7 +230,7 @@ 230 230 Info 231 231 {{/info}} 232 232 233 -{{info title=" **Title**"}}151 +{{info title="Title"}} 234 234 Info 235 235 {{/info}} 236 236 ... ... @@ -240,7 +240,7 @@ 240 240 Success 241 241 {{/success}} 242 242 243 -{{success title=" **Title**"}}161 +{{success title="Title"}} 244 244 Success 245 245 {{/success}} 246 246 ... ... @@ -250,7 +250,7 @@ 250 250 Hello World 251 251 {{/warning}} 252 252 253 -{{warning title=" **Title**"}}171 +{{warning title="Title"}} 254 254 Hello World 255 255 {{/warning}} 256 256