Template:NestTextColors/doc

From FORwiki

(Difference between revisions)
Jump to: navigation, search
(Created page with '== Usage == ;This template displays an error message when not given sufficient parameters :(It needs three arguments min. two colors followed by text), and the error message is s...')
(Examples)
 
(2 intermediate revisions not shown)
Line 2: Line 2:
;This template displays an error message when not given sufficient parameters :(It needs three arguments min. two colors followed by text), and the error message is suppressed whilst this page is viewed directly.
;This template displays an error message when not given sufficient parameters :(It needs three arguments min. two colors followed by text), and the error message is suppressed whilst this page is viewed directly.
-
;Purpose:This template is a template work around for incompatible behaviors in {{tiw|Fs}}, nested in conjunction with {{tiw|TextColors}} (A wikitable delimited form, used to develop this 'div style' version).
+
;Purpose:This template is a template work around for incompatible behaviors in Fs, nested in conjunction with TextColors (A wikitable delimited form, used to develop this 'div style' version).
;where parameter "|border=''various''":... allows a variety of add on style effects, such as padding and borders —-- normal legal HTML inside 'div style' blocks.
;where parameter "|border=''various''":... allows a variety of add on style effects, such as padding and borders —-- normal legal HTML inside 'div style' blocks.
;wherein arguments #'s:
;wherein arguments #'s:
-
:(1) and (2) — Set foreground and background [[web colors|colors]] of the given block of text respectfully. They can be specified by name or in the format #dddddd (RGB hex triplet).
+
:(1) and (2) — Set foreground and background colors of the given block of text respectfully. They can be specified by name or in the format #dddddd (RGB hex triplet).
:(3)  — is the text to be displayed inside a colorized block, omission of which leaves the 'bright' error message shown above. In general, most other templates will work within this field. However, some may not parse properly due to template nesting arcana.
:(3)  — is the text to be displayed inside a colorized block, omission of which leaves the 'bright' error message shown above. In general, most other templates will work within this field. However, some may not parse properly due to template nesting arcana.
:(4)  — is the optional div block width perameter. (default is full width, or 100%)
:(4)  — is the optional div block width perameter. (default is full width, or 100%)
Line 13: Line 13:
== Examples ==
== Examples ==
-
ex-1) Using default width and <nowiki><br/>: {{NestTextColors|#000000|#ffffff|From [[Wikipedia]], the free [[encyclopedia]]. (black on white, 100% width, medium font size,<br/>[Note the missing fourth perameter,defaults to 100% width --->] --->)||3}}</nowiki> gives: {{NestTextColors|#000000|#ffffff|From [[Wikipedia]], the free [[encyclopedia]]. (black on white, 100% width, medium font size,<br/>[Note the missing fourth perameter]))}}  
+
ex-1) Using default width and <nowiki><br/>: {{NestTextColors|#000000|#ffffff|From FORwiki, the romanian foresight website. (black on white, 100% width, medium font size,<br/>[Note the missing fourth perameter,defaults to 100% width --->] --->)||3}}</nowiki> gives: {{NestTextColors|#000000|#ffffff|From FORwiki, the romanian foresight website. (black on white, 100% width, medium font size,<br/>[Note the missing fourth perameter]))}}  
-
ex-2) <nowiki>{{NestTextColors|#aa0000|#009999|From [[Wikipedia]], the free [[encyclopedia]]. (A red hue on 50%, small font)|50}}</nowiki> gives: {{NestTextColors|#aa0000|#009999|From [[Wikipedia]], the free [[encyclopedia]]. (A red hue on 50%, small font)|50}}  
+
ex-2) <nowiki>{{NestTextColors|#aa0000|#009999|From FORwiki, the romanian foresight website. (A red hue on 50%, small font)|50}}</nowiki> gives: {{NestTextColors|#aa0000|#009999|From FORwiki, the romanian foresight website. (A red hue on 50%, small font)|50}}  
-
ex-3) <nowiki>{{NestTextColors|Green|cyan|From [[Wikipedia]], the free [[encyclopedia]]. (Green on Cyan, 75% width, medium small font size) |75|2}}</nowiki> gives: {{NestTextColors|Green|cyan|From [[Wikipedia]], the free [[encyclopedia]]. (Green on Cyan, 75% width, 'medium-small' font size) |75|2}}  
+
ex-3) <nowiki>{{NestTextColors|Green|cyan|From FORwiki, the romanian foresight website. (Green on Cyan, 75% width, medium small font size) |75|2}}</nowiki> gives: {{NestTextColors|Green|cyan|From FORwiki, the romanian foresight website. (Green on Cyan, 75% width, 'medium-small' font size) |75|2}}  
-
ex-4) <nowiki><div style="float:right">{{NestTextColors|yellow|grey|From [[Wikipedia]], the free [[encyclopedia]]. (Yellow on Grey, 75%, Medium-large font size) |75|4}}</div></nowiki> gives: <div style="float:right">{{NestTextColors|yellow|grey|From [[Wikipedia]], the free [[encyclopedia]]. (Yellow on Grey, 75%, Medium-large font size) |75|4}} </div>
+
ex-4) <nowiki><div style="float:right">{{NestTextColors|yellow|grey|From FORwiki, the romanian foresight website. (Yellow on Grey, 75%, Medium-large font size) |75|4}}</div></nowiki> gives: <div style="float:right">{{NestTextColors|yellow|grey|From FORwiki, the romanian foresight website. (Yellow on Grey, 75%, Medium-large font size) |75|4}} </div>
{{-}}
{{-}}
-
ex-5) <nowiki>{{NestTextColors|blue|silver|From [[Wikipedia]], the free [[encyclopedia]].|25|5}}</nowiki> gives: {{NestTextColors|blue|silver|From [[Wikipedia]], the free [[encyclopedia]].|25|5}}  
+
ex-5) <nowiki>{{NestTextColors|blue|silver|From FORwiki, the romanian foresight website.|25|5}}</nowiki> gives: {{NestTextColors|blue|silver|From FORwiki, the romanian foresight website.|25|5}}  
-
ex-6) <nowiki><center>{{NestTextColors|grey|yellow|From [[Wikipedia]], the free [[encyclopedia]].|50|3}}</center></nowiki> gives: <center>{{NestTextColors|grey|yellow|From [[Wikipedia]], the free [[encyclopedia]].|50|3}}</center>  
+
ex-6) <nowiki><center>{{NestTextColors|grey|yellow|From FORwiki, the romanian foresight website.|50|3}}</center></nowiki> gives: <center>{{NestTextColors|grey|yellow|From FORwiki, the romanian foresight website.|50|3}}</center>  
-
ex-7) <nowiki><div style="float:right">{{NestTextColors|black|aqua|From [[Wikipedia]], the free [[encyclopedia]].|35|3}}</div></nowiki> gives: <div style="float:right">{{NestTextColors|black|aqua|From [[Wikipedia]], the free [[encyclopedia]].|25|3}}</div>
+
ex-7) <nowiki><div style="float:right">{{NestTextColors|black|aqua|From FORwiki, the romanian foresight website.|35|3}}</div></nowiki> gives: <div style="float:right">{{NestTextColors|black|aqua|From FORwiki, the romanian foresight website.|25|3}}</div>
{{-}}
{{-}}

