Difference between revisions of "Template:Color/doc"

From Stoneshard wiki
Jump to navigation Jump to search
old>Phoe nixx
m (6 revisions imported)
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{doc/start}}
{{doc/start}}
One template to rule them all. See [[Stoneshard_Wiki:Community_portal#Colors_and_Templates|Commnunity portal]] for info about usage. Shortcut: {{tl|c}}
Colors text based on Stoneshard colors. Shortcut: {{tl|c}}
 
Usage:
 
 
*First parameter is the color keyword. One color can use multiple keywords. For example {{tl|c|+|Text}} and {{tl|c|positive|Text}} both produce {{c|+|Text}}. See [[Stoneshard_Wiki:Community_portal#Colors_and_Templates|Community portal]] for a listing of keywords.
*Second parameter (optional) is the text you want to colorize. If omitted, the keyword is used. For example {{tl|c|Orange}} produces {{c|Orange}} and {{tl|c|Orange|Passive Bonus}} produces {{c|Orange|Passive Bonus}}.
*Third parameter (optional) is the white-space: nowrap option. You can enter anything as the third parameter - {{tl|c|+|Test words|0}} or {{tl|c|+|Test words|yes}} produces the same results.
Default text:
<nowiki><div style="width:50px;border:1px solid;">{{c|+|Test words}}</div></nowiki>
<div style="width:50px;border:1px solid;">{{c|+|Test words}}</div>
 
 
Text with nowrap:
<nowiki><div style="width:50px;border:1px solid;">{{c|+|Test words|f}}</div></nowiki>
<div style="width:50px;border:1px solid;">{{c|+|Test words|1}}</div>
{{doc/end}}
{{doc/end}}

Latest revision as of 21:22, 21 November 2021

Template-info.png Documentation

Colors text based on Stoneshard colors. Shortcut: {{c}}

Usage:


  • First parameter is the color keyword. One color can use multiple keywords. For example {{c|+|Text}} and {{c|positive|Text}} both produce Text. See Community portal for a listing of keywords.
  • Second parameter (optional) is the text you want to colorize. If omitted, the keyword is used. For example {{c|Orange}} produces Orange and {{c|Orange|Passive Bonus}} produces Passive Bonus.
  • Third parameter (optional) is the white-space: nowrap option. You can enter anything as the third parameter - {{c|+|Test words|0}} or {{c|+|Test words|yes}} produces the same results.

Default text:

<div style="width:50px;border:1px solid;">{{c|+|Test words}}</div>
Test words


Text with nowrap:

<div style="width:50px;border:1px solid;">{{c|+|Test words|f}}</div>
Test words