Template:RouteBox and Template:Swatch inline: Difference between pages

From Polyphasic Sleep Wiki
(Difference between pages)
m 1 revision imported
 
Added third parameter to change text color for contrast/readability
 
Line 1: Line 1:
<span style="background-color:{{{3|black}}}; border:0.1em solid {{{3}}};">&nbsp;{{{{{|safesubst:}}}#if:{{{2|}}}| [[{{{2}}}|<span style="color:{{{4|white}}}; {{{{{|safesubst:}}}#ifeq:{{{bold|}}}|no||font-weight:bold;}} font-size:inherit; white-space:nowrap;">{{{1}}}</span>]] | <span style="color:{{{4|white}}}; {{{{{|safesubst:}}}#ifeq:{{{bold|}}}|no||font-weight:bold;}} font-size:inherit; white-space:nowrap;">{{{1}}}</span> }}&nbsp;</span><noinclude>{{documentation}}
<span title="{{{2|{{{1|}}}}}}" style="background-color:{{{1|}}}; color:{{{3|#000}}}">{{#if:{{{2|}}}|{{{2}}}|{{replace|{{{1}}}|#|&#35;}}}}</span><noinclude>
{{documentation}}
</noinclude>
</noinclude>

Revision as of 03:58, 25 June 2020

{{{1}}}