Vorlage:Colored Box: Unterschied zwischen den Versionen
Die Seite wurde neu angelegt: „<div class="mw-tpl-colorbox {{{class|}}}" style=" {{#if: {{{background-content-color|}}} | background-color: {{{background-content-color|#fff}}}; color: #333; }} {{{style|}}} "><templatestyles src="Colored box/style.css"/><!-- --><div class="mw-tpl-colorbox-title {{#if: {{{title-link|}}} | mw-tpl-colorbox-title--linked }}" style=" {{#if: {{{background-title-color|}}} | background-color: {{{background-title-color|#eaecf0}}}; }} {{#if: {{{title-color|}}} |…“ |
K Schützte „Vorlage:Colored Box“ ([Bearbeiten=Nur Administratoren erlauben] (unbeschränkt) [Verschieben=Nur Administratoren erlauben] (unbeschränkt)) |
||
(Eine dazwischenliegende Version desselben Benutzers wird nicht angezeigt) | |||
Zeile 4: | Zeile 4: | ||
}} | }} | ||
{{{style|}}} | {{{style|}}} | ||
"><templatestyles src="Colored | "><templatestyles src="Colored Box/style.css"/><!-- | ||
--><div class="mw-tpl-colorbox-title {{#if: {{{title-link|}}} | mw-tpl-colorbox-title--linked }}" style=" | --><div class="mw-tpl-colorbox-title {{#if: {{{title-link|}}} | mw-tpl-colorbox-title--linked }}" style=" | ||
{{#if: {{{background-title-color|}}} | {{#if: {{{background-title-color|}}} |
Aktuelle Version vom 22. Oktober 2024, 23:55 Uhr
{{{content}}}
![]() | This template uses TemplateStyles: |
This template is for community pages
Parameter | Beschreibung | Typ | Status | |
---|---|---|---|---|
background-content-color | background-content-color | keine Beschreibung | Unbekannt | optional |
extra classes | class | 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 Text | optional |
extra styles | style | 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 Text | optional |
background-title-color | background-title-color | keine Beschreibung | Unbekannt | optional |
icon | icon | keine Beschreibung | Datei | optional |
Title text | title | keine Beschreibung | Mehrzeiliger Text | erforderlich |
Title link | title-link | Turn title area into a clickable link | Seitenname | optional |
title-color | title-color | keine Beschreibung | Mehrzeiliger Text | optional |
view-link | view-link link | Create a "view" corner link to a given page. | Seitenname | optional |
view-extlink | view-extlink link2 | Create a "view" corner link to a external URL. This cannot be used together with "view-link". | URL | optional |
view-text | view-text | Replace link text for "view-link" with something other than "view". | Mehrzeiliger Text | optional |
link-color | link-color | keine Beschreibung | Unbekannt | optional |
Content | content | keine Beschreibung | Wikitext | erforderlich |
Examples
Example: Title
{{Colored Box|title=TITLE|content=CONTENT}} {{Colored Box |title=TITLE |title-link=MediaWiki |content=CONTENT }}
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}}
CONTENT
CONTENT
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 }}