====== WvdS.DokuWiki.Snippet Plugin ====== **Plugin:** wvdssnippet\\ **Version:** 2.0.0\\ **Namespace:** ''lib/plugins/wvdssnippet/''\\ **Author:** Wolfgang van der Stille \\ **License:** GPL 2 ---- ===== Definition ===== The **wvdssnippet** plugin enables reusable HTML building blocks (snippets) with centralized management. It provides a secure alternative to ''htmlok'' and allows combining HTML with multilingual translations. ===== Use Cases ===== * **Navigation Menus** - Main menu, sidebar navigation managed centrally * **Repeating Elements** - Footer, headers, buttons * **Localized Components** - HTML with integrated multilingual support * **Widget-like Blocks** - Social media links, contact boxes * **Template Extensions** - Complex HTML structures in wiki pages ---- ===== Syntax ===== {{wvds:snippet>key}} ==== Parameters ==== ^ Parameter ^ Type ^ Description ^ | **key** | string | Name of the snippet from configuration | ---- ===== Snippet Definition ===== ==== Format ==== Snippets are defined in the plugin configuration using the following format: [snippet_name] HTML content here can be multiline {{wvds:i18n>key}} tags are allowed ==== Rules ==== ^ Rule ^ Description ^ | Name line | Starts with ''[name]'' on its own line | | Content | Everything after the name line until the next ''[...]'' | | Multiline | Any number of lines possible | | Empty lines | Allowed within a snippet | | wvdsi18n | ''{{wvds:i18n>...}}'' tags are processed | | HTML | Full HTML allowed | ==== Allowed Content ==== ^ Content Type ^ Example ^ | HTML tags | ''
'', ''