Difference between revisions of "Template:Link"

From LGPedia
Jump to: navigation, search
m (trying space)
(Undo revision 153983 by FH14 (Talk))
 
(8 intermediate revisions by 4 users not shown)
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>
+
<includeonly>{{ #ifeq: {{{external}}}|yes|{{(}}|{{(}}{{(}}}}{{{link}}}{{ #ifeq: {{{external}}}|yes|&#32;|{{!}}}}<span {{ #if: {{{color|}}} | style="color: {{{color}}};"}}>{{{text|{{{link}}}}}}</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==
<pre>{{link|link=|text=|color=|external=yes|plain=yes}}</pre>
+
<pre>{{link|link=|text=|color=|external=yes}}</pre>
 
:{|cellspacing="2" cellpadding="3"
 
:{|cellspacing="2" cellpadding="3"
 
|'''link'''
 
|'''link'''
Line 15: Line 14:
 
|'''external=yes'''
 
|'''external=yes'''
 
|Set this if the destination is not an LGPedia or InterWiki-linkable page.
 
|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, <pre>{{link|link=http://www.lonelygirl15.com/?p=292&play=1|text=Sing Until The End|color=Pink|external=yes|plain=yes}}</pre> generates {{link|link=http://www.lonelygirl15.com/?p=292&play=1|text=Sing Until The End|color=Pink|external=yes|plain=yes}}.
+
Therefore, <pre>{{link|link=http://www.lonelygirl15.com/?p=292&play=1|text=Sing Until The End|color=Pink|external=yes}}</pre> generates {{link|link=http://www.lonelygirl15.com/?p=292&play=1|text=Sing Until The End|color=Pink|external=yes}}.
  
 
==See also==
 
==See also==
Line 26: Line 22:
 
*[[:Category:External link templates]]
 
*[[:Category:External link templates]]
  
[[Category:Templates]]
+
[[Category:Templates|{{PAGENAME}}]]
[[Category:External link templates]]
+
[[Category:External link templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Latest revision as of 18:37, 10 March 2009

This template generates custom internal and external links.

Usage

{{link|link=|text=|color=|external=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.
Therefore,
{{link|link=http://www.lonelygirl15.com/?p=292&play=1|text=Sing Until The End|color=Pink|external=yes}}
generates Sing Until The End.

See also