AbreviationPage - butscher/WikidPad GitHub Wiki
Insert this Script to your GlobalScriptLibrary Page and use ctrl-2 to describe the selected word as a new Abbreviation
<%2: currwiki=pwiki.getCurrentWikiWord() selText=editor.GetSelectedText() pwiki.openWikiPage("Abbreviation") editor.SetTargetStart(0) editor.SetTargetEnd(editor.GetLength()) startOfEnd = editor.SearchInTarget("</table>") editor.GotoPos(startOfEnd) editor.AddText("<tr><td>") editor.AddText(selText) editor.AddText("</td><td>[:page: ") editor.AddText(selText) editor.AddText("]</td></tr>\n") pwiki.openWikiPage(selText) editor.ClearAll() editor.AddText("--Description--") pwiki.openWikiPage(currwiki) %>
Creates, if not already exists, a new page Abbreviation and adds a new row to the table, containing the word to describe and an include of the page also new created abreviation.
sample:
[view_pane:preview] <table> <tr><td>Verbindungspunkt Modell</td><td>[:page: Verbindungspunkt Modell]</td></tr> <tr><td>Join Point</td><td>[:page: Join Point]</td></tr> <tr><td>Pointcut</td><td>[:page: Pointcut]</td></tr> <tr><td>Advice</td><td>[:page: Advice]</td></tr> <tr><td>Aspekt</td><td>[:page: Aspekt]</td></tr> <tr><td>WSBPEL</td><td>[:page: WSBPEL]</td></tr> <tr><td>BPMN</td><td>[:page: BPMN]</td></tr> <tr><td>UDDI</td><td>[:page: UDDI]</td></tr> <tr><td>Aspekte</td><td>[:page: Aspekte]</td></tr> </table>