Template:Link style: Difference between revisions

no edit summary
mNo edit summary
No edit summary
Line 1:
<includeonly>[[{{{1}}}|<span style={{{style|color:#ffffff;}}}>{{{2|{{{1}}}}}}</span>]]</includeonly><noinclude>
This template lets you style wikilinks (a.k.a internal links) and interwiki links. Technically speaking, it is mainly used to style the <code>text-decoration</code>, <code>color</code>, and <code>background</code> attributes, which are often overridden in <code><nowiki><a></a></nowiki></code> tags placed post hoc by the wikitext parser. The alias <code>'''ls'''</code> can be used instead of <code>'''Link style'''</code>.
 
== Usage ==
Line 15:
This template does not work for external links. To style external links, just do something like this:
 
<code><nowiki>[https://enhololive.wikipediahololivepro.orgcom/wikien/Hololive_Production <span style="color:#27c7fe;">Hololive Productionofficial on the English Wikipediawebsite</span>]</nowiki></code> = [https://enhololive.wikipediahololivepro.orgcom/wikien/Hololive_Production <span style="color:#27c7fe;">Hololive Production on the Englishofficial Wikipediawebsite</span>]
 
== What if I only want to style ''part'' of a link text? ==
For more granular control, don't use this template falls short. Instead, here is basically how this template works.
 
<code><nowiki>[[Hololive Production|<span style="text-decoration:red wavy underline">Hololive</span> Production]]</nowiki></code> = [[Hololive Production|<span style="text-decoration:red wavy underline">Hololive</span> Production]]