Difference between revisions of "Template:Ink"

From WikiMe @ iroiro.io
Jump to: navigation, search
ink>Superjustinbros
ink>GuyPerfect
m (Adding support for a custom color value)
Line 1: Line 1:
<includeonly><div style="width: {{{2|24}}}px; height: {{{2|24}}}px; display: inline-block; background-color: {{#switch: "{{{1}}}"
+
<includeonly><div style="width: {{{2|24}}}px; height: {{{2|24}}}px; display: inline-block; background-color: {{#switch:{{{1}}}
| "pink" = #fe447d
+
|pink         = #fe447d
| "orange" = #f78f2e
+
|orange       = #f78f2e
| "yellow orange" = #fedc0c
+
|yellow orange = #fedc0c
| "lime green" = #d1f20a
+
|lime green   = #d1f20a
| "emerald green" = #5cd05b
+
|emerald green = #5cd05b
| "teal" = #03c1cd
+
|teal         = #03c1cd
| "blue" = #0e10e6
+
|blue         = #0e10e6
| "violet" = #9208e7
+
|violet       = #9208e7
| "red orange" = #ff4900
+
|red orange   = #ff4900
| "yellow" = #f3f354
+
|yellow       = #f3f354
| "mint" = #bff1e5
+
|mint         = #bff1e5
| "green" = #3bc335
+
|green         = #3bc335
| "sea green" = #00d18a
+
|sea green     = #00d18a
| "light blue" = #6565f9
+
|light blue   = #6565f9
| "dark blue" = #101ab3
+
|dark blue     = #101ab3
| "fuchsia" = #d645c8
+
|fuchsia       = #d645c8
| "neon green" = #9ae528
+
|neon green   = #9ae528
| "cyan" = #0acdfe
+
|cyan         = #0acdfe
| "neon orange" = #ff9600
+
|neon orange   = #ff9600
| "dark fuchsia" = #b21ca1
+
|dark fuchsia = #b21ca1
| "tan" = #e1d6b6
+
|tan           = #e1d6b6
| "dark orange" = #e59d0d
+
|dark orange   = #e59d0d
| default clear; border: 1px solid #000000; width: {{#expr: {{{2|24}}} - 2}}px; height: {{#expr: {{{2|24}}} - 2}}px
+
|custom        = {{{3|#7f7f7f}}}
 +
|#default     = clear; border: 1px solid #000000; width: {{#expr: {{{2|24}}} - 2}}px; height: {{#expr: {{{2|24}}} - 2}}px
 
}}; vertical-align: middle; position: relative; line-height: 0px;"><div style="position: absolute; top: 0px; left: 0px;">[[File:InkBlobMask.png|{{{2|24}}}px|link=Ink|Ink]]</div></div></includeonly><noinclude>__NOTOC__
 
}}; vertical-align: middle; position: relative; line-height: 0px;"><div style="position: absolute; top: 0px; left: 0px;">[[File:InkBlobMask.png|{{{2|24}}}px|link=Ink|Ink]]</div></div></includeonly><noinclude>__NOTOC__
 
{{for|ink colors and the [[mode]]s they appear in|Ink}}
 
{{for|ink colors and the [[mode]]s they appear in|Ink}}
Line 30: Line 31:
 
  <nowiki>{{Ink|</nowiki>''color''<nowiki>}}</nowiki>
 
  <nowiki>{{Ink|</nowiki>''color''<nowiki>}}</nowiki>
 
  <nowiki>{{Ink|</nowiki>''color''|''size''<nowiki>}}</nowiki>
 
  <nowiki>{{Ink|</nowiki>''color''|''size''<nowiki>}}</nowiki>
 +
<nowiki>{{Ink|</nowiki>''color''|''size''|''custom''<nowiki>}}</nowiki>
  
 
*''color'' - The name of the ink color to use. Must be one of the following:
 
*''color'' - The name of the ink color to use. Must be one of the following:
Line 54: Line 56:
 
:*{{Ink|tan|16}} tan
 
:*{{Ink|tan|16}} tan
 
:*{{Ink|dark orange|16}} dark orange
 
:*{{Ink|dark orange|16}} dark orange
 +
:*{{Ink|custom|16}} custom (see below)
 
*''size'' - If present, the number of pixels for the dimensions of the box. Do not append "px" to the number.
 
*''size'' - If present, the number of pixels for the dimensions of the box. Do not append "px" to the number.
 +
*''custom'' - If ''color'' is set to "custom", then this parameter must be present and specifies the CSS color value to use.
  
 
== Examples ==
 
== Examples ==

Revision as of 22:34, 29 August 2015

Template:For Creates a box of color according to the available colors of ink in the game.

Usage:

{{Ink|color}}
{{Ink|color|size}}
{{Ink|color|size|custom}}
  • color - The name of the ink color to use. Must be one of the following:
  •   pink
  •   orange
  •   yellow orange
  •   lime green
  •   emerald green
  •   teal
  •   blue
  •   violet
  •   red orange
  •   yellow
  •   mint
  •   green
  •   sea green
  •   light blue
  •   dark blue
  •   fuchsia
  •   neon green
  •   cyan
  •   neon orange
  •   dark fuchsia
  •   tan
  •   dark orange
  •   custom (see below)
  • size - If present, the number of pixels for the dimensions of the box. Do not append "px" to the number.
  • custom - If color is set to "custom", then this parameter must be present and specifies the CSS color value to use.

Examples

Color only

Markup:

{{Ink|blue}}

Output:

 

Color and size

Markup:

 {{Ink|orange|48}}

Output:

  

Invalid color

Markup:

{{Ink|scarlet}}

Output: