Template tags & filters
The following template tags and filters are available to be used by all apps. To use them just load them into your template like so:
{% load evelinks %}
Template Filters
evelinks
Example for using an evelinks filter to render an alliance logo:
<img src="{{ alliance_id|alliance_logo_url }}">
- alliance_logo_url(eve_obj: object, size: int = 32) → str[source]
generates image URL for the given object Works with EveCharacter, EveAllianceInfo objects or alliance IDs Returns URL or empty string
- character_portrait_url(eve_obj: object, size: int = 32) → str[source]
generates an image URL for the given object Works with EveCharacter objects or character IDs Returns URL or empty string
- corporation_logo_url(eve_obj: object, size: int = 32) → str[source]
generates image URL for the given object Works with EveCharacter, EveCorporationInfo objects or corporation IDs Returns URL or empty string
- dotlan_alliance_url(eve_obj: object) → str[source]
generates a dotlan URL for the given object Works with allianceauth.eveonline objects and eve entity names Returns URL or empty string
- dotlan_corporation_url(eve_obj: object) → str[source]
generates a dotlan URL for the given object Works with allianceauth.eveonline objects and eve entity names Returns URL or empty string
- dotlan_region_url(eve_obj: object) → str[source]
generates a dotlan URL for the given object Works with eve entity names Returns URL or empty string
- dotlan_solar_system_url(eve_obj: object) → str[source]
generates a dotlan URL for the given object Works with eve entity names Returns URL or empty string
- evewho_alliance_url(eve_obj: object) → str[source]
generates an evewho URL for the given object Works with allianceauth.eveonline objects and eve entity IDs Returns URL or empty string
- evewho_character_url(eve_obj: EveCharacter) → str[source]
generates an evewho URL for the given object Works with allianceauth.eveonline objects and eve entity IDs Returns URL or empty string
- evewho_corporation_url(eve_obj: object) → str[source]
generates an evewho URL for the given object Works with allianceauth.eveonline objects and eve entity IDs Returns URL or empty string
- type_icon_url(type_id: int, size: int = 32) → str[source]
generates a icon image URL for the given type ID Returns URL or empty string
- type_render_url(type_id: int, size: int = 32) → str[source]
generates a render image URL for the given type ID Returns URL or empty string
- zkillboard_alliance_url(eve_obj: object) → str[source]
generates a zkillboard URL for the given object Works with allianceauth.eveonline objects and eve entity IDs Returns URL or empty string
- zkillboard_character_url(eve_obj: EveCharacter) → str[source]
generates a zkillboard URL for the given object Works with allianceauth.eveonline objects and eve entity IDs Returns URL or empty string
- zkillboard_corporation_url(eve_obj: object) → str[source]
generates a zkillboard URL for the given object Works with allianceauth.eveonline objects and eve entity IDs Returns URL or empty string