Difference between revisions of "Template:Tableimage Map/doc"
Jump to navigation
Jump to search
(Error: Must specify an image in the first line) |
|||
(3 intermediate revisions by one other user not shown) | |||
Line 2: | Line 2: | ||
:A template which puts an imagemap inside of a table. To be used with <nowiki>{{Tabletop}}</nowiki> and <nowiki>{{Tablebottom}}</nowiki>. | :A template which puts an imagemap inside of a table. To be used with <nowiki>{{Tabletop}}</nowiki> and <nowiki>{{Tablebottom}}</nowiki>. | ||
;Syntax | ;Syntax | ||
− | :{{T|image|imagewidth|caption|x1|y1|width1|height1|link1}} | + | :{{T|Tableimage Map|image|imagewidth|caption|x1|y1|width1|height1|link1}} |
== Parameters == | == Parameters == | ||
− | {| class=" | + | {| class="wikitable" |
! Parameter | ! Parameter | ||
! Explanation | ! Explanation | ||
Line 35: | Line 35: | ||
:<code><nowiki>{{Tabletop}} | :<code><nowiki>{{Tabletop}} | ||
{{Tableimage Map | {{Tableimage Map | ||
− | | image = | + | | image =Underworld Ascendant-Player Characters.jpg |
| imagewidth = 250 | | imagewidth = 250 | ||
− | | caption = | + | | caption = Player Characters |
| x1 = 1 | | x1 = 1 | ||
| y1 = 1 | | y1 = 1 | ||
| width1 = 248 | | width1 = 248 | ||
| height1 = 248 | | height1 = 248 | ||
− | | link1 = | + | | link1 = Player Characters}} |
{{Tablebottom}}</nowiki></code> gives... | {{Tablebottom}}</nowiki></code> gives... | ||
:{{Tabletop}} | :{{Tabletop}} | ||
{{Tableimage Map | {{Tableimage Map | ||
− | | image = | + | | image =Underworld Ascendant-Player Characters.jpg |
| imagewidth = 250 | | imagewidth = 250 | ||
− | | caption = | + | | caption = Player Characters |
| x1 = 1 | | x1 = 1 | ||
| y1 = 1 | | y1 = 1 | ||
| width1 = 248 | | width1 = 248 | ||
| height1 = 248 | | height1 = 248 | ||
− | | link1 = | + | | link1 = Player Characters}} |
{{Tablebottom}} | {{Tablebottom}} | ||
;See also | ;See also | ||
:[[Template:Tabletop]] | :[[Template:Tabletop]] | ||
:[[Template:Tablerow]] | :[[Template:Tablerow]] | ||
− | |||
− | |||
:[[Template:TablerowOptional]] | :[[Template:TablerowOptional]] | ||
− | |||
− | |||
:[[Template:Tablebottom]] | :[[Template:Tablebottom]] | ||
<includeonly>[[Category:Utility templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude> | <includeonly>[[Category:Utility templates|{{PAGENAME}}]]</includeonly><noinclude>[[Category:Template documentation|{{PAGENAME}}]]</noinclude> |
Latest revision as of 09:28, 13 April 2015
- Description
- A template which puts an imagemap inside of a table. To be used with {{Tabletop}} and {{Tablebottom}}.
- Syntax
- {{Tableimage Map|<image>|<imagewidth>|<caption>|<x1>|<y1>|<width1>|<height1>|<link1>}}
Parameters[edit]
Parameter | Explanation |
---|---|
image (optional if collection is provided) | Name and extension of image. |
imagewidth (optional) | Width of the image. Defaults to 250. |
caption (optional) | Caption for image, if necessary. |
x1 to x12 | X coordinate for links 1 to 12. |
y1 to y12 | Y coordinate for links 1 to 12. |
width1 to width12 | Width for links 1 to 12. |
height1 to height12 | Height for links 1 to 12. |
link1 to link12 | Page name for links 1 to 12. |
- Sample code
{{Tabletop}} {{Tableimage Map | image =Underworld Ascendant-Player Characters.jpg | imagewidth = 250 | caption = Player Characters | x1 = 1 | y1 = 1 | width1 = 248 | height1 = 248 | link1 = Player Characters}} {{Tablebottom}}
gives...
Error: Must specify an image in the first line. |