Difference between revisions of "Template:Colors"

From Mine Blocks Wiki
Jump to navigation Jump to search
If you find a typo, inconsistency, or error, please sign up and help out the wiki! We can't do it without your help! :D Thank you!

(Created page with "{| class="wikitable" width="200px" !Type !Preview |- |red |<div style="width:100px;height:20px;background-color:#BE0000"></div> |- |green |<div style="width:100px;height:20px;...")
 
(stupid rainbow (fix))
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{| class="wikitable" width="200px"
+
<noinclude>
 +
A template for displaying a list of color tags.
 +
 
 +
== Parameters ==
 +
{| class='wikitable' width='400px'
 +
!Parameter
 +
!Default
 +
!Description
 +
|-
 +
|<code>rainbow</code>
 +
|<code>true</code>
 +
|Displays the rainbow row in the table.
 +
|}
 +
 
 +
== Usage ==
 +
{| class='wikitable' width='600px'
 +
!Example
 +
!Description
 +
|-
 +
|<code><nowiki>{{template}}</nowiki></code>
 +
|Displays the default color table
 +
|-
 +
|<code><nowiki>{{template|rainbow=false}}</nowiki></code>
 +
|Omits the rainbow row from the default table
 +
|}
 +
 
 +
== Template ==
 +
</noinclude>{| class="wikitable" width="200px"
 
!Type
 
!Type
 
!Preview
 
!Preview
Line 53: Line 80:
 
{{#ifeq:{{{rainbow|}}}|false
 
{{#ifeq:{{{rainbow|}}}|false
 
     |
 
     |
     |{{pipe}}rainbow
+
     |{{!}}rainbow
     {{pipe}}<div class="rainbow-color" style="width:100px;height:20px;"></div>
+
     {{!}}<div class="rainbow-color" style="width:100px;height:20px;"></div>
 
}}
 
}}
 
|}
 
|}

Latest revision as of 20:30, 19 November 2023

A template for displaying a list of color tags.

Parameters

Parameter Default Description
rainbow true Displays the rainbow row in the table.

Usage

Example Description
{{template}} Displays the default color table
{{template|rainbow=false}} Omits the rainbow row from the default table

Template

Type Preview
red
green
blue
brown
cyan
lightblue
lightgreen
magenta
orange
pink
purple
white
yellow
lightgray
gray
black
rainbow