Template:Font color/doc: Difference between revisions

[checked revision][checked revision]
Content deleted Content added
No edit summary
m Text replacement - "[[Help:Template" to "[[Wikipedia:Help:Template‏‎ "
 
(3 intermediate revisions by the same user not shown)
Line 1:
{{Documentation subpage}}
{{Wikipedia-Warning|1={{big|'''Links should clearly be identifiable as links to readers'''.}}<br />Refrain from implementing colored links that may impede user ability to distinguish links from regular text, or color links for purely aesthetic reasons. See the guides to editing articles for accessibility at [[Wikipedia:WP:CONTRAST|contrast]], [[ Wikipedia:Manual of Style/Accessibility|accessibility]] and [[Wikipedia:WP:NAVBOXCOLOUR|navbox colors]].}}
{{High-use}}
{{Commons Import}}
Line 17:
{{tl | Font color }} is also how you can color wikilinks
to something other than blue for when you need to work within background colors.
Normally <kbd>[<nowiki/>[ wikilink ]]</kbd> &rarr; [[wikilinkwikipedia:Wikilink]],
but here we use a {{tl | font color }} with {{para | link }} to create a black wikilink &rarr;
{{ font color | black | violet | link=yes | &nbsp;&nbsp;&nbsp;wikilink&nbsp;&nbsp;&nbsp; }}
Line 42:
You can name <kbd>|fg=</kbd> or <kbd>|bg=</kbd>, which is nice, but...
if you name either of them, you must also name <kbd>|text=</kbd>, which is a compromise.
(See [[Wikipedia:Help:TemplateTemplate‏‎ #Parameters]] for why.)
 
Spacing is of no concern.
Line 128:
 
--><includeonly>For more examples see [[/testcases]].</includeonly>
For actual mainspace template usage, here are search links for
* {{sl | hastemplate:"font color" | label=all usage }}.
* {{template usage | font color | pattern=link= | prefix=: | label=where <code>{{! }}link=</code> is used }}.
* {{sl | hastemplate: "font color" prefix:F }} showing its use in articles whose title begins with the letter "F".
 
==See also==