This is a protected template!

Difference between revisions of "Template:Elink"

From Wowpedia
Jump to: navigation, search
(just use `woweu` or `wowus`)
(add deviantart, alphabetize, Blizzard Battle.net -> Battle.net)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<onlyinclude><includeonly><div style="margin: 2px 0px; {{#ifeq:{{{inline|-}}}|-||display:inline;}} {{{style|}}}" class="elinks-item-{{#ifexist:File:ElinkIcon-{{lc:{{{icon|{{{type}}}}}}}}.png|{{lc:{{{icon|{{{type}}}}}}}}|{{#ifexist:File:Icon-{{{icon|{{{type}}}}}}-22x22.png|{{{icon|{{{type}}}}}}|external}}}}">{{#if:{{{prefix|}}}|{{{prefix|}}}&nbsp;}}[[File:{{#ifexist:File:ElinkIcon-{{lc:{{{icon|{{{type}}}}}}}}.png|ElinkIcon-{{lc:{{{icon|{{{type}}}}}}}}.png|Icon-{{#ifexist:File:Icon-{{{icon|{{{type}}}}}}-22x22.png|{{{icon|{{{type}}}}}}|external}}-22x22.png}}|22px|{{{title|{{#switch:{{{type}}}
+
<onlyinclude><includeonly><div style="margin: 2px 0px; {{#ifeq:{{{inline|-}}}|-||display:inline;}} {{{style|}}}" class="elinks-item-{{#ifexist:File:ElinkIcon-{{lc:{{{icon|{{{type}}}}}}}}.png|{{lc:{{{icon|{{{type}}}}}}}}|{{#ifexist:File:Icon-{{{icon|{{{type}}}}}}-22x22.png|{{{icon|{{{type}}}}}}|external}}}}">{{#if:{{{prefix|}}}|{{{prefix|}}}&nbsp;}}[[File:{{#ifexist:File:ElinkIcon-{{lc:{{{icon|{{{type}}}}}}}}.png|ElinkIcon-{{lc:{{{icon|{{{type}}}}}}}}.png|Icon-{{#ifexist:File:Icon-{{{icon|{{{type}}}}}}-22x22.png|{{{icon|{{{type}}}}}}|external}}-22x22.png}}|22px|link=|{{{title|{{#switch:{{{type}}}
|wikipedia = Wikipedia
 
|petopia = Petopia
 
|video = Movie
 
|armory = WoW Armory
 
|blizzard = Blizzard Entertainment
 
|bnet = Blizzard Battle.net
 
|blizzcon = BlizzCon
 
|woweu = World of Warcraft Europe
 
|wow|wowus = World of Warcraft Community Site
 
 
|allakhazam = Allakhazam
 
|allakhazam = Allakhazam
 
|amazon = Amazon
 
|amazon = Amazon
 
|ampwow = AmpWoW
 
|ampwow = AmpWoW
 
|armory = WoW Armory
  +
|artstation = ArtStation
 
|blizzard = Blizzard Entertainment
 
|blizzardwatch = Blizzard Watch
 
|blizzardwatch = Blizzard Watch
 
|blizzcon = BlizzCon
 
|blizzplanet = BlizzPlanet
 
|blizzplanet = BlizzPlanet
 
|bnet = Battle.net
 
|curse = Curse
 
|curse = Curse
  +
|deviantart = DeviantArt
 
|elsanglin = El's Extreme Anglin'
 
|elsanglin = El's Extreme Anglin'
 
|facebook = Facebook
 
|facebook = Facebook
 
|petopia = Petopia
 
|reddit = Reddit
 
|reddit = Reddit
 
|sol = Scrolls of Lore
 
|sol = Scrolls of Lore
Line 22: Line 20:
 
|twitch = Twitch
 
|twitch = Twitch
 
|twitter = Twitter
 
|twitter = Twitter
 
|video = Movie
 
|WarcraftMounts = Warcraft Mounts
 
|WarcraftMounts = Warcraft Mounts
 
|WarcraftPets = WarcraftPets
 
|WarcraftPets = WarcraftPets
 
|wikipedia = Wikipedia
 
|woweu = World of Warcraft Europe
 
|wow|wowus = World of Warcraft Community Site
 
|wowhead = Wowhead
 
|wowhead = Wowhead
 
|wowheadc = Wowhead Classic
 
|wowheadc = Wowhead Classic
Line 29: Line 31:
 
|youtube = YouTube
 
|youtube = YouTube
 
|External link}}}}}]] [{{{link|{{{1}}}}}} {{{site|{{#switch:{{{type}}}
 
|External link}}}}}]] [{{{link|{{{1}}}}}} {{{site|{{#switch:{{{type}}}
|wikipedia = Wikipedia
 
|petopia = Petopia
 
|video = Movie
 
|armory = WoW Armory
 
|blizzard = Blizzard Entertainment
 
|bnet = Blizzard Battle.net
 
|blizzcon = BlizzCon
 
|woweu = World of Warcraft Europe
 
|wow|wowus = World of Warcraft Community Site
 
 
|allakhazam = Allakhazam
 
|allakhazam = Allakhazam
 
|amazon = Amazon
 
|amazon = Amazon
 
|ampwow = AmpWoW
 
|ampwow = AmpWoW
 
|armory = WoW Armory
  +
|artstation = ArtStation
 
|blizzard = Blizzard Entertainment
 
|blizzardwatch = Blizzard Watch
 
|blizzardwatch = Blizzard Watch
 
|blizzcon = BlizzCon
 
|blizzplanet = BlizzPlanet
 
|blizzplanet = BlizzPlanet
 
|bnet = Battle.net
 
|curse = Curse
 
|curse = Curse
  +
|deviantart = DeviantArt
 
|elsanglin = El's Extreme Anglin'
 
|elsanglin = El's Extreme Anglin'
 
|facebook = Facebook
 
|facebook = Facebook
 
|petopia = Petopia
 
|reddit = Reddit
 
|reddit = Reddit
 
|sol = Scrolls of Lore
 
|sol = Scrolls of Lore
 
|thottbot = Thottbot
 
|thottbot = Thottbot
|twitch = Twitch
+
|twitch = Twitch
 
|twitter = Twitter
 
|twitter = Twitter
 
|video = Movie
 
|WarcraftMounts = Warcraft Mounts
 
|WarcraftMounts = Warcraft Mounts
 
|WarcraftPets = WarcraftPets
 
|WarcraftPets = WarcraftPets
 
|wikipedia = Wikipedia
 
|woweu = World of Warcraft Europe
 
|wow|wowus = World of Warcraft Community Site
 
|wowhead = Wowhead
 
|wowhead = Wowhead
 
|wowheadc = Wowhead Classic
 
|wowheadc = Wowhead Classic
|wowi = WoWInterface
 
 
|wowinsider = WowInsider
 
|wowinsider = WowInsider
 
|youtube = YouTube
 
|youtube = YouTube

Latest revision as of 21:25, 10 April 2021

Description
Creates an external link with icon, providing a consistent standard for the External Links section.
Syntax

{{Elink|< prefix= >|< link=link_url >|< site=link_name >|< desc= >|< title=tooltip >|< icon=icon_name >|< type=(see below) >}}

  • prefix - Optional prefix text before the icon.
  • link - URL to link to.
  • site - Simple name for the site, used as the link text. This should be the domain name (cleaned up, capitalized, drop the '.com', etc) or the guild name "Example Guild (Example Server US)"
  • desc - Optional description of what can be found at the link, placed after the link in plain text.
  • title - Optional text showing when the mouse is over the icon. If not defined, it will default to "External link".
  • icon - Optional icon to show at start of link. Give only the image name, leave off the "[[File:ElinkIcon-" and ".png]]". If not defined, ElinkIcon-external.png is used. Do not use just icon= (blank value).
    • Site icons available (no corresponding type parameter):
      ElinkIcon-apple.pngapple, ElinkIcon-bradygames.pngbradygames, ElinkIcon-curseforge.pngcurseforge, ElinkIcon-dccomics.pngdccomics,
      ElinkIcon-elitistjerks.pngelitistjerks, ElinkIcon-fantasyflightgames.pngfantasyflightgames, ElinkIcon-gamespot.pnggamespot, ElinkIcon-gamespy.pnggamespy,
      ElinkIcon-googleplay.pnggoogleplay, ElinkIcon-ign.pngign, ElinkIcon-joystiq.pngjoystiq, ElinkIcon-kotaku.pngkotaku,
      ElinkIcon-massively.pngmassively, ElinkIcon-mmochampion.pngmmochampion,
      ElinkIcon-teamliquid.pngteamliquid, ElinkIcon-tentonhammer.pngtentonhammer, ElinkIcon-upperdeck.pngupperdeck,
      ElinkIcon-upperdeckwow.pngupperdeckwow, ElinkIcon-warcraftmovies.pngwarcraftmovies, ElinkIcon-warcraftpets.pngwarcraftpets,
      ElinkIcon-worldofwar.pngworldofwar, ElinkIcon-wowace.pngwowace, ElinkIcon-wowbluetracker.pngwowbluetracker, ElinkIcon-wowi.pngwowi
    • Icons available (has corresponding type parameter):
      ElinkIcon-allakhazam.pngallakhazam, ElinkIcon-amazon.pngamazon, ElinkIcon-armory.pngarmory, ElinkIcon-artstation.pngartstation, ElinkIcon-blizzard.pngblizzard, ElinkIcon-bnet.pngbnet, ElinkIcon-blizzcon.pngblizzcon,
      ElinkIcon-blizzardwatch.pngblizzardwatch, ElinkIcon-blizzplanet.pngblizzplanet, ElinkIcon-curse.pngcurse, ElinkIcon-deviantart.pngdeviantart, ElinkIcon-elsanglin.pngelsanglin, ElinkIcon-facebook.pngfacebook,
      ElinkIcon-petopia.pngpetopia, ElinkIcon-reddit.pngreddit, ElinkIcon-sol.pngsol, ElinkIcon-thottbot.pngthottbot, ElinkIcon-twitch.pngtwitch, ElinkIcon-twitter.pngtwitter, ElinkIcon-wikipedia.pngwikipedia,
      ElinkIcon-woweu.pngwoweu, ElinkIcon-wowus.pngwowus, ElinkIcon-wowhead.pngwowhead, ElinkIcon-wowheadc.pngwowheadc, ElinkIcon-wowinsider.pngwowinsider, ElinkIcon-youtube.pngyoutube
  • type - Will automatically give the link a default styling (icon, site, title...) depending on the given parameter. Icons are defaulted to the type. Currently, the accepted parameters are: allakhazam, ampwow, armory, blizzard, bnet, blizzcon, blizzplanet, curse, elsanglin, petopia, reddit, sol, thottbot, video, wikipedia, woweu, wowhead, wowheadc, wowinsider, wowus, and youtube.
Examples
This: {{Elink|link=http://example.com|site=Example Site|desc=This is an example external link}}
Produces:
This: {{Elink|prefix=Take from|link=http://example.org|site=Example Source Site|desc=This is an example source external link|title=Example hover box}}
Produces:
Using icons not listed
You can use icons not listed, if they are uploaded to Wowpedia.
Before using an icon it should meet the following criteria:
  • The image should be a PNG with the extension .png (lowercase).
  • The name of the image file should be in the form: ElinkIcon-name.png
Before adding the icon to the list on Template:Elink/doc, please ask for feedback on Template talk:Elink.