plugin:instructions
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
plugin:instructions [2020-01-23 14:58] – [Wiki-Syntax] juergen_aus_zuendorf | plugin:instructions [2022-04-20 17:29] (current) – [Wiki-Syntax] juergen-aus-zuendorf | ||
---|---|---|---|
Line 2: | Line 2: | ||
---- plugin ---- | ---- plugin ---- | ||
- | description: | + | description: |
author | author | ||
email : H-J-Schuemmer@Web.de | email : H-J-Schuemmer@Web.de | ||
type : syntax | type : syntax | ||
- | lastupdate : 2020-01-16 | + | lastupdate : 2022-04-20 |
- | compatible : Frusterick Manners, Greebo | + | compatible : Hogfather, Greebo, Frusterick Manners |
depends | depends | ||
conflicts | conflicts | ||
- | similar | + | similar |
tags : formatting, macro, replace | tags : formatting, macro, replace | ||
downloadurl: | downloadurl: | ||
bugtracker : https:// | bugtracker : https:// | ||
- | sourcerepo : # eg. http:// | + | sourcerepo : https:// |
donationurl: | donationurl: | ||
Line 30: | Line 30: | ||
In combination with a special template, this code generates a print preview button: | In combination with a special template, this code generates a print preview button: | ||
- | ~~INSTR~~cms_preview~~|-mynamespace: | + | ~~INSTR~~cms_preview~~|-mynamespace: |
{{https:// | {{https:// | ||
Line 57: | Line 57: | ||
==== Wiki-Syntax ==== | ==== Wiki-Syntax ==== | ||
- | First the syntax within the wiki page:\\ | + | First the syntax within the wiki page: ((There is an alternative, |
+ | '' | ||
+ | But this might be deleted in future releases because there are problems using this syntax in combination with the ckgedit plugin.))\\ | ||
< | < | ||
Line 68: | Line 70: | ||
</ | </ | ||
- | //or the same in one line://((This syntax has some problems when using the plugin ckgedit. Therefore you can also use the syntax \\ | + | //or the same in one line:// |
- | '' | + | |
- | | + | |
Line 80: | Line 81: | ||
c) The listed parameters can be normal text. Each parameter is defined in one line that is prefixed by '' | c) The listed parameters can be normal text. Each parameter is defined in one line that is prefixed by '' | ||
- | In addition there are some special markups (does not work within | + | In addition there are some special markups (does only work for whole words): |
- | * Marking text with wiki syntax as **bold**, //italic//, __underline__ | + | * Marking text with wiki syntax as **bold**, //italic// or '' |
* Two spaces are interpreted as indentation or gap. | * Two spaces are interpreted as indentation or gap. | ||
* Wiki-Links are understood with this syntax: '' | * Wiki-Links are understood with this syntax: '' | ||
- | * If you want to have a line break within one parameter you can achieve this by inserting a new line prefixed by '' | + | * If you want to have a line break within one parameter, you can achieve this by inserting a new line prefixed by '' |
+ | If the template (see below) supports more parameter as from the requesting page shall be passed, the supernumerary parameters will remain empty in the output. | ||
==== Template ==== | ==== Template ==== | ||
- | To work correctly you have to define a template. This is built as html-text and defines the look of the instruction. | + | To work correctly, you have to define a template. This is built as HTML-text and defines the look of the instruction. If necessary, the HTML-text may contain JavaScript code. |
a) The first line in the template file has to be the code " | a) The first line in the template file has to be the code " | ||
- | b) After this the file contains all parameters that should be processed within the wiki page. When a parameter shall be inserted in the html content just insert a new line and write " | + | b) After this, the file contains all parameters that should be processed within the wiki page. When a parameter shall be inserted in the HTML content, just insert a new line and write " |
- | + | ||
- | c) At the end of the html file you have to append a line with the code "</ | + | |
- | The template has to be placed in a subfolder to ".../lib/ | + | c) At the end of the HTML file, you have to append |
+ | The template has to be placed in a subfolder to " | ||
+ | //Note://\\ | ||
+ | If a parameter is passed empty, a subsequent line feed defined in the template (marked with "< | ||
==== Placeholders ==== | ==== Placeholders ==== | ||
In addition you can use some placeholders in the wiki page: | In addition you can use some placeholders in the wiki page: | ||
- | | '' | + | | '' |
- | | '' | + | | '' |
- | | '' | + | | '' |
- | | '' | + | | '' |
- | | '' | + | | '' |
- | | '' | + | | '' |
+ | | '' | ||
// | // | ||
Line 196: | Line 199: | ||
=== Change Log === | === Change Log === | ||
+ | * **2022-04-20**: | ||
+ | * **2022-03-25**: | ||
* **2020-01-16**: | * **2020-01-16**: | ||
* **2019-11-15**: | * **2019-11-15**: |
plugin/instructions.1579787923.txt.gz · Last modified: 2020-01-23 14:58 by juergen_aus_zuendorf