Template:Elink: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
No edit summary |
||
(4 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
Places a standard external link on a wiki page. | |||
;Usage | |||
:<code>prefix=</code> (Optional) prefix text before the icon. | |||
:<code>type=</code> (Optional) With correct name, automatically fills in '|icon=' and '|site='. | |||
:<code>icon=</code> (Optional) Icon name (expects same image filename format as {{t|wwicon}}) to show a specific icon before link that also works :<code>site=</code> Simple name for the site, used as the link text. | |||
:<code>link=</code> URL to link to.<br/><!-- | |||
--> <code>url=</code> (Optional) Can be used alternatively, but is not recommended. | |||
:<code>desc=</code> (Optional) description of what can be found at the link, placed after the link in plain text.<br/><!-- | |||
--> <code>title=</code> (Optional) Can be used alternatively, but is not recommended. | |||
:<code>bydate=</code> (Optional) appears after the description in 90% of font-size (smaller). | |||
:<code>style=</code> (Optional) additional style for the outer div container. Useful for inline style formatting. | |||
:<code>inline=</code> (Optional) if set, will make the link work properly as inline text. | |||
:<code>strike=</code> (Optional) if set, will strike though the link and meta portions. | |||
:<code>postfix=</code> (Optional) postfix text after the link and meta. | |||
See [[Template:Elink/doc]] for instructions and examples.<!-- very high volume template, please don't integrate docs --> | |||
;See also | |||
* {{t|wklink}} for links to Wiktionary | |||
* {{t|wplink}} for links to Wikipedia | |||
* {{t|wqlink}} for links to Wikiquote | |||
<!-- ---- | |||
-->[[Category:External link templates| Elink]] | |||
[[ru:Шаблон:ВнешСсылка]]<!-- | |||
;Template--> | |||
<onlyinclude><includeonly><!-- | |||
Note: there are some 'mercy' shortenings of names, due to the new min width 1030px, old ones placed here | |||
|bnetwowus = World of Warcraft Official Game Site (US) | |||
|bnetwoweu = World of Warcraft Official Game Site (EU) | |||
|woweu = Old World of Warcraft Europe Site | |||
|wowus = Old World of Warcraft Community Site | |||
Note: from lists, assuming these specific ones were mistake | |||
|wowinsider = WowInsider was in icon hover, other one was WoW Insider | |||
|blizzcon = BlizzCon was in link title, other one was BlizzCon site | |||
HOVER TITLE OF ICON | |||
-->{{#vardefine:tICONTITLE|{{#switch:{{{type|}}} | |||
|blizzard = Blizzard Entertainment | |||
|blizzardgear = Blizzard Gear | |||
|blizzgear = Blizzard Gear | |||
|blizzcon = BlizzCon site | |||
|blizzconeu = BlizzCon site (EU) | |||
|blizzconus = BlizzCon site (US) | |||
|blizzeu = Blizzard Entertainment (EU) | |||
|blizzus = Blizzard Entertainment (US) | |||
|blizznewseu = Blizzard News (EU) | |||
|blizznewsus = Blizzard News (US) | |||
|blizzshopus = Blizzard Shop (US) | |||
|blizzshopeu = Blizzard Shop (EU) | |||
|blizzsupporteu = Blizzard Support (EU) | |||
|blizzsupportus = Blizzard Support (US) | |||
|bnet = Battle.net | |||
|bnetus = Battle.net (US) | |||
|bneteu = Battle.net (EU) | |||
|bnetshopus = Battle.net Shop (US) | |||
|bnetshopeu = Battle.net Shop (EU) | |||
|bnetsupportus = Battle.net Support (US) | |||
|bnetsupporteu = Battle.net Support (EU) | |||
|bnetwowus = WoW Official Game Site (US) | |||
|bnetwoweu = WoW Official Game Site (EU) | |||
|newwowus = Official WoW Site (US) | |||
|newwoweu = Official WoW Site (EU) | |||
|allakhazam = Allakhazam | |||
|blizzardwatch = BlizzardWatch | |||
|blizzplanet = BlizzPlanet | |||
|curse = Curse | |||
|fandom = Fandom (Wikia) | |||
|icyveins = Icy-Veins.com | |||
|icyveinscom = Icy-Veins.com | |||
|mmochampion = MMO-Champion | |||
|petopia = Petopia | |||
|sol = Scrolls of Lore | |||
|thottbot = Thottbot | |||
|video = Movie | |||
|vimeo = Vimeo | |||
|wikipedia = Wikipedia | |||
|wowdb = WoWDB | |||
|wowhead = Wowhead | |||
|wowheadnews = Wowhead News | |||
|wowinsider = WoW Insider | |||
|woweu = Old WoW Europe Site | |||
|wowus = Old WoW Community Site | |||
|youtube = YouTube}}}}<!-- | |||
NAME SHOWN FOR LINK TEXT overriding icon hover title | |||
for whatever reason this list was slightly different, maybe mistake | |||
-->{{#vardefine:tSITETITLE|{{#switch:{{{type|}}} | |||
|icyveins = Icy Veins | |||
|icyveinscom = Icy Veins | |||
|woweu = WoW-Europe.com | |||
|wowus = WorldOfWarcraft.com | |||
|#default={{#var:tICONTITLE}}}}}}<!-- | |||
ROOT ICON AND CSS NAME | |||
-->{{#vardefine:tICONNAME|{{#ifexist:File:icon-{{{icon|{{{type}}}}}}-22x22.png|{{{icon|{{{type}}}}}}|external}}}}<!-- | |||
--><div class="elinks-item-{{#var:tICONNAME}}" <!-- | |||
-->style="{{#if:{{{style|}}}{{{inline|}}}||padding-left:26px; text-indent:-26px;}}{{{style|}}};{{#if:{{{inline|}}}|display:inline;}}"><!-- | |||
PREFIX AND ICON | |||
-->{{#if:{{{prefix|}}}|{{{prefix}}} }}<!-- | |||
-->[[File:Icon-{{#var:tICONNAME}}-22x22.png|{{#var:tICONTITLE|External link}}]] <!-- | |||
LINK | |||
-->{{#if:{{{strike|}}}|<s>}}<!-- | |||
-->[{{{url|{{{link|{{{1|}}}}}}}}} {{{site|{{#var:tSITETITLE|{{{2|}}}}}}}}] <!-- | |||
NON-LINK META | |||
--><span class="elink-desc">{{{title|{{{desc|{{{3|}}}}}}}}}</span><!-- | |||
-->{{#if:{{{author|{{{bydate|{{{4|}}}}}}}}}| <span class="elink-bydate" style="font-size:88%;"><!-- | |||
-->{{{bydate|{{{4|{{{author|}}} {{{date|}}}}}}}}}</span>}}<!-- | |||
-->{{#if:{{{strike|}}}|</s>}}<!-- | |||
-->{{#if:{{{postfix|}}}| {{{postfix}}}}}<!-- | |||
--></div><!-- | |||
--></includeonly></onlyinclude> |
Latest revision as of 18:52, 13 September 2022
Places a standard external link on a wiki page.
- Usage
prefix=
(Optional) prefix text before the icon.type=
(Optional) With correct name, automatically fills in '|icon=' and '|site='.icon=
(Optional) Icon name (expects same image filename format as {{wwicon}}) to show a specific icon before link that also works :site=
Simple name for the site, used as the link text.link=
URL to link to.
url=
(Optional) Can be used alternatively, but is not recommended.desc=
(Optional) description of what can be found at the link, placed after the link in plain text.
title=
(Optional) Can be used alternatively, but is not recommended.bydate=
(Optional) appears after the description in 90% of font-size (smaller).style=
(Optional) additional style for the outer div container. Useful for inline style formatting.inline=
(Optional) if set, will make the link work properly as inline text.strike=
(Optional) if set, will strike though the link and meta portions.postfix=
(Optional) postfix text after the link and meta.
See Template:Elink/doc for instructions and examples.
- See also