Views
Actions
Difference between revisions of "Template:Colored box/doc"
From Forge Community Wiki
imported>Tomybrz m |
imported>Tacsipacsi (uses TemplateStyles, add {{Documentation subpage}}) |
||
(3 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> | <templatedata> | ||
Line 6: | Line 8: | ||
"style": {}, | "style": {}, | ||
"background-title-color": {}, | "background-title-color": {}, | ||
− | "icon": {}, | + | "icon": { |
+ | "type": "wiki-file-name", | ||
+ | "suggested": true | ||
+ | }, | ||
"title-color": {}, | "title-color": {}, | ||
− | "title": {}, | + | "title": { |
− | "link": {}, | + | "required": true |
+ | }, | ||
+ | "link": { | ||
+ | "type": "wiki-page-name" | ||
+ | }, | ||
"link-color": {}, | "link-color": {}, | ||
− | "content": {} | + | "content": { |
+ | "required": true | ||
+ | } | ||
}, | }, | ||
"description": { | "description": { | ||
Line 20: | Line 31: | ||
} | } | ||
</templatedata> | </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}}