Difference between revisions of "Template:Tc"

From Mystcraft
Jump to: navigation, search
(Created page with "{{version|{{<includeonly>subst:</includeonly>current/version}}}}<noinclude> Subst this template into a page to tag it with the current version. Last updated for {{current/ve...")
 
(Created page with "<{{{tag|span}}} style="color:{{{1|#000}}}">{{{2|{{{1|}}}}}}</{{{tag|span}}}><noinclude> Shorthand for specifying a text color Example: <pre>{{tc|red|Red Text}}</pre> {{tc|red...")
Line 1: Line 1:
{{version|{{<includeonly>subst:</includeonly>current/version}}}}<noinclude>
+
<{{{tag|span}}} style="color:{{{1|#000}}}">{{{2|{{{1|}}}}}}</{{{tag|span}}}><noinclude>
 +
Shorthand for specifying a text color
  
 +
Example:
 +
<pre>{{tc|red|Red Text}}</pre>
 +
{{tc|red|Red Text}}
  
Subst this template into a page to tag it with the current version.
+
<pre>{{tc|#cc9900}}</pre>
Last updated for {{current/version}}
+
{{tc|#cc9900}}
==Usage==
 
  
<pre><nowiki>Example.{{subst:current}}</nowiki></pre>
+
<pre>{{tc|blue|Italic text|tag=em}}</pre>
 
+
{{tc|blue|Italic text|tag=em}}
gives
 
 
 
Example.<small><sup>[[:Category:Version {{current/version}}|{{current/version}}]]</sup></small>
 
[[category:Version {{current/version}}]][[Category:Version templates]]
 
 
</noinclude>
 
</noinclude>

Revision as of 10:14, 24 July 2015

Shorthand for specifying a text color

Example:

{{tc|red|Red Text}}

Red Text

{{tc|#cc9900}}

#cc9900

{{tc|blue|Italic text|tag=em}}

Italic text