Predefinição:FreedImg/span/doc

Fonte: testwiki
Revisão em 00h52min de 5 de novembro de 2020 por imported>555 (en:Template:FreedImg/span/doc)
(dif) ← Revisão anterior | Revisão atual (dif) | Revisão seguinte → (dif)
Saltar para a navegação Saltar para a pesquisa

Predefinição:Subpágina para documentação Predefinição:Uses TemplateStyles


  • Use this image container template to display INLINE OFFSET images.
  • Resizes the container dynamically and provides additional image related features.
  • When used to display an offset image, the surrounding text flows around the container.

Predefinição:Dhr

Predefinição:TOCcenter

Usage

  • Always please use the shortcut to FreedImg/span, Predefinição:Tl, rather than the long template name.
{{FIS
 | type         =
 | file         =
 | width        =
 | height       =
 | cclass       =
 | cstyle       =
 | float        =
 | margin-left  =
 | margin-right =
 | clear        =
 | caption      =
 | tmleft       =
 | indent       =
 | tstyle       =
 | talign       =
 | alt          =
 | link         =
 | page         =
}}

For true block element usage, please see FreedImg, Predefinição:Tl, instead.

Parameters

Parameters by code inspection as of 6th Jan. 2015:
Predefinição:T/r| Predefinição:((FIS parameter alternate name default value notes Predefinição:T/r| Predefinição:))
cclass floatnone
width 100%
height auto
margin-right auto
margin-left auto
float «none» adding then setting float to left or right overrides the default alignment; centered.
clear «none»
cstyle «none» Trailing semicolon always added if Predefinição:Parameter specified.
type «none»
  • user:
  • score:
  • math:
  • «none»:
file
if type ∈ {user,score,math}
Must be specified (syntax error if not) when Predefinição:Parameter is «none»
link «none» Only effective when Predefinição:Parameter is «none»
alt «none» Only effective when Predefinição:Parameter is «none»
page «none» Only effective when Predefinição:Parameter is «none»
imgclass «none» Only effective when Predefinição:Parameter is «none»; when present this CSS class is applied in addition to "freedImg" to <img>
caption «none»
tdisplay block Only applied if Predefinição:Parameter present.
talign center Only applied if Predefinição:Parameter present.
tstyle «none» Only applied if Predefinição:Parameter present; when Predefinição:Parameter is also present a trailing semicolon is always added.
tmright 0.00em Only applied if Predefinição:Parameter present.
tmleft 0.00em Only applied if Predefinição:Parameter present.
indent 0.00em Only applied if Predefinição:Parameter present.
for the Image itself
Primary DIV container
Image Caption

Examples

Example 1: Simple inline image

When used with default parameters, the image is inlined into the surrounding paragraph.

text before{{FIS
 | file     = Iceberg.jpg
 | width    = 100px
 | alt      = WS Iceberg
 | link     = w:Iceberg{{!}}Iceberg article at Wikipedia
}}text after

text beforePredefinição:FIStext after

Example 2: Simple inline image, with caption

text before{{FIS
 | file     = Iceberg.jpg
 | width    = 100px
 | caption  = An iceberg
}}text after

text beforePredefinição:FIStext after

Example 3: Musical Score

text before{{FIS
 | type  = user
 | width = 50%
 | file  = <score>{ \clef bass \time 3/4 g,4 (b,4 [d4 f4 a4]) r4 \bar "|." }</score>
}}text after

text beforePredefinição:FIStext after

Example 4: Mathematical Equation

Predefinição:Smaller

text before{{FIS
 | type  = math
 | width = 25%
 | file  = <math>sin x = {e^{ix} - e^{-ix} \over 2i}</math>
}}text after

text beforePredefinição:FIStext after

Example 5: Floating centred image

This is a very common use of the template: to provide an image that "floats" in the centre of the page, but does not cause a hard paragraph break at the image location.

For this to work, Predefinição:Parameter must be set to "left" or "right", and the Predefinição:Parameter, Predefinição:Parameter and Predefinição:Parameter must sum to 100%, otherwise this template will not take up a full width, and some surrounding text may creep into the same line (as in example 1).

{{FIS
 | file     = Iceberg.jpg
 | width    = 20%
 | margin-right=40%
 | margin-left=40%
 | float    = right
 | alt      = WS Iceberg
 | link     = w:Iceberg
 | caption  = {{Sc|An Iceberg. Plaintiff alleges that she participated in a group training program conducted by Lifespring in Philadelphia, Pennsylvania during April 1981.}}
}}

Plaintiff alleges that she participated in a group training program conducted by Lifespring in Philadelphia, Pennsylvania during April 1981. She contends that she was subjected to psychological manipulation resulting in psychological and emotional injuries. She contends that Lifespring, [FIS here!] Predefinição:FISunder whose auspices the program was conducted, is liable to her essentially in tort. She further contends that Hanley is individually liable to her because he controlled the training offered by Lifespring. She contends that he was personally involved in the development and operation of the training program. Service of the complaint was made upon Hanley by registered mail. He states in an affidavit that he lacks any personal contact with Pennsylvania other than through his affiliation with Lifespring in his corporate capacity. Plaintiff argues that such contact is sufficient.

Example 6: Single page of a multi-page document

{{FIS
 | file     = Character of Renaissance Architecture.djvu
 | width    = 15%
 | alt      = Plate III: Cvpola Di S Pietro
 | link     = Character of Renaissance Architecture
 | page     = 91
}}

Predefinição:FIS

See also

  • Predefinição:Tl: block-based equivalent. Note: this template always breaks a paragraph.