Difference between revisions of "Template:Color sample"

From Project: Gorgon Wiki
Jump to: navigation, search
(For previewing dyes)
 
(Added a bit of documentation)
Line 1: Line 1:
 
<span style="display:inline-block; width:2em; height:2em; border:2px solid {{{border|black}}}; background:{{{1}}};" title="{{{2}}}">&emsp;</span><noinclude>
 
<span style="display:inline-block; width:2em; height:2em; border:2px solid {{{border|black}}}; background:{{{1}}};" title="{{{2}}}">&emsp;</span><noinclude>
  
 +
==Parameters==
 +
;{{{1}}}
 +
:Chooses the color of the box.
 +
;{{{2}}}
 +
:Changes the title of the box (will display on hover).
 +
 +
==Examples==
 +
<pre>
 +
{{Color sample|#0000FF|Blue}}
 +
</pre>
 +
 +
{{Color sample|#0000FF|Blue}}
 +
 +
 +
<pre>
 +
{{Color sample|#25FE2F|Random description}}
 +
</pre>
 +
 +
{{Color sample|#25FE2F|Random description}}
  
 
</noinclude>
 
</noinclude>

Revision as of 23:52, 18 January 2016

Parameters

{{{1}}}
Chooses the color of the box.
{{{2}}}
Changes the title of the box (will display on hover).

Examples

{{Color sample|#0000FF|Blue}}


{{Color sample|#25FE2F|Random description}}