Template:NGThumb: Difference between revisions

From National Gallery Research Wiki
Jump to navigation Jump to search
(Created page with "<noinclude>__NOTOC__ {| cellpadding="10" cellspacing="0" border="1" style="border-style: solid; border-color: #F00" |- | colspan=2 | '''Template Example''' This template has ...")
 
No edit summary
 
(15 intermediate revisions by the same user not shown)
Line 6: Line 6:
This template has been set-up to allow users to directly include thumbnails of NG images directly from CID and the pyramidal images prepared from the images stored on GUIDO.
This template has been set-up to allow users to directly include thumbnails of NG images directly from CID and the pyramidal images prepared from the images stored on GUIDO.


A few examples for NG665 can be displayed using:
'''Please note that this template will display any available image when used within internal wikis, for all external wikis images will need to have been made specifically public before they will be displayed.'''
 
*'''object:''' indicates the acquisition number (or specific image number).
*'''size:''' indicates the maximum pixel dimension of the thumbnail, height or width. Please note that it may not be possible to render very large thumbnails, particularly on the external server a maximum pixel dimension with have been set [OPTIONAL default is set to 64].
*'''which:''' indicates the type of images that should be displayed.[OPTIONAL default is set to display the front visible image].
** options include: visible, front, back, x-ray, uv, ir or image.
** When "image" is used then the full specific image name will be required rather than just the acquisition number.
*''''scale:''' if a particular image is quite dark or if you would like to emphasis the details in the darker parts of an image you can scale or brighten the image, this scale adjustment is indicated using a number; 2, 3, 1.4, 0.3, etc. Numbers above 1 will brighten an image and numbers below 1 will darken it. [OPTIONAL default value is set to 1]
*'''frame:''' add a frame around your thumbnail. [OPTIONAL]
*'''caption:''' add a caption below thumbnail. [OPTIONAL]
 
A few examples for NG1093 can be displayed using:
|-
|-
| <pre>{{NGThumb|object=NG665}}</pre> || {{NGThumb|object=NG665}}
| <pre>{{NGThumb|object=NG1093}}</pre> || {{NGThumb|object=NG1093}}
|-
|-
| <pre>{{NGThumb|
| <pre>{{NGThumb|
   object=NG665|
   object=NG1093|
   size=128|
   size=128|
   which=front
   which=front
  }}</pre> || {{NGThumb|object=NG665|size=128|which=front}}
  }}</pre> || {{NGThumb|object=NG1093|size=128|which=front}}
|-
|-
| <pre>
| <pre>
  {{NGThumb|
  {{NGThumb|
   object=NG665|
   object=NG1093|
   size=128|
   size=128|
   which=back
   which=back
  frame=yes
  }}
  }}
</pre> || {{NGThumb|object=NG665|size=128|which=back}}
</pre> || {{NGThumb|object=NG1093|size=128|which=back|frame=yes}}
|-
|-
| <pre>
| <pre>
  {{NGThumb|
  {{NGThumb|
   object=NG665|
   object=NG1093|
   size=200|
   size=200|
   which=x-ray
   which=x-ray
  }}
  }}
</pre> || {{NGThumb|object=NG665|size=200|which=x-ray}}
</pre> || {{NGThumb|object=NG1093|size=200|which=x-ray}}
|-
|-
| <pre>
| <pre>
  {{NGThumb|
  {{NGThumb|
   object=N-0819-00-000012|
   object=N-1093-00-000214|
  size=200|
  which=image|
  caption=This image has '''not''' been brightened.
}}
</pre> || {{NGThumb|object=N-1093-00-000214|size=200|which=image|caption=This image has been brightened.}}
|-
| <pre>
{{NGThumb|
  object=N-1093-00-000214|
   size=200|
   size=200|
   which=image
   which=image
  scale=2
  caption=This image has been brightened.
  frame=yes
  }}
  }}
</pre> || {{NGThumb|object=N-0819-00-000012|size=200|which=image}}
</pre> || {{NGThumb|object=N-1093-00-000214|size=200|which=image|scale=3|caption=This image has been brightened.|frame=yes}}
|}</noinclude>
|}</noinclude>
<includeonly>
<includeonly>
http://roundtable.ng-london.org.uk/iip_thumb/{{{object|NG0}}}.jpg&size={{{size|64}}}&type={{{which|front}}}&.jpg
{{#if:{{{frame|}}}|<div class="thumb">|}}
{{#if:{{{frame|}}}|<div class="thumbinner" style="width:{{{size|64}}}px;">|}}
http://research.ng-london.org.uk/iip_thumb/{{{object|NG0}}}.jpg&size={{{size|64}}}&type={{{which|front}}}&cnt={{{scale|1}}}&.jpg
<div class="thumbcaption">{{{caption|}}}</div>
{{#if:{{{frame|}}}|</div>|}}
{{#if:{{{frame|}}}|</div>|}}
</includeonly>
</includeonly>

Latest revision as of 17:14, 19 February 2015


Template Example

This template has been set-up to allow users to directly include thumbnails of NG images directly from CID and the pyramidal images prepared from the images stored on GUIDO.

Please note that this template will display any available image when used within internal wikis, for all external wikis images will need to have been made specifically public before they will be displayed.

  • object: indicates the acquisition number (or specific image number).
  • size: indicates the maximum pixel dimension of the thumbnail, height or width. Please note that it may not be possible to render very large thumbnails, particularly on the external server a maximum pixel dimension with have been set [OPTIONAL default is set to 64].
  • which: indicates the type of images that should be displayed.[OPTIONAL default is set to display the front visible image].
    • options include: visible, front, back, x-ray, uv, ir or image.
    • When "image" is used then the full specific image name will be required rather than just the acquisition number.
  • 'scale: if a particular image is quite dark or if you would like to emphasis the details in the darker parts of an image you can scale or brighten the image, this scale adjustment is indicated using a number; 2, 3, 1.4, 0.3, etc. Numbers above 1 will brighten an image and numbers below 1 will darken it. [OPTIONAL default value is set to 1]
  • frame: add a frame around your thumbnail. [OPTIONAL]
  • caption: add a caption below thumbnail. [OPTIONAL]

A few examples for NG1093 can be displayed using:

{{NGThumb|object=NG1093}}


NG1093.jpg&size=64&type=front&cnt=1&.jpg


{{NGThumb|
  object=NG1093|
  size=128|
  which=front
 }}


NG1093.jpg&size=128&type=front&cnt=1&.jpg


 {{NGThumb|
  object=NG1093|
  size=128|
  which=back
  frame=yes
 }}

NG1093.jpg&size=128&type=back&cnt=1&.jpg

 {{NGThumb|
  object=NG1093|
  size=200|
  which=x-ray
 }}


NG1093.jpg&size=200&type=x-ray&cnt=1&.jpg


 {{NGThumb|
  object=N-1093-00-000214|
  size=200|
  which=image|
  caption=This image has '''not''' been brightened.
 }}


N-1093-00-000214.jpg&size=200&type=image&cnt=1&.jpg

This image has been brightened.


 {{NGThumb|
  object=N-1093-00-000214|
  size=200|
  which=image
  scale=2
  caption=This image has been brightened.
  frame=yes
 }}

N-1093-00-000214.jpg&size=200&type=image&cnt=3&.jpg

This image has been brightened.