Difference between revisions of "Template:Imageserver/doc"

From EVE University Wiki
Jump to: navigation, search
m (Update doc for the use of "anonymous" parameters for the required data.)
m (Add link to How to get ID. Remove {{Cleanup}}.)
Line 1: Line 1:
{{Cleanup|This needs some information about how to obtain the id's}}
 
 
 
; Description
 
; Description
 
: This templates allows easy linking to images from the EVE Online Image Service.
 
: This templates allows easy linking to images from the EVE Online Image Service.
Line 15: Line 13:
 
:: One of alliances, corporations, characters, or types.
 
:: One of alliances, corporations, characters, or types.
 
:; id
 
:; id
:: EVE Online database ID of the thing you want to  show.
+
:: EVE Online database ID of the thing you want to  show. See [[How to get ID]] for how to find it.
 
:; variant
 
:; variant
 
:: Aspect of the thing you want to show. logo (for category alliances and corps), portrait (for category characters), icon (for category types), render (for category types that are in space such as ships and structures), bp (for category types that are blueprints), bpc (for category types that are blueprints), relic (for category types that are T3 component blueprints)
 
:: Aspect of the thing you want to show. logo (for category alliances and corps), portrait (for category characters), icon (for category types), render (for category types that are in space such as ships and structures), bp (for category types that are blueprints), bpc (for category types that are blueprints), relic (for category types that are T3 component blueprints)
Line 26: Line 24:
 
::gives...
 
::gives...
 
{{Imageserver|types|587|render|size=256}}
 
{{Imageserver|types|587|render|size=256}}
 +
 +
; See also
 +
: {{T|Charimage}}
  
 
<includeonly>[[Category:Image templates]]<!-- Any categories for the template itself --></includeonly>
 
<includeonly>[[Category:Image templates]]<!-- Any categories for the template itself --></includeonly>
 
<noinclude>[[Category:Template documentation]]</noinclude>
 
<noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 09:43, 28 July 2022

Description
This templates allows easy linking to images from the EVE Online Image Service.
Dependencies
Uses
Image service for EVE Online
Syntax
{{Imageserver|<category>|<id>|<variant>|<size=>}}
Parameters
category
One of alliances, corporations, characters, or types.
id
EVE Online database ID of the thing you want to show. See How to get ID for how to find it.
variant
Aspect of the thing you want to show. logo (for category alliances and corps), portrait (for category characters), icon (for category types), render (for category types that are in space such as ships and structures), bp (for category types that are blueprints), bpc (for category types that are blueprints), relic (for category types that are T3 component blueprints)
size=
Optional image size in pixels. Valid sizes are 32, 64, 128, 256, 512, and 1024. Defaults to image native resolution.

See Image Server esi documentation for more details https://docs.esi.evetech.net/docs/image_server.html

Sample output
{{Imageserver|types|587|render|size=256}}
gives...

?size=256&.png

See also
{{Charimage}}