add Test page
|
Dimensions
MessagesReplacement version 2024-09-16new
Fix thumb image size to a maximum dimension
- Requirement
- To set the maximum dimension of a thumbnail to a set size, so for a landscape image set the width, and for a portrait image set the height.
ImageSize:350
px, width, height
With captions
>>rfloat<<
(:thumb width={$:ImageSize} 14750001.jpg titlefmt="Coast north of Makara Estuary, Owhariu Bay{$:PhotosTitle}?n?x_kwtitle" captionfmt="width={$:ImageSize}?n?x_kwcaption" :)
>>lfloat<<
(:thumb height={$:ImageSize} 14750002.jpg titlefmt="Tongue Point, Raukawa/Cook Strait, and Te Waipounamu/South Island{$:PhotosTitle}?n?x_kwtitle" captionfmt="height={$:ImageSize}?n?x_kwcaption" :)
>><<
>>lfloat<<
(:thumb px={$:ImageSize} 14750003.jpg titlefmt="Outlook Hill, 537 m, Terawhiti Station{$:PhotosTitle?n?x_kwtitle}" captionfmt="px={$:ImageSize}?n?x_kwcaption" :)
>>rfloat<<
(:thumb px={$:ImageSize} 14750004.jpg titlefmt="Meterological Radar, Outlook Hill{$:PhotosTitle?n?x_kwtitle}" captionfmt="px={$:ImageSize}?n?x_kwcaption" :)
>><<
(:comment These is no such thing as a height parameter, but we'll try it anyway :)
(:thumb height={$:ImageSize} 14750005.jpg titlefmt="Old rimu, Warrens Bush, South Makara{$:PhotosTitle?n?x_kwtitle}" captionfmt="height={$:ImageSize}?n?x_kwcaption" :)
|
|
Without captions
>>rfloat<<
(:thumb width={$:ImageSize} 14750001.jpg captionfmt="?x_kwcaption" titlefmt="Coast north of Makara Estuary, Owhariu Bay{$:PhotosTitle}?n?x_kwtitle" :)
>>lfloat<<
(:thumb height={$:ImageSize} 14750002.jpg captionfmt="?x_kwcaption" titlefmt="Tongue Point, Raukawa/Cook Strait, and Te Waipounamu/South Island{$:PhotosTitle}?n?x_kwtitle" :)
>><<
>>lfloat<<
(:thumb px={$:ImageSize} 14750003.jpg captionfmt="?x_kwcaption" titlefmt="Outlook Hill, 537 m, Terawhiti Station{$:PhotosTitle}?n?x_kwtitle" :)
>>rfloat<<
(:thumb px={$:ImageSize} 14750004.jpg captionfmt="?x_kwcaption" titlefmt="Meterological Radar, Outlook Hill{$:PhotosTitle}?n?x_kwtitle" :)
>><<
(:thumb height={$:ImageSize} 14750005.jpg captionfmt="?x_kwcaption" titlefmt="Old rimu, Warrens Bush, South Makara{$:PhotosTitle}?n?x_kwtitle" :)
|
|
Caption or Captionfmt?
caption= is the table caption, usually on top of the table, captionfmt= formats the repeated captions of each thumbnail (like titlefmt= formats the repeated tooltip title). captionfmt= was designed to be easier/shorter to use for a single (:thumb:), than the alternative (:thumbgallery:)file.jpg|captionfmt...(:thumbgalleryend:) --Petko (:20080706T215852Z:)
Caption
(:thumb width={$:ImageSize} 14750001.jpg titlefmt="?x_kwtitle" caption="Coast north of Makara Estuary,?nOwhariu Bay{$:PhotosTitle}?n?x_kwcaption" :)
(:thumblist height={$:ImageSize} name="14750002.jpg" titlefmt="?x_kwtitle" caption="Tongue Point, Raukawa/Cook Strait,?nand Te Waipounamu/South Island{$:PhotosTitle}?n?x_kwcaption" :)
(:thumblist cols=1 height={$:ImageSize} name="14750005.jpg" titlefmt="?x_kwtitle" caption="Old rimu, Warrens Bush,?nSouth Makara{$:PhotosTitle}?n?x_kwcaption" :)
|
Old rimu, Warrens Bush,?nSouth Makara, photograph by Barbara Mitcalfe?n?x_kwcaption |
|
Captionfmt
(:thumb width={$:ImageSize} 14750001.jpg titlefmt="?x_kwtitle" captionfmt="Coast north of Makara Estuary,?nOwhariu Bay{$:PhotosTitle}?n?x_kwcaption" :)
(:thumblist height={$:ImageSize} name="14750002.jpg" titlefmt="?x_kwtitle" captionfmt="Tongue Point, Raukawa/Cook Strait,?nand Te Waipounamu/South Island{$:PhotosTitle}?n?x_kwcaption" :)
(:thumblist cols=1 height={$:ImageSize} name="14750005.jpg" titlefmt="?x_kwtitle" captionfmt="Old rimu, Warrens Bush,?nSouth Makara{$:PhotosTitle}?n?x_kwcaption" :)
| Coast north of Makara Estuary, Owhariu Bay, photograph by Barbara Mitcalfe 14750001 |
Tongue Point, Raukawa/Cook Strait, and Te Waipounamu/South Island, photograph by Barbara Mitcalfe 14750002
Old rimu, Warrens Bush, South Makara, photograph by Barbara Mitcalfe 14750005 |
|
|