Template:External Link: Difference between revisions

From Zelda Wiki, the Zelda encyclopedia
Jump to navigation Jump to search
mNo edit summary
 
Line 1: Line 1:
<span class="plainlinks">[{{{link|}}} <span title="{{{title|{{{text|}}}}}}" style="color:{{{color|}}}; {{#if:{{{size|}}}|font-size: {{{size|}}};|}}">{{{text|}}}</span>]</span><noinclude>
<span class="plainlinks">[{{{link|}}} <span title="{{{title|{{{text|}}}}}}" style="color:{{{color|#f4f26b}}}; {{#if:{{{size|}}}|font-size: {{{size|}}};|}}">{{{text|}}}</span>]</span><noinclude>


==Purpose==
==Purpose==
Line 21: Line 21:
{{Parameter|color|The color of the link. Can be either pre-defined HTML words for colors (blue), or the standard hexadecimal code (#0000FF).|Optional}}
{{Parameter|color|The color of the link. Can be either pre-defined HTML words for colors (blue), or the standard hexadecimal code (#0000FF).|Optional}}


Example standard link: {{User:Trig Jegman/External Link|link=https://niwanetwork.org|text=Text link}}<br clear=all>
Example standard link: {{External Link|link=https://niwanetwork.org|text=Text link}}<br clear=all>


Example highly decorated link: {{User:Trig Jegman/External Link|link=https://niwanetwork.org|text=Colorful text link|title=This link goes to NIWA's main page|size=1.6em|color=#00FF00}}
Example highly decorated link: {{External Link|link=https://niwanetwork.org|text=Colorful text link|title=This link goes to NIWA's main page|size=1.6em|color=#00FF00}}


[[Category:Formatting templates]]  
[[Category:Formatting templates]]  
</noinclude>
</noinclude>

Latest revision as of 03:27, 3 April 2024

[ ]

Purpose

This is a dynamic template offering improved ways of handling text links. It offers features such as changing the alternate text of the link, the font size, the color, the or displayed text.

Usage

To use this template, copy this code:

{{Link
|link  =
|text  =
|title =
|size  =
|color =
}}
  • link — The link you wish to use.
  • text — The text to display for the link. Behavior if left blank depends on the type of link it is. If it's an internal or interwiki link, it will default to the text provided for the link parameter. If it's an external link however it won't show up at all, so in that case it's required.
  • title — The text to display in the alternate text of the link. If left blank it defaults to whatever results in the text parameter.
  • size — The size of the font in the link. It can be in pixels, ems, percentage, or points (eg: 3px, 0.6em, 150%, 12pt). Default size if left blank.
  • color — The color of the link. Can be either pre-defined HTML words for colors (blue), or the standard hexadecimal code (#0000FF).

Example standard link: Text link

Example highly decorated link: Colorful text link