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

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