Template:Link: Difference between revisions

From LGPedia
Jump to navigationJump to search
Renegade (talk | contribs)
m Once More, With Feelings
Renegade (talk | contribs)
my bad, link element inaccessible; new attempt
Line 1: Line 1:
<includeonly>{{ #ifeq: {{{external}}}|yes|{{(}}|{{(}}{{(}}}}{{{link}}}{{ #ifeq: {{{external}}}|yes|&#32;|{{!}}}}<span {{ #ifeq: {{{plain}}}|yes|class="plainlinks"|}} {{ #if: {{{color|}}} | style="color: {{{color}}};"}}>{{{text|{{{link}}}}}}</span>{{ #ifeq: {{{external}}}|yes|]|]]}}</includeonly>
<include only>{{ #ifeq: {{{external}}}|yes|{{(}}|{{(}}{{(}}}}{{{link}}}{{ #ifeq: {{{external}}}|yes|&#32;|{{!}}}}{{ #if: {{{color|}}} | <span style="color: {{{color}}};">}}{{{text|{{{link}}}}}}{{ #if: {{{color|}}} | </span>}}{{ #ifeq: {{{external}}}|yes|]|]]}}</includeonly>
<noinclude>This template generates custom internal and external links.
<noinclude>This template generates custom internal and external links.
==Usage==
==Usage==

Revision as of 18:21, 13 July 2007

<include only>[[{{{link}}}|{{{link}}}]]</includeonly> This template generates custom internal and external links.

Usage

{{link|link=|text=|color=|external=yes|plain=yes}}
link The target destination of this link
text The text that should be shown. Defaults to link destination.
color The color the text should be in. Can be any valid HTML color value or name. Defaults to normal link colors.
external=yes Set this if the destination is not an LGPedia or InterWiki-linkable page.
plain=yes Set this if you do not wish the external link icon to show on external links.

Therefore,

{{link|link=http://www.lonelygirl15.com/?p=292&play=1|text=Sing Until The End|color=Pink|external=yes|plain=yes}}

generates <include only>Sing Until The End

.

See also