This is a documentation for Board Game Arena: play board games online !

Template:Color: Difference between revisions

From Board Game Arena
Jump to navigation Jump to search
 
No edit summary
Line 1: Line 1:
<span style="color:{{{1|black}}};">{{{2}}}</span><noinclude>
<span style="color:{{{1|black}}};">{{{2|&ZeroWidthSpace;}}}</span><noinclude>
 
== Example ==
 
{{color|green|some text}}
 
<code><nowiki>{{color|green|some text}}</nowiki></code>
 
== Parameters ==
<div style="display:grid;grid-template-columns:repeat(3,max-content) 2fr;gap:0.5rem;overflow:auto;text-overflow:ellipsis;">
  <div style="font-weight:bold;width:8rem;">Parameter</div>
  <div style="font-weight:bold;width:8rem;">Default value</div>
  <div style="font-weight:bold;width:8rem;">Example</div>
  <div style="font-weight:bold;width:8rem;">Description</div>
  <div><code>1</code></div>
  <div><code>black</code></div>
  <div><code><nowiki>|green</nowiki></code></div>
  <div>'''''Required:''''' color as a [https://developer.mozilla.org/en-US/docs/Web/CSS/color CSS color] e.g. <code>green</code>.</div>
  <div><code>2</code></div>
  <div><code></code></div>
  <div><code><nowiki>|some text</nowiki></code></div>
  <div>'''''Required:''''' content.</div>
</div>
 
[[Category:WikiTemplates]]
[[Category:WikiTemplates]]
<noinclude>
</noinclude>

Revision as of 19:22, 21 May 2025

Example

some text

{{color|green|some text}}

Parameters

Parameter
Default value
Example
Description
1
black
|green
Required: color as a CSS color e.g. green.
2
|some text
Required: content.