Views
Actions
Difference between revisions of "Template:Colored box/doc"
From Forge Community Wiki
imported>Tomybrz (Created page with "This template was imported from w:en:Template:Colored box") |
imported>Tacsipacsi (uses TemplateStyles, add {{Documentation subpage}}) |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
+ | {{Documentation subpage}} | ||
+ | {{Uses TemplateStyles|Template:Colored box/style.css}} | ||
This template was imported from [[:w:en:Template:Colored box]] | This template was imported from [[:w:en:Template:Colored box]] | ||
+ | <templatedata> | ||
+ | { | ||
+ | "params": { | ||
+ | "background-content-color": {}, | ||
+ | "style": {}, | ||
+ | "background-title-color": {}, | ||
+ | "icon": { | ||
+ | "type": "wiki-file-name", | ||
+ | "suggested": true | ||
+ | }, | ||
+ | "title-color": {}, | ||
+ | "title": { | ||
+ | "required": true | ||
+ | }, | ||
+ | "link": { | ||
+ | "type": "wiki-page-name" | ||
+ | }, | ||
+ | "link-color": {}, | ||
+ | "content": { | ||
+ | "required": true | ||
+ | } | ||
+ | }, | ||
+ | "description": { | ||
+ | "en": "This template is for community pages", | ||
+ | "fr": "Le modèle boîte colorée est conçu pour les pages communautaires. Il s'inspire de la page d'accueil de Wikidata. " | ||
+ | }, | ||
+ | "format": "block" | ||
+ | } | ||
+ | </templatedata> | ||
+ | |||
+ | == Examples == | ||
+ | |||
+ | * <code><nowiki>{{Colored box|title=TITLE|content=CONTENT}}</nowiki></code> | ||
+ | {{Colored box|title=TITLE|content=CONTENT}} | ||
+ | * <code><nowiki>{{Colored box|title=TITLE|link=MediaWiki|content=CONTENT}}</nowiki></code> | ||
+ | {{Colored box|title=TITLE|link=MediaWiki|content=CONTENT}} | ||
+ | * <code><nowiki>{{Colored box|title=TITLE|link=MediaWiki|content=CONTENT|view-text=VIEW-TEXT}}</nowiki></code> | ||
+ | {{Colored box|title=TITLE|link=MediaWiki|content=CONTENT|view-text=VIEW-TEXT}} | ||
+ | |||
+ | * <code><nowiki>{{Colored box|title=TITLE|link=MediaWiki|icon=OOjs_UI_icon_download-progressive.svg|content=CONTENT|view-text=VIEW-TEXT}}</nowiki></code> | ||
+ | {{Colored box|title=TITLE|link=MediaWiki|icon=OOjs_UI_icon_download-progressive.svg|content=CONTENT|view-text=VIEW-TEXT}} |
Latest revision as of 00:14, 25 July 2020
Template:Documentation subpage Template:Uses TemplateStyles This template was imported from w:en:Template:Colored box
This template is for community pages
Parameter | Description | Type | Status | |
---|---|---|---|---|
Background-content-color | background-content-color | no description | Unknown | optional |
Style | style | no description | Unknown | optional |
Background-title-color | background-title-color | no description | Unknown | optional |
Icon | icon | no description | File | suggested |
Title-color | title-color | no description | Unknown | optional |
Title | title | no description | Unknown | required |
Link | link | no description | Page | optional |
Link-color | link-color | no description | Unknown | optional |
Content | content | no description | Unknown | required |
Examples
{{Colored box|title=TITLE|content=CONTENT}}
TITLE
CONTENT
{{Colored box|title=TITLE|link=MediaWiki|content=CONTENT}}
TITLE
CONTENT
{{Colored box|title=TITLE|link=MediaWiki|content=CONTENT|view-text=VIEW-TEXT}}
TITLE
CONTENT
{{Colored box|title=TITLE|link=MediaWiki|icon=OOjs_UI_icon_download-progressive.svg|content=CONTENT|view-text=VIEW-TEXT}}