Template:Link: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Still being used on tons of page, it might be even useful in case if the link (such as open with app) isn't working properly.)
mNo edit summary
Line 1: Line 1:
<onlyinclude><includeonly>{{#switch:{{{1}}}
{{link|button|target=web|wikipedia.com|}}
|#default=[{{{1}}} {{#If:{{{2|}}}|<font style="color:{{{color|}}};">{{{2}}}</font>|{{{1}}}}}]
{{doc}}
|plain=<span class="plainlinks">[{{{2}}} {{#If:{{{3|}}}|<font style="color:{{{color|}}};">{{{3}}}</font>|{{{2}}}}}]</span>
<includeonly>
}}</includeonly></onlyinclude><noinclude>{{doc}}
 
<onlyinclude>{{#switch:{{{1|}}}
| #default = [https://{{{1}}} {{#If:{{{2|}}}|<span style="color:{{{color|}}};">{{{2}}}</span>|{{{1}}}}}]
 
| plain = <span class="plainlinks">[https://{{{1}}} {{#If:{{{2|}}}|<span style="color:{{{color|}}};">{{{2}}}</span>|{{{1}}}}}]</span>
 
| button = {{#switch:{{{target|}}}
| #default = <span class="plainlinks"> [[{{{2}}}|{{#if:{{{3|}}}| <span style="background-image:linear-gradient(135deg, rgba(255 255 255 / 5%), rgba(255 255 255 / 2%)); border:1px solid rgba(255, 255, 255, 0.1); border-radius: .8em; {{#if:{{{color|}}}|color:{{{color}}};|}} padding:.3em .6em"> {{{3}}} </span> | {{{2}}}} }}]] </span>
 
| web = <span class="plainlinks"> [https://{{{2}}} {{#if:{{{3|}}}| <span style="background-image:linear-gradient(135deg, rgba(255 255 255 / 5%), rgba(255 255 255 / 2%)); border:1px solid rgba(255, 255, 255, 0.1); border-radius: .8em; {{#if:{{{color|}}}|color:{{{color}}};|}} padding:.3em .6em"> {{{3}}} </span> | {{{2}}}} }}] </span> }}
 
}}</onlyinclude>
 
</includeonly>

Revision as of 23:07, 4 May 2024

wikipedia.com}

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history

Parameters

  • {{{1}}} - link
  • {{{2}}} - text
  • {{{color}}} - text color

Examples

{{link|wikipedia.com/wiki/Main_Page}}


{{link|plain|Wikipedia.com/wiki/Main_Page|Wikipedia Main Page}}