Difference between revisions of "Template:Colorbar/doc"

From Valve Developer Community
Jump to: navigation, search
m
(Replaced content with "{{delete}}")
(Tag: Replaced)
 
Line 1: Line 1:
{{Doc/subpage}}
+
{{delete}}
Template for creating separator bars containing text. Inspired of the [https://www.wikidata.org/wiki/Template:Colorbar Wikidata template] of the same name.
 
 
 
== Copy and Paste ==
 
{{CodeBlock|<nowiki>{{ColorbaR
 
| bg =
 
| color =
 
| text =
 
}}</nowiki>}}
 
 
 
== Parameter List ==
 
 
 
{|class="standard-table" | style="width:100%; text-align:center;"
 
|-
 
! style="width:15%" | {{Dictionary/common|Param}}
 
! {{Dictionary/common|Desc}}
 
! {{Dictionary/common|Example}}
 
|-
 
| {{code|{{param|bg}}}}
 
| Changes background color
 
| {{CodeBlock|margin=5px|<nowiki>| bg = #28323a}}</nowiki>}}
 
|-
 
| {{code|{{param|color}}}}
 
| Changes text color
 
| {{CodeBlock|margin=5px|<nowiki>| color = rgb(0,0,0,.1)}}</nowiki>}}
 
|-
 
| {{code|{{param|text}}}}
 
| For adding your own text
 
| {{CodeBlock|margin=5px|<nowiki>| text = Lorem Ipsum}}</nowiki>}}
 
|-
 
| {{code|{{param|style}}}}
 
| For applying custom styling
 
| {{CodeBlock|margin=5px|<nowiki>| style = margin-top:1em;}}</nowiki>}}
 
|-
 
|}
 
 
 
== Preview ==
 
{{CodeBlock|<nowiki>{{Colorbar}}</nowiki>}}
 
{{Capsule|{{Colorbar}}}}
 

Latest revision as of 10:56, 17 May 2023

Warning icon.png
This template has been marked as a candidate for speedy deletion.
If you object to this decision, then please discuss why hereIf this page doesn't meet the criteria for speedy deletion, then please remove this notice, but do not remove it from pages that you have created yourself
Administrators - Remember to check if anything links here and the page history (last edit) before deleting.