Zum Inhalt springen

Vorlage:Colored Box/doc

Aus Tobinator-Wiki
Version vom 22. Oktober 2024, 23:41 Uhr von Wiki SysAdm (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „{{Documentation subpage}} {{Uses TemplateStyles|Template:Colored Box/style.css}} <templatedata> { "params": { "background-content-color": {}, "class": { "label": "extra classes", "description": "Extra CSS classes to apply to the outermost box (space-separated). This is mainly for other templates using TemplateStyles so that they can scope their CSS to the box, but it may be useful in other cases as well.", "type": "line" }, "style": {…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)

This template is for community pages

Vorlagenparameter

Diese Vorlage bevorzugt Blockformatierung von Parametern.

ParameterBeschreibungTypStatus
background-content-colorbackground-content-color

keine Beschreibung

Unbekanntoptional
extra classesclass

Extra CSS classes to apply to the outermost box (space-separated). This is mainly for other templates using TemplateStyles so that they can scope their CSS to the box, but it may be useful in other cases as well.

Einzeiliger Textoptional
extra stylesstyle

Extra inline CSS rules to apply to the outermost element. Prefer TemplateStyles and using CSS classes if possible when using this template in another template.

Einzeiliger Textoptional
background-title-colorbackground-title-color

keine Beschreibung

Unbekanntoptional
iconicon

keine Beschreibung

Dateioptional
Title texttitle

keine Beschreibung

Mehrzeiliger Texterforderlich
Title linktitle-link

Turn title area into a clickable link

Seitennameoptional
title-colortitle-color

keine Beschreibung

Mehrzeiliger Textoptional
view-linkview-link link

Create a "view" corner link to a given page.

Seitennameoptional
view-extlinkview-extlink link2

Create a "view" corner link to a external URL. This cannot be used together with "view-link".

URLoptional
view-textview-text

Replace link text for "view-link" with something other than "view".

Mehrzeiliger Textoptional
link-colorlink-color

keine Beschreibung

Unbekanntoptional
Contentcontent

keine Beschreibung

Wikitexterforderlich

Examples

Example: Title

{{Colored Box|title=TITLE|content=CONTENT}}
{{Colored Box
|title=TITLE
|title-link=MediaWiki
|content=CONTENT
}}
TITLE

CONTENT

CONTENT

Example: View link

{{Colored Box|title=TITLE|view-link=MediaWiki|content=CONTENT}}
{{Colored Box|title=TITLE|view-link=MediaWiki|view-text=HELLO|content=CONTENT}}
{{Colored Box|title=TITLE|view-extlink=https://mediawiki.org|view-text=HELLO|content=CONTENT}}
TITLE

CONTENT

TITLE

CONTENT

TITLE

CONTENT

Example: Everything

Icon, title link, custom view-link text

{{Colored Box
|icon=OOjs_UI_icon_download-progressive.svg
|title=TITLE
|title-link=MediaWiki
|view-link=MediaWiki
|view-text=HELLO
|content=CONTENT
}}

{{{content}}}

Cookies helfen uns bei der Bereitstellung von Tobinator-Wiki. Durch die Nutzung von Tobinator-Wiki erklärst du dich damit einverstanden, dass wir Cookies speichern.