Template:Banner and Page lists: Difference between pages

(Difference between pages)
No edit summary
Tag: 2017 source edit
 
(Created page with "Page lists are dynamically created links to a group of pages based on certain selection criteria. BlueSpice has different mechanisms through which these lists can be created....")
 
Line 1: Line 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}}};">
Page lists are dynamically created links to a group of pages based on certain selection criteria. BlueSpice has different mechanisms through which these lists can be created.
{{#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>
 
This template creates an intro banner on a page. The banner should contain an image (optional), a title and 2-3 lines of text.
The following table contains a comparison of the supported techniques.
<templatedata>
 
{
 
"params": {
== Comparison ==
"boxbgcolor": {
{| class="wikitable" style="width:100%;"
"label": {
|+
"en": "Background color (optional)",
! style="width:20%;" |Feature /Extension
"de": "Hintergrundfarbe der Box (optional)"
![[SMW queries|SMW]]
},
! style="width:25%;" |[[Manual:Extension/BlueSpiceSmartList|SmartList]]
"description": {
![[Manual:Extension/DynamicPageList3|DPL3]]
"en": "Default is grey (#f1f3f9). Replace with any hex value, (e.g. #ffffe6)",
|-
"de": "Standard ist grau (#f1f3f9). Kann mit beliebigem Hex-Wert ersetzt werden (z.B. #ffffe6)"
| style="width:20%;" |Select pages based on
},
|
"type": "string",
* Categories
"suggested": true,
* Namespaces (include)
"default": {
* Properties, Concepts
"en": "#efefef",
* [[mediawikiwiki:Extension:Semantic_Compound_Queries|compound queries are possible]]
"de": "#efefef"
| style="width:25%;" |
}
* Category
},
* Namespaces  (include/exclude)
"boxpadding": {
|
"label": {
* Categories
"en": "Padding of the container box (optional)",
* Namespaces  (include/exclude)
"de": "Abstand des Inhalts zur Box"
* Title match / naming patterns
},
|-
"description": {
| style="width:20%;" |Standard features
"en": "Sets the padding for the box. Default is 0.",
|
"de": "Setzt den Abstand in Pixeln, Standard ist 0"
* Sorting/ordering by any criteria
},
| style="width:25%;" |
"example": {
* Sorting/ordering by title or by time of last edit
"en": "10px (default is 0)",
|
"de": "10px (Standard ist 0)"
* Sorting/ordering by any criteria
},
|-
"suggested": true,
| style="width:20%;" |Output format
"autovalue": ""
|
},
* different results formats  (lists, tables, A-Z style)
"contentpadding": {
* custom (via templates)
"label": {
| style="width:25%;" |
"en": "Content padding (optional)",
* only unordered lists
"de": "Textabstand"
|
},
* different results formats  (lists, tables, A-Z style)
"description": {
* custom (via templates)
"en": "Padding around text. Default is 10px.",
|-
"de": "Abstand um den Text. Standard ist 10px."
|optionally include/exclude subpages or subcategories
},
|
"type": "number",
* possible
"example": {
|
"en": "20px",
* not possible
"de": "20px"
|
},
* possible
"suggested": true
|-
},
| style="width:20%;" |Unique feature
"banner-image": {
|
"description": {
* shows the display title if a page has one set
"en": "Image name, without the File: prefix, but with namespace prefix (if it exists)",
| style="width:25%;" |
"de": "Bildname, ohne das Datei-Präfix, aber mit Namensraum-Präfix (falls es existiert)"
* includes only pages that were updated in the last 90 days
},
* only one category supported
"label": {
|
"en": "Banner image (optional)",
|}
"de": "Bannergrafik (optional)"
},
"example": {
"en": "myimage.png",
"de": "meinbild.png"
},
"suggested": true
},
"image-width": {
"label": {
"en": "Image width",
"de": "Bildbreite"
},
"description": {
"en": "Width in pixels. Default setting is 200",
"de": "Breite in Pixel. Standard ist 200"
},
"suggested": true,
"default": {
"de-formal": "200"
},
"example": {
"de": "z.B. 300 (Standard ist 200)",
"en": "e.g., 300 (default is 200)"
}
},
"imagealign": {
"label": {
"en": "Image alignment",
"de": "Bildposition"
},
"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>

Revision as of 14:02, 14 April 2022

Page lists are dynamically created links to a group of pages based on certain selection criteria. BlueSpice has different mechanisms through which these lists can be created.

The following table contains a comparison of the supported techniques.


Comparison

Feature /Extension SMW SmartList DPL3
Select pages based on
  • Category
  • Namespaces (include/exclude)
  • Categories
  • Namespaces (include/exclude)
  • Title match / naming patterns
Standard features
  • Sorting/ordering by any criteria
  • Sorting/ordering by title or by time of last edit
  • Sorting/ordering by any criteria
Output format
  • different results formats (lists, tables, A-Z style)
  • custom (via templates)
  • only unordered lists
  • different results formats (lists, tables, A-Z style)
  • custom (via templates)
optionally include/exclude subpages or subcategories
  • possible
  • not possible
  • possible
Unique feature
  • shows the display title if a page has one set
  • includes only pages that were updated in the last 90 days
  • only one category supported
No categories assignedEdit

Discussions