Difference between revisions of "Template:Main"

From ISXOgre
Jump to: navigation, search
(Created page with "{{{{{|safesubst:}}}#if:{{{3|}}}|<span style="background-color:{{{2|inherit}}};color:{{{1|inherit}}};">{{{3|}}}</span>|<span style="color:{{{1|inherit}}};">{{{2|}}}</span>}}<noinc...")
 
 
Line 7: Line 7:
  
 
==Usage==
 
==Usage==
<nowiki>{{co|<text color>|<background color>|<text>}}</nowiki>
+
<nowiki>{{Main|<text color>|<background color>|<text>}}</nowiki>
  
 
==Example==
 
==Example==
<nowiki>{{co|red||This text isn't yellow.}}</nowiki> {{co|red||This text isn't yellow.}}<br>
+
<nowiki>{{Main|red||This text isn't yellow.}}</nowiki> {{Main|red||This text isn't yellow.}}<br>
<nowiki>{{co||green|This text has a green background.}}</nowiki> {{co||green|This text has a green background.}}<br>
+
<nowiki>{{Main||green|This text has a green background.}}</nowiki> {{Main||green|This text has a green background.}}<br>
<nowiki>{{co|#0033CC||This text uses an HTML color code.}}</nowiki> {{co|#0033CC||This text uses an HTML color code.}}
+
<nowiki>{{Main|#0033CC||This text uses an HTML color code.}}</nowiki> {{Main|#0033CC||This text uses an HTML color code.}}
  
 
Note the double brackets || which means that that section is empty. Do not miss brackets, all three are needed.
 
Note the double brackets || which means that that section is empty. Do not miss brackets, all three are needed.
 
</noinclude>
 
</noinclude>

Latest revision as of 04:11, 5 September 2013

Template Code

{{{{{|safesubst:}}}#if:{{{3|}}}|<span style="background-color:{{{2|inherit}}};color:{{{1|inherit}}};">{{{3|}}}</span>|<span style="color:{{{1|inherit}}};">{{{2|}}}</span>}}

Have fun if you can make sense of it.

Usage

{{Main|<text color>|<background color>|<text>}}

Example

{{Main|red||This text isn't yellow.}} This text isn't yellow.
{{Main||green|This text has a green background.}} This text has a green background.
{{Main|#0033CC||This text uses an HTML color code.}} This text uses an HTML color code.

Note the double brackets || which means that that section is empty. Do not miss brackets, all three are needed.