Template:CalloutAnnotation

Revision as of 23:56, 2 May 2017 by Lchrisman (talk | contribs) (A cut at the actual template)


Used to annotate an image, with one or more text blocks on the left, and lines from each text block pointing to items in the image.

Usage

{{CalloutAnnotationBlock|[[image:xyz.png]]|
{{CalloutAnnotation|
Text that appears in a block to the left of the image.|v=100|pt=153,115|path=r-}}
{{CalloutAnnotation|
Text for a second block|v=200|pt=212,215|path=b/}}
}}
  • «text» : The text that appears on the left
  • «v»: The vertical starting position of the block relative to the top of the annotation block.
  • «pt»: the point in image coordinates that the annotation points to.
  • «path»: An optional path.
    • r : center of right edge of text block
    • t : center of top edge of text block
    • b : bottom edge of text block
    • ! : vertical line from current point to y of «pt»
    • - : horizontal line from current point to x of «pt»
    • (120,345) : line to intermediate point in image coordinates
    • (120,*): horizontal line to x=120
    • (*,345): vertical line to y=345
    • / : horizontal line to a point 45-degrees from «pt»
    • U10: Vertical line to 10 pixels up from current
    • D10: Vertical line to 10 pixels down from current
    • R10: Vertical line to 10 pixels right from current
    • L10: Vertical line to 10 pixels left from current.
    After the final point specified in «path», a final line to «pt» is added. If «path» is not specified, or does not begin with t or b, then it starts at r.
    Example of a path: tU50-
    • Start at top of text box, go up 50 pixels, then horizontal, finally a vertical down to «pt».