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

Template parameters

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
Background-content-colorbackground-content-color

no description

Unknownoptional
Stylestyle

no description

Unknownoptional
Background-title-colorbackground-title-color

no description

Unknownoptional
Iconicon

no description

Filesuggested
Title-colortitle-color

no description

Unknownoptional
Titletitle

no description

Unknownrequired
Linklink

no description

Pageoptional
Link-colorlink-color

no description

Unknownoptional
Contentcontent

no description

Unknownrequired

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}}

TITLE

CONTENT