hw>Margit.link-rodrigue |
|
Zeile 1: |
Zeile 1: |
| <includeonly><templatestyles src="Banner/styles.css" /><div class="bannerbox" style="align-items:start;{{#ifeq:{{{imagealign|}}}|right|flex-direction:row-reverse;|flex-dirction:row;}}{{#if:{{{boxbgcolor|}}}|background:{{{boxbgcolor}}};|}}padding:{{{boxpadding|0px}}};">
| | ==DescriptionMsg== |
| {{#if:{{{banner-image|}}}|<div class="banner-image">[[File:{{{banner-image}}}{{!}}{{#if:{{{image-width|}}}|{{{image-width}}}x{{{image-width}}}px|200x200px}}{{!}}link=]]</div>|}}<div class="banner-content" style="padding:{{#if:{{{contentpadding|}}}|{{{contentpadding}}}"|10px}}>{{#if:{{{banner-title|}}}|<div class="banner-title"><h1 style="margin-top:0; {{#if:{{{titlesize|}}}|font-size:{{{titlesize}}};|font-size:1.6em;}}{{#if:{{{titlecolor|}}}|color:{{{titlecolor}}};|}}">{{{banner-title}}}</h1></div>|}}{{#if:{{{banner-text|}}}|<div class="banner-text" style="{{#if:{{{textcolor|}}}|color:{{{textcolor}}};|}}{{#if:{{{textsize|}}}|font-size:{{{textsize}}};|}}">{{{banner-text}}}</div>|}}</div></div></includeonly><noinclude>
| | {{AutoDocDescriptionMsg |
| This template creates an intro banner on a page. The banner should contain an image (optional), a title and 2-3 lines of text.
| | |name = BlueSpicePermissionManager |
| <templatedata>
| | |desc = {{int:bs-permissionmanager-desc |
| { | | }} |
| "params": {
| | }} |
| "boxbgcolor": {
| | ==License== |
| "label": {
| | {{AutoDocLicense |
| "en": "Background color (optional)",
| | |name = GPL-3.0-only |
| "de": "Hintergrundfarbe der Box (optional)"
| | }} |
| },
| | ==Requirements== |
| "description": {
| | {{AutoDocRequirements |
| "en": "Default is grey (#f1f3f9). Replace with any hex value, (e.g. #ffffe6)",
| | |mediawiki = {{AutoDocVersion |
| "de": "Standard ist grau (#f1f3f9). Kann mit beliebigem Hex-Wert ersetzt werden (z.B. #ffffe6)"
| | |name = MediaWiki |
| },
| | |version = 1.35.0 |
| "type": "string",
| | }} |
| "suggested": true,
| | |extensions = {{AutoDocVersion |
| "default": {
| | |name = BlueSpiceFoundation |
| "en": "#efefef",
| | |version = 4.0 |
| "de": "#efefef"
| | }} |
| }
| | }} |
| },
| | ==IntegratesInto== |
| "boxpadding": {
| | {{AutoDocIntegratesInto |
| "label": {
| | |into = {{AutoDocListItem |
| "en": "Padding of the container box (optional)",
| | |item = BlueSpicePermissionManager |
| "de": "Abstand des Inhalts zur Box"
| | }} |
| },
| | }} |
| "description": {
| | ==SpecialPages== |
| "en": "Sets the padding for the box. Default is 0.",
| | {{AutoDocSpecialPages |
| "de": "Setzt den Abstand in Pixeln, Standard ist 0"
| | |SpecialPages = {{AutoDocCallback |
| },
| | |name = PermissionManager |
| "example": {
| | |callback = BlueSpice\PermissionManager\Special\SpecialPermissionManager |
| "en": "10px (default is 0)",
| | }} |
| "de": "10px (Standard ist 0)"
| | }} |
| },
| | ==Permissions== |
| "suggested": true,
| | {{AutoDocPermissions |
| "autovalue": ""
| | |permissions = {{AutoDocPermission |
| },
| | |name = permissionmanager-viewspecialpage |
| "contentpadding": {
| | |type = namespace |
| "label": {
| | |roles = admin, maintenanceadmin |
| "en": "Content padding (optional)",
| | |desc = {{int:right-permissionmanager-viewspecialpage |
| "de": "Textabstand"
| | }} |
| },
| | }} |
| "description": {
| | }} |
| "en": "Padding around text. Default is 10px.",
| | ==Config== |
| "de": "Abstand um den Text. Standard ist 10px."
| | {{AutoDocConfig |
| },
| | |config = {{AutoDocOption |
| "type": "number",
| | |name = PermissionManagerActivePreset |
| "example": {
| | |value = <nowiki>'custom'</nowiki> |
| "en": "20px",
| | }} |
| "de": "20px"
| | {{AutoDocOption |
| },
| | |name = PermissionManagerAllowedPresets |
| "suggested": true
| | |value = <nowiki>array ( |
| },
| | 0 => 'public', |
| "banner-image": {
| | 1 => 'protected', |
| "description": {
| | 2 => 'private', |
| "en": "Image name, without the File: prefix, but with namespace prefix (if it exists)",
| | 3 => 'custom', |
| "de": "Bildname, ohne das Datei-Präfix, aber mit Namensraum-Präfix (falls es existiert)"
| | )</nowiki> |
| },
| | }} |
| "label": {
| | {{AutoDocOption |
| "en": "Banner image (optional)",
| | |name = PermissionManagerMaxBackups |
| "de": "Bannergrafik (optional)"
| | |value = <nowiki>50</nowiki> |
| },
| | }} |
| "example": {
| | }} |
| "en": "myimage.png",
| | ==ApiModules== |
| "de": "meinbild.png"
| | {{AutoDocApiModules |
| },
| | |APIModules = {{AutoDocCallback |
| "suggested": true
| | |name = bs-permissionmanager-tasks |
| },
| | |callback = BlueSpice\PermissionManager\Api\ApiPermissionManager |
| "image-width": {
| | }} |
| "label": {
| | {{AutoDocCallback |
| "en": "Image width",
| | |name = bs-role-permission-store |
| "de": "Bildbreite"
| | |callback = BlueSpice\PermissionManager\Api\RolePermissionsStore |
| },
| | }} |
| "description": {
| | }} |
| "en": "Width in pixels. Default setting is 200",
| | ==Hooks== |
| "de": "Breite in Pixel. Standard ist 200"
| | {{AutoDocHooks |
| },
| | |Hooks = {{AutoDocCallback |
| "suggested": true,
| | |name = [https://www.mediawiki.org/wiki/Manual:Hooks/BSGroupManagerGroupDeleted BSGroupManagerGroupDeleted] |
| "default": {
| | |callback = \BlueSpice\PermissionManager\Hook\BSGroupManagerGroupDeleted\UnassignRoles::callback |
| "de-formal": "200"
| | }} |
| },
| | {{AutoDocCallback |
| "example": {
| | |name = [https://www.mediawiki.org/wiki/Manual:Hooks/BSGroupManagerGroupNameChanged BSGroupManagerGroupNameChanged] |
| "de": "z.B. 300 (Standard ist 200)",
| | |callback = \BlueSpice\PermissionManager\Hook\BSGroupManagerGroupNameChanged\ChangeGroupRoleAssignments::callback |
| "en": "e.g., 300 (default is 200)"
| | }} |
| }
| | {{AutoDocCallback |
| },
| | |name = [https://www.mediawiki.org/wiki/Manual:Hooks/LoadExtensionSchemaUpdates LoadExtensionSchemaUpdates] |
| "imagealign": {
| | |callback = \BlueSpice\PermissionManager\Hook\LoadExtensionSchemaUpdates\RemoveNonIncludableNamespaces::callback |
| "label": {
| | }} |
| "en": "Image alignment",
| | {{AutoDocCallback |
| "de": "Bildposition"
| | |name = [https://www.mediawiki.org/wiki/Manual:Hooks/MWStakeCommonUIRegisterSkinSlotComponents MWStakeCommonUIRegisterSkinSlotComponents] |
| },
| | |callback = common-user-interface |
| "example": {
| | }} |
| "en": "left, right",
| | }} |
| "de": "left, right"
| | |
| },
| |
| "default": {
| |
| "en": "left",
| |
| "de": "left"
| |
| },
| |
| "suggested": true,
| |
| "description": "Links oder rechts in der Box"
| |
| },
| |
| "banner-title": {
| |
| "type": "string",
| |
| "suggested": true,
| |
| "label": {
| |
| "en": "Heading",
| |
| "de": "Überschrift"
| |
| },
| |
| "description": "Box heading"
| |
| },
| |
| "titlesize": {
| |
| "label": {
| |
| "en": "Heading size",
| |
| "de": "Größe der Überschrift"
| |
| },
| |
| "example": {
| |
| "en": "2em, 15px",
| |
| "de": "2em, 15px"
| |
| },
| |
| "default": {
| |
| "en": "1.6em",
| |
| "de": "1.6em"
| |
| },
| |
| "suggested": true
| |
| },
| |
| "titlecolor": {
| |
| "label": {
| |
| "en": "Heading color",
| |
| "de": "Farbe der Überschrift"
| |
| },
| |
| "description": "Color of the heading. ",
| |
| "example": {
| |
| "en": "#ffffff",
| |
| "de": "#ffffff"
| |
| },
| |
| "suggested": true
| |
| },
| |
| "banner-text": {
| |
| "label": {
| |
| "en": "Text",
| |
| "de": "Text"
| |
| },
| |
| "description": {
| |
| "en": "1-3 lines of text",
| |
| "de": "1-3 Zeilen Text"
| |
| },
| |
| "type": "content",
| |
| "suggested": true
| |
| },
| |
| "textcolor": {
| |
| "label": {
| |
| "en": "Text color",
| |
| "de": "Textfarbe"
| |
| },
| |
| "example": {
| |
| "en": "#000000",
| |
| "de": "#000000"
| |
| },
| |
| "suggested": true
| |
| },
| |
| "textsize": {
| |
| "label": {
| |
| "en": "Text size",
| |
| "de": "Textgröße"
| |
| },
| |
| "example": {
| |
| "en": "12px, 1em",
| |
| "de": "12px, 1em"
| |
| },
| |
| "default": {
| |
| "en": "1.3em",
| |
| "de": "1.3em"
| |
| },
| |
| "suggested": true
| |
| }
| |
| },
| |
| "paramOrder": [
| |
| "banner-image",
| |
| "image-width",
| |
| "imagealign",
| |
| "banner-title",
| |
| "titlesize",
| |
| "titlecolor",
| |
| "banner-text",
| |
| "textsize",
| |
| "textcolor",
| |
| "contentpadding",
| |
| "boxpadding",
| |
| "boxbgcolor"
| |
| ]
| |
| } | |
| </templatedata>
| |
| </noinclude>
| |