Adding your own droplets

It is possible to display your own existing templates or tags in the content droplets.

Go to the page MediaWiki:ContentDroplets.json. If it doesn't already exist, create the page. The page is saved in json format and must contain an opening and closing curly brackets:

{

}

Adding a template-droplet

Between the curly brackets, you can add your template:

{
    "DropletName": {
    	"name": "TemplateDroplet",
        "type": "template",
        "template": "Lorem",
        "params": [
        	{ "color": "blue" },
            { "count": "5" }
        ],
        "description": "message-key",
        "icon": "check",
        "rlModules": [],
        "categories": [
            "content"
        ],
        "content": "{{Lorem|color=blue|count=5}}"
    }
}
Objekt/Node Wert (Beispiele) Beschreibung
DropletName z. B. TOClimit Name of the template (without empty spaces).
name Table of Contents Name that is shown in the droplet.
type template Indicates that this is a droplet based on a template.
template TOClimit Name of the existing template page in the template namespace (may include spaces).
params "color":"blue" Name of the parameters that exist in the template. A standard value can be specified.
description Customize the appearance of the Table of Contents Description of the droplet, which is displayed in the droplet menu (can be entered directly or as a "message-key" for multilingual wikis).
icon bi-list-columns-reverse Background icon defined via MediaWiki:Common.css. If no value exists here, a gray BlueSpice icon is displayed.
rlModules - -
categories content, featured Background icon defined via MediaWiki:Common.css. If no value exists here, a gray BlueSpice icon is displayed. Shows the template in different tabs of the Droplet menu. Possible values:

content, featured, media, visualization, data, navigation, lists, export,all

content {{TOClimit|color=blue}} Wikitext to be inserted into the source text of the page (i.e. the transclusion of the template).

Adding a tag-droplet

If you use a tag in the wiki that should appear under the droplets, specify it as follows (attached to the template droplet below):

{
    "DropletName": {
    	"name": "TemplateDroplet",
        "type": "template",
        "template": "Lorem",
        "params": [
        	{ "color": "blue" },
            { "count": "5" }
        ],
        "description": "message-key",
        "icon": "check",
        "rlModules": [],
        "categories": [
            "content"
        ],
        "content": "{{Lorem|color=blue|count=5}}"
    },
        "myTagDroplet": {
    	"name": "TagDroplet",
    	"type": "tag",
    	"tagname": "Lorem",
    	"attributes": [
    		{ "color": "blue" }
    	],
    	"hasContent": false,
    	"veCommand": "droplet",
    	"description": "message-key",
        "icon": "check",
        "rlModules": [],
        "categories": [
        	"content"
        ],
        "content": "<myDroplet color=blue/>"
    }
}




To submit feedback about this documentation, visit our community forum.