跳转到内容

模板:Image frame/doc

来自天灾之下:危险连接资料站
wiki>Krinkle2023年12月13日 (三) 22:54的版本 (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":...")
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)

Usage

This template creates a frame like those surrounding images. This template can be used to put two or more images into a frame together.

模板参数

参数描述类型状态
Contentcontent

Content of the main section (generally images).

内容必需
Widthwidth

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).

默认值
Automatic, based on content
数字推荐
Alignmentalign

"left" and "right" float the image to that side. "center" centres the image, and "none" left-aligns it without floating.

推荐值
left center right none
默认值
right
字符串可选
Linklink

Link for the "Enlarge" link in the caption.

页面名称可选
Alternative link textlink_text

Alternative text used for the link for the "Enlarge" link in the caption, usually displayed as tooltip.

字符串可选
Link overridelinkoverride

Completely replaces the 'info' link.

单行文本可选
Captioncaption

无描述

内容可选