Jump to content

Template:Image frame/doc

From p1gwars
Revision as of 21:22, 4 November 2025 by Rosie (talk | contribs) (Created page with "{{Documentation subpage}} <!-- Add categories where indicated at the bottom of this page --> == Usage == <templatedata>{ "params": { "align": { "label": "Alignment", "description": "\"left\" and \"right\" float the image to that side. \"center\" centres the image, and \"none\" left-aligns it without floating.", "type": "string", "default": "right", "suggestedvalues": [ "left", "center", "right", "none" ] }, "width": { "label":...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Template:Documentation subpage

Usage

<templatedata>{ "params": { "align": { "label": "Alignment", "description": "\"left\" and \"right\" float the image to that side. \"center\" centres the image, and \"none\" left-aligns it without floating.", "type": "string", "default": "right", "suggestedvalues": [ "left", "center", "right", "none" ] }, "width": { "label": "Width", "description": "The width of the image within the frame, in pixels (though do not add \"px\" to the width e.g., use width=175 and not width=175px).", "type": "number", "default": "Automatic, based on content", "suggested": true }, "content": { "label": "Content", "description": "Content of the main section (generally images).", "type": "content", "required": true }, "link": { "label": "Link", "description": "Link for the \"Enlarge\" link in the caption.", "type": "wiki-page-name" }, "link_text": { "label": "Alternative link text", "description": "Alternative text used for the link for the \"Enlarge\" link in the caption, usually displayed as tooltip.", "type": "string" }, "linkoverride": { "label": "Link override", "description": "Completely replaces the 'info' link.", "type": "line" }, "caption": { "label": "Caption", "type": "content" } }, "description": "This template creates a frame like those surrounding images. This template can be used to put two or more images into a frame together.", "paramOrder": [ "content", "width", "align", "link", "link_text", "linkoverride", "caption" ] }</templatedata>