Difference between revisions of "Template:Imageserver/doc"

From EVE University Wiki
Jump to: navigation, search
(category)
m (Add dependency. Try to make the parameter description better to understand for inexperienced users. Add {{Cleanup}}.)
Line 1: Line 1:
;Description
+
{{Cleanup|This needs some information about how to obtain the id's}}
:This templates allows easy linking to images from EVE Online Image Server.
+
 
;Syntax
+
; Description
:Type <code>{{t|Imageserver|category&#61;|id&#61;|variant&#61;|size&#61;}}</code> somewhere.
+
: This templates allows easy linking to images from the EVE Online Image Service.
 +
 
 +
; Dependencies
 +
:; Uses
 +
:: Image service for EVE Online
 +
 
 +
; Syntax
 +
: {{T|Imageserver|category&#61;|id&#61;|variant&#61;|size&#61;}}
 +
 
 
; Parameters
 
; Parameters
: <code>category</code>
+
:; category
:: alliances, corporations, characters, or types.
+
:: One of alliances, corporations, characters, or types.
: <code>id</code>
+
:; id
:: ID of the thing you want to  show.
+
:: EVE Online database ID of the thing you want to  show.
: <code>variant</code>
+
:; variant
:: Aspect of the thing you want to show. logo (alliance/corp), portrait (character), icon (types), render (types that are in space such as ships and structures), bp (types blueprint), bpc (types blueprint), relic (T3 component bpc)
+
:: 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)
: <code>size</code>
+
:; size
 
:: Optional image size in pixels. Valid sizes are 32, 64, 128, 256, 512, and 1024. Defaults to image native resolution.
 
:: Optional image size in pixels. Valid sizes are 32, 64, 128, 256, 512, and 1024. Defaults to image native resolution.
See Image Server documentation for more details https://docs.esi.evetech.net/docs/image_server.html
+
See Image Server esi documentation for more details https://docs.esi.evetech.net/docs/image_server.html
 +
 
 
;Sample output
 
;Sample output
 
:<code><nowiki>{{Imageserver|category=types|id=587|variant=render|size=256}}</nowiki></code>
 
:<code><nowiki>{{Imageserver|category=types|id=587|variant=render|size=256}}</nowiki></code>
 
::gives...
 
::gives...
 
{{Imageserver|category=types|id=587|variant=render|size=256}}
 
{{Imageserver|category=types|id=587|variant=render|size=256}}
<includeonly>[[Category:Image templates|{{PAGENAME}}]]<!-- Any categories for the template itself --></includeonly>
+
 
<noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude>
+
<includeonly>[[Category:Image templates]]<!-- Any categories for the template itself --></includeonly>
 +
<noinclude>[[Category:Template documentation]]</noinclude>

Revision as of 10:52, 27 July 2022

This article should be cleaned up or improved.
The reason is: This needs some information about how to obtain the id's
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.
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|category=types|id=587|variant=render|size=256}}
gives...

?size=256&.jpg