Current revision as of 17:49, 24 December 2009

Usage

This template displays an error message when not given sufficient parameters 
(It needs three arguments min. two colors followed by text), and the error message is suppressed whilst this page is viewed directly.
Purpose
This template is a template work around for incompatible behaviors in Fs, nested in conjunction with TextColors (A wikitable delimited form, used to develop this 'div style' version).
where parameter "|border=various"
... allows a variety of add on style effects, such as padding and borders —-- normal legal HTML inside 'div style' blocks.
wherein arguments #'s
(1) and (2) — Set foreground and background colors of the given block of text respectfully. They can be specified by name or in the format #dddddd (RGB hex triplet).
(3) — is the text to be displayed inside a colorized block, omission of which leaves the 'bright' error message shown above. In general, most other templates will work within this field. However, some may not parse properly due to template nesting arcana.
(4) — is the optional div block width perameter. (default is full width, or 100%)
(5) — is an optional Font Size perameter. (default is very small, or Font Size 1)

Examples

ex-1) Using default width and <br/>: {{NestTextColors|#000000|#ffffff|From FORwiki, the romanian foresight website. (black on white, 100% width, medium font size,<br/>[Note the missing fourth perameter,defaults to 100% width --->] --->)||3}} gives: ex-2) {{NestTextColors|#aa0000|#009999|From FORwiki, the romanian foresight website. (A red hue on 50%, small font)|50}} gives: ex-3) {{NestTextColors|Green|cyan|From FORwiki, the romanian foresight website. (Green on Cyan, 75% width, medium small font size) |75|2}} gives: ex-4) <div style="float:right">{{NestTextColors|yellow|grey|From FORwiki, the romanian foresight website. (Yellow on Grey, 75%, Medium-large font size) |75|4}}</div> gives:


ex-5) {{NestTextColors|blue|silver|From FORwiki, the romanian foresight website.|25|5}} gives: ex-6) <center>{{NestTextColors|grey|yellow|From FORwiki, the romanian foresight website.|50|3}}</center> gives:
ex-7) <div style="float:right">{{NestTextColors|black|aqua|From FORwiki, the romanian foresight website.|35|3}}</div> gives:


Personal tools