Template talk:Elink
From WoWWiki
- Description
- Creates an external link with icon, providing a consistant standard for the External Links section.
- Syntax
{{Elink|<prefix= >|<link= >|<site= >|<desc= >|<title= >|<icon= >|<type=>}}
- 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 "[[Icon-" and "-22x22.png]]". If not defined,
is used.
- Icons available (no corresponting type parameter):
— add,
— delete,
— remove,
— back,
— down,
— next,
— up
— download,
— edit,
— lock,
— new,
— move,
— revert,
— search
— cleanup,
— disambig,
— redirect,
— split
— help,
— information,
— question,
— warning
— api,
— article,
— boilerplate,
— policy,
— stub,
— template
— audio,
— chat,
— email,
— external,
— externalarticle
— addon,
— image,
— imagedelete,
— thumbnail,
— map,
— out
— patch,
— player,
— group,
— popular,
— user
- Site icons available (no corresponting type= parameter):
— almostgaming,
— apple,
— bradygames,
— cosmosui,
— crafterstome,
— criticalgamers,
— elsanglin,
— fantasyflightgames,
— filefront,
— gamebunny,
— gamespot,
— gamespy,
— goblinworkshop,
— ign,
— joystiq,
— kotaku,
— lootables,
— massively,
— mmochampion,
— thenoobschool,
— pennyarcade,
— tentonhammer,
— upperdeck,
— upperdeckwow,
— warcraftmovies,
— WarcraftPets,
— wikia,
— worldofraids,
— worldofwar,
— wowace,
— wowdigger,
— wowi,
— wowincgamers
- Icons available (has corresponding type parameter):
- Icons available (no corresponting type parameter):
- 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, blizzplanet, bosskillers, curse, 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:
Example Site This is an example external link
- 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: Taken from
Example Source Site This is an example source external link: