16 lines
367 B
Smalltalk
16 lines
367 B
Smalltalk
Extension { #name : #LePictureSnippet }
|
|
|
|
{ #category : #'*Grafoscopio-Utils-Core' }
|
|
LePictureSnippet >> centeredFigure [
|
|
|
|
^ '<center>
|
|
<figure>
|
|
<img src="' , self urlString , '"
|
|
width="' , (self optionAt: 'width' ifAbsent: [ '75%' ]) , '"
|
|
/>
|
|
<figcaption>*' , (self optionAt: 'caption' ifAbsent: [ '' ]) , '*
|
|
</figcaption>
|
|
</figure>
|
|
</center>'
|
|
]
|