Metainformationen zur Seite
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Nächste Überarbeitung | Vorhergehende Überarbeitung | ||
en:wiki:syntax [2022/09/15 11:50] – angelegt Michael Schlenstedt | en:wiki:syntax [2022/09/18 09:50] (aktuell) – Michael Schlenstedt | ||
---|---|---|---|
Zeile 524: | Zeile 524: | ||
DokuWiki' | DokuWiki' | ||
- | ~~INFO: | ||
+ | ==== Folded Plugin ==== | ||
+ | |||
+ | Full documentation: | ||
+ | |||
+ | If you want to make additional information available that is hidden by default, you have two options with this plugin: | ||
+ | |||
+ | **Inline:** | ||
+ | |||
+ | This is example ++text | with some of it only shown when you unfold it++. And after that | ||
+ | the text just continues to flow in the same paragraph. | ||
+ | | ||
+ | This is example ++text | with some of it only shown when you unfold it++. And after that | ||
+ | the text just continues to flow in the same paragraph. | ||
+ | |||
+ | **Block:** | ||
+ | |||
+ | < | ||
+ | This is example text. | ||
+ | |||
+ | ++++ Title | | ||
+ | |||
+ | | This table | is only shown | when you unfold the block | | ||
+ | |||
+ | {{page> | ||
+ | |||
+ | ++++ | ||
+ | </ | ||
+ | |||
+ | ^ ^ Inline ^ Block ^ | ||
+ | | Syntax | '' | ||
+ | | HTML | '' | ||
+ | | Can contain formatting | :-) | :-) | | ||
+ | | Can contain block elements((like tables, lists, new paragraphs, included files, etc.)) | --- | :-) | | ||
+ | | Can be used within a paragraph, table, list, etc. | :-) | --- | | ||
+ | |||
+ | You can see in the image below. | ||
+ | |||
+ | {{https:// | ||
+ | |||
+ | ^ Note: As of version 2005-09-02 the syntax has changed to allow linked titles to unfold and fold the section. The pipe char between title and text is mandatory. ^ | ||
+ | |||
+ | |||
+ | ==== Wrap Plugin ==== | ||
+ | |||
+ | Full documentation: | ||
+ | |||
+ | This plugin gives you the ability to wrap wiki text inside containers (divs or spans) and give them | ||
+ | - a certain class (with loads of useful preset classes) | ||
+ | - a width | ||
+ | - a language with its associated text direction | ||
+ | |||
+ | Basic Syntax: | ||
+ | <WRAP classes #id width : | ||
+ | " | ||
+ | </ | ||
+ | | ||
+ | **or** | ||
+ | <block classes #id width : | ||
+ | " | ||
+ | </ | ||
+ | | ||
+ | or | ||
+ | <div classes #id width : | ||
+ | " | ||
+ | </ | ||
+ | An uppercase **%%< | ||
+ | | ||
+ | <wrap classes #id width : | ||
+ | | ||
+ | or | ||
+ | <inline classes #id width : | ||
+ | | ||
+ | or | ||
+ | <span classes #id width : | ||
+ | A lowercase **%%< | ||
+ | |||
+ | Since version 2013-06-13 there is also a shorthand syntax (for wraps without content): | ||
+ | |||
+ | <WRAP classes #id /> or <block classes #id /> or <div classes #id /> | ||
+ | |||
+ | and | ||
+ | |||
+ | <wrap classes #id /> or <inline classes #id /> or <span classes #id /> | ||
+ | |||
+ | :!: Please note, some things **won' | ||
+ | |||
+ | === Examples === | ||
+ | |||
+ | The plugin comes with an example page, which should explain a lot and looks like this in the default template, see https:// | ||
+ | |||
+ | === Classes === | ||
+ | |||
+ | The following classes are currently available: | ||
+ | |||
+ | {{ : | ||
+ | |||
+ | |||
+ | ^ class name ^ description/ | ||
+ | ^ __columns__ -- similar to [[columns]], | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | ^ __widths__ -- :!: **experimental**, | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | ^ __alignments__ -- similar to [[divalign]], | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | ^ __boxes and notes__ -- similar to [[box]], [[note]], [[tip]] | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | ^ __marks__ -- similar to [[emphasis]], | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | ^ __miscellaneous__ | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | | **'' | ||
+ | |||
+ | ==== Indexmenu Plugin ==== | ||
+ | |||
+ | Full documentation: | ||
+ | |||
+ | This plugin allows you to insert a fully customizable index or a list of pages starting from a specified namespace. | ||
+ | It should be useful in DokuWiki sites where pages are organized by [[: | ||
+ | Main features are: | ||
+ | * Fully customizable with a lot of [[.: | ||
+ | * Built-in support of Navigation features like highlighting the current location or dynamically displaying the tree of the current namespace. | ||
+ | * Easily themeable with prebuilt [[.: | ||
+ | * Assign [[.: | ||
+ | * Sortable by date, title and custom metadata information. | ||
+ | * AJAX support to speed up sites with many pages. | ||
+ | * Customizable [[.: | ||
+ | * TOC pages preview. | ||
+ | * [[.: | ||
+ | * Hide namespaces/ | ||
+ | |||
+ | **Minimum syntax:** | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | That means this '' | ||
+ | |||
+ | **Basic syntax usage:** | ||
+ | |||
+ | ^ Main ^ Options | ||
+ | | **%%{{%%indexmenu> | ||
+ | Arguments inside '' | ||
+ | |||
+ | :!: All the syntax options can be easily accessed with the indexmenu picker in the [[:edit window]] [[: | ||
+ | |||
+ | |||
+ | === Full syntax === | ||
+ | |||
+ | Settings **before the " | ||
+ | ^Main ^Action ^Note| | ||
+ | ^ //'' | ||
+ | ^ //''# | ||
+ | ^ //'' | ||
+ | |||
+ | Optional settings **after the " | ||
+ | ^Option ^Action ^Note| | ||
+ | ^ '' | ||
+ | ^ //''# | ||
+ | | Next options are available with or without //**js**// option. ||| | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | | Next options are //only// available with //**js**// option. ||| | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | |||
+ | |||
+ | === Examples === | ||
+ | |||
+ | A sample of an indexmenu JS index that could be used inside a navigation sidebar. Its initial status is blocked by the nocookie option, so, when the page is reloaded, it doesn' | ||
+ | < | ||
+ | {{indexmenu> | ||
+ | </ | ||
+ | |||
+ | JS navigation index with " | ||
+ | < | ||
+ | {{indexmenu> | ||
+ | </ | ||
+ | |||
+ | Standard DokuWiki index showing only pages inside wiki: | ||
+ | < | ||
+ | {{indexmenu>: | ||
+ | </ | ||
+ | |||
+ | Js tree showing pages and namespaces both sorted by reverse title. For example,if " | ||
+ | < | ||
+ | {{indexmenu>: | ||
+ | </ | ||
+ | |||
+ | Standard index showing the tree of the current context ((the namespace of the page displayed by a user who is navigating your site)) opened at the second level . | ||
+ | < | ||
+ | {{indexmenu> | ||
+ | </ | ||
+ | |||
+ | Show all current namespace pages . | ||
+ | < | ||
+ | {{indexmenu> | ||
+ | </ | ||
+ | |||
+ | JS tree showing all (and only) the namespaces of the " | ||
+ | < | ||
+ | {{indexmenu> | ||
+ | </ | ||
+ | |||
+ | === Metadata tag syntax === | ||
+ | |||
+ | By default nodes on the same tree level are sorted by name (or by title/date if you use the tsort/dsort syntax), but you can also specify a custom sort number for every page inserting a metadata tag in the pages with this syntax: | ||
+ | < | ||
+ | {{indexmenu_n> | ||
+ | </ | ||
+ | |||
+ | Where '' | ||
+ | Then you need to use the " | ||
+ | If you have the '' | ||
+ | |||
+ | **Examples: | ||
+ | |||
+ | You can change the order of this tree containing a mix of standard and [[config: | ||
+ | |||
+ | < | ||
+ | -Root | ||
+ | |_don | ||
+ | |_Mirror sessions | ||
+ | |_pachuco | ||
+ | |_At the radar station | ||
+ | |_van | ||
+ | |_vliet | ||
+ | </ | ||
+ | |||
+ | in this way: | ||
+ | < | ||
+ | {{indexmenu> | ||
+ | </ | ||
+ | < | ||
+ | -Root | ||
+ | |_vliet | ||
+ | |_van | ||
+ | |_don | ||
+ | |_Mirror sessions | ||
+ | |_pachuco | ||
+ | |_At the radar station | ||
+ | </ | ||
+ | |||
+ | Pages without sort number, like the last three pages, are sorted by page name as default, but you can force a different sort: | ||
+ | < | ||
+ | {{indexmenu> | ||
+ | </ | ||
+ | < | ||
+ | -Root | ||
+ | |_vliet | ||
+ | |_van | ||
+ | |_don | ||
+ | |_At the radar station | ||
+ | |_Mirror sessions | ||
+ | |_pachuco | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Video Share Plugin ==== | ||
+ | |||
+ | Full documentation: | ||
+ | |||
+ | This plugin allows you to embed video players from various video sharing sites. New services can be added by just editing a config file. This is **not** for displaying local video files. | ||
+ | |||
+ | === Usage/ | ||
+ | |||
+ | The basic syntax looks like this: '' | ||
+ | * Where ''// | ||
+ | * and ''// | ||
+ | * The ''// | ||
+ | * The title is optional as well. Look in [[# | ||
+ | * The video can be aligned by adding spaces on the left or right inside the curly brackets (like in the image syntax). Look in [[# | ||
+ | |||
+ | A toolbar button pops up a prompt where you can simply paste the full URL to the page of the video you want to embed. The plugin will then try to figure out the video ID by itself. For some services you may need to paste a special URL. See the table below. | ||
+ | |||
+ | === Parameters === | ||
+ | |||
+ | When embedding a video you should add a size parameter. | ||
+ | |||
+ | You can either give it in the form: | ||
+ | |||
+ | * ''// | ||
+ | * or use the keywords '' | ||
+ | * you can also use the keywords '' | ||
+ | |||
+ | |||
+ | All additional parameters will be passed on as-is to the video service. Refer to their documentation for what is available. There are also hints in the table below. | ||
+ | |||
+ | === Examples === | ||
+ | |||
+ | Display a YouTube Video: | ||
+ | |||
+ | {{youtube> | ||
+ | |||
+ | Show a larger player: | ||
+ | |||
+ | {{youtube> | ||
+ | |||
+ | Right-align the player: | ||
+ | |||
+ | {{ youtube> | ||
+ | |||
+ | Show a small, centered player: | ||
+ | |||
+ | {{ youtube> | ||
+ | |||
+ | Show a small, centered player with a title (look for right space!): | ||
+ | |||
+ | {{ youtube> | ||
+ | |||
+ | Some other additional parameters are supported (depending on video service) as well: | ||
+ | |||
+ | {{youtube> | ||
+ | |||
+ | === Supported Services === | ||
+ | |||
+ | Copy paste the video url in the toolbar pop-up prompt to generate the syntax | ||
+ | ^ Identifier | ||
+ | | youtube | ||
+ | | vimeo | [[https:// | ||
+ | | slideshare | ||
+ | | dailymotion | ||
+ | | twitchtv | ||
+ | | archiveorg | ||
+ | | soundcloud | ||
+ | | niconico | ||
+ | | break | [[https:// | ||
+ | | bitchute | ||
+ | | coub | [[https:// | ||
+ | | odysee | ||
+ | | youku | [[https:// | ||
+ | | bilibili | ||
+ | | msoffice | ||
+ | | msstream | ||
+ | |||
+ | ==== Include Plugin ==== | ||
+ | |||
+ | This is a handy plugin with which you can include another wiki page into the current one. Just including certain sections of a page or even whole namespaces is supported, too. | ||
+ | |||
+ | === Examples === | ||
+ | |||
+ | '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | '' | ||
+ | |||
+ | === Syntax === | ||
+ | |||
+ | Simply enclose the ID of the page to be included in double curly brackets: | ||
+ | |||
+ | {{page> | ||
+ | {{section> | ||
+ | {{namespace> | ||
+ | {{tagtopic> | ||
+ | |||
+ | ^ [id] | page ID of the page to include; some [[#macros]] are possible; shortcuts are resolved ('':'', | ||
+ | ^ [section] | limits the included page to a specific section and its subsections | optional; default is the whole page , this can be used with namespace (if matches)| | ||
+ | ^ [tag]|include pages with tag topic tag, requires [[plugin: | ||
+ | ^ [flags] | flags delimited by ''&'', | ||
+ | |||
+ | The plugin offers four syntaxes, '' | ||
+ | |||
+ | Section is aimed more at including sections, page at including whole pages and namespace at including whole namespaces. Tagtopic includes all pages with a '' | ||
+ | |||
+ | === Configuration and Flags === | ||
+ | |||
+ | The plugin can be configured in the DokuWiki configuration manager available in the admin menu. These settings also affect the [[plugin: | ||
+ | |||
+ | ^ Configuration option | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ - | '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ '' | ||
+ | ^ - | '' | ||
+ | ^ - | '' | ||
+ | ^ '' | ||
+ | ^ - | '' | ||
+ | |||
+ | Examples: | ||
+ | |||
+ | {{page> | ||
+ | {{page> | ||
+ | {{namespace> | ||
+ | {{namespace> | ||
+ | |||
+ | === Macros === | ||
+ | |||
+ | Simple macros are possible to serve a page on a per user or per date base. These are: | ||
+ | |||
+ | ^ @USER@ | ||
+ | ^ @NAME@ | ||
+ | ^ @GROUP@ | first group the user belongs to | | ||
+ | ^ @YEAR@ | ||
+ | ^ @MONTH@ | 2-digit month | | ||
+ | ^@WEEK@ |2-digit ISO week number | | ||
+ | ^ @DAY@ | 2-digit day | | ||
+ | ^ @DATE< | ||
+ | |||
+ | < | ||
+ | |||
+ | ^ PYEAR | previous year | | ||
+ | ^ NYEAR | next year | | ||
+ | ^ PMONTH | previous month | | ||
+ | ^ NMONTH | next month | | ||
+ | ^ PWEEK | previous week | | ||
+ | ^ NWEEK | next week | | ||
+ | ^ YESTERDAY | yesterday' | ||
+ | ^ TOMORROW | tomorrow' | ||
+ | |||
+ | Examples: | ||
+ | |||
+ | {{page> | ||
+ | includes the page '' | ||
+ | |||
+ | {{page> | ||
+ | includes the page '' | ||
+ | |||
+ | {{page> | ||
+ | includes the page < | ||
+ | |||
+ | ==== (To)Do Plugin ==== | ||
+ | |||
+ | The do plugin allows users to create simple tasks in wiki pages. Those tasks may be assigned to other users and have a due date. Tasks can be listed in pages as well. | ||
+ | |||
+ | === Syntax === | ||
+ | |||
+ | There are two syntax elements. | ||
+ | |||
+ | == Task == | ||
+ | |||
+ | <do USER DATE> | ||
+ | |||
+ | Create a new task TEXT, optionally assign it to USER or mark it as due on DATE; there is a toolbar button for this as well. | ||
+ | |||
+ | |||
+ | ^ Part ^ Details | ||
+ | | USER | User id as accepted by current authentication backend | ||
+ | | DATE | Date in format '' | ||
+ | | TEXT | Description of task. Task texts needs to be **unique at a page**. Duplicates are seen as same task. | | ||
+ | |||
+ | == Listing == | ||
+ | |||
+ | {{dolist> | ||
+ | |||
+ | List tasks in NAMESPACE with optional additional filtering | ||
+ | |||
+ | ^Part ^Details ^ | ||
+ | |NAMESPACE | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' | ||
+ | |'' |