Template:Elink

From Wowpedia
Jump to: navigation, search
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:Icon-" and "-22x22.png]]". If not defined, Icon-external-22x22.png is used. Do not use just icon= (blank value).
    • Icons available (no corresponding type parameter):
      Icon-add-22x22.pngadd, Icon-delete-22x22.pngdelete, Icon-remove-22x22.pngremove, Icon-back-22x22.pngback, Icon-down-22x22.pngdown, Icon-next-22x22.pngnext, Icon-up-22x22.pngup
      Icon-download-22x22.pngdownload, Icon-edit-22x22.pngedit, Icon-lock-22x22.pnglock, Icon-new-22x22.pngnew, Icon-move-22x22.pngmove, Icon-revert-22x22.pngrevert, Icon-search-22x22.pngsearch
      Icon-cleanup-22x22.pngcleanup, Icon-disambig-22x22.pngdisambig, Icon-redirect-22x22.pngredirect, Icon-split-22x22.pngsplit
      Icon-help-22x22.pnghelp, Icon-information-22x22.pnginformation, Icon-question-22x22.pngquestion, Icon-warning-22x22.pngwarning
      Icon-api-22x22.pngapi, Icon-article-22x22.pngarticle, Icon-boilerplate-22x22.pngboilerplate, Icon-policy-22x22.pngpolicy, Icon-stub-22x22.pngstub, Icon-template-22x22.pngtemplate
      Icon-audio-22x22.pngaudio, Icon-chat-22x22.pngchat, Icon-email-22x22.pngemail, Icon-external-22x22.pngexternal, Icon-externalarticle-22x22.pngexternalarticle
      Icon-addon-22x22.pngaddon, Icon-image-22x22.pngimage, Icon-imagedelete-22x22.pngimagedelete, Icon-thumbnail-22x22.pngthumbnail, Icon-map-22x22.pngmap, Icon-out-22x22.pngout
      Icon-patch-22x22.pngpatch, Icon-player-22x22.pngplayer, Icon-group-22x22.pnggroup, Icon-popular-22x22.pngpopular, Icon-user-22x22.pnguser
    • Site icons available (no corresponding type parameter):
      Icon-25man-22x22.png25man, Icon-almostgaming-22x22.pngalmostgaming, Icon-apple-22x22.pngapple, Icon-bradygames-22x22.pngbradygames, Icon-cosmosui-22x22.pngcosmosui,
      Icon-crafterstome-22x22.pngcrafterstome, Icon-curseforge-22x22.pngcurseforge, Icon-dccomics-22x22.pngdccomics, Icon-elitistjerks-22x22.pngelitistjerks, Icon-fantasyflightgames-22x22.pngfantasyflightgames,
      Icon-filefront-22x22.pngfilefront, Icon-gamebunny-22x22.pnggamebunny, Icon-gamespot-22x22.pnggamespot, Icon-gamespy-22x22.pnggamespy, Icon-googleplay-22x22.pnggoogleplay,
      Icon-guildprogress-22x22.pngguildprogress, Icon-ign-22x22.pngign, Icon-joystiq-22x22.pngjoystiq, Icon-kotaku-22x22.pngkotaku, Icon-lootables-22x22.pnglootables, Icon-magelo-22x22.pngmagelo,
      Icon-maintankadin-22x22.pngmaintankadin, Icon-massively-22x22.pngmassively, Icon-mmochampion-22x22.pngmmochampion, Icon-thenoobschool-22x22.pngthenoobschool,
      Icon-pennyarcade-22x22.pngpennyarcade, Icon-teamliquid-22x22.pngteamliquid, Icon-tentonhammer-22x22.pngtentonhammer, Icon-upperdeck-22x22.pngupperdeck,
      Icon-upperdeckwow-22x22.pngupperdeckwow, Icon-warcraftmovies-22x22.pngwarcraftmovies, Icon-WarcraftPets-22x22.pngWarcraftPets, Icon-worldofraids-22x22.pngworldofraids,
      Icon-worldofwar-22x22.pngworldofwar, Icon-wowace-22x22.pngwowace, Icon-wowbluetracker-22x22.pngwowbluetracker, Icon-wowdigger-22x22.pngwowdigger, Icon-wowi-22x22.pngwowi,
      Icon-wowincgamers-22x22.pngwowincgamers
    • Icons available (has corresponding type parameter):
      Icon-allakhazam-22x22.pngallakhazam, Icon-amazon-22x22.pngamazon, Icon-armory-22x22.pngarmory, Icon-blizzard-22x22.pngblizzard, Icon-bnet-22x22.pngbnet, Icon-blizzcon-22x22.pngblizzcon,
      Icon-blizzardwatch-22x22.pngblizzardwatch, Icon-blizzplanet-22x22.pngblizzplanet, Icon-curse-22x22.pngcurse, Icon-elsanglin-22x22.pngelsanglin, Icon-facebook-22x22.pngfacebook,
      Icon-petopia-22x22.pngpetopia, Icon-sol-22x22.pngsol, Icon-thottbot-22x22.pngthottbot, Icon-twitch-22x22.pngtwitch, Icon-twitter-22x22.pngtwitter, Icon-wikipedia-22x22.pngwikipedia,
      Icon-woweu-22x22.pngwoweu, Icon-wowus-22x22.pngwowus, Icon-wowhead-22x22.pngwowhead, Icon-wowinsider-22x22.pngwowinsider, Icon-youtube-22x22.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, sol, thottbot, video, wikipedia, woweu, wowhead, wowinsider, wowus, and youtube.
Examples
This: {{Elink|link=http://examplesite.com|site=Example Site|desc=This is an example external link}}
Produces:
This: {{Elink|prefix=Take from|link=http://examplesite2.com|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 image should be 22 pixels high by 22 pixels wide.
  • The name of the image file should be in the form: Icon-name-22x22.png
Before adding the icon to the list on Template:Elink/doc, please ask for feedback on Template talk:Elink.