愿飞龙常入你梦乡!
  • 欢迎来到DragonWiki - 关于龙的百科全书!
  • 对百科编辑一脸懵逼?帮助:快速入门带您快速熟悉百科编辑!
  • DragonWiki委员会企鹅群:930677471
  • 我们正在招募百科编辑者,有兴趣的编辑者可以进群了解

微件:SVG:修订间差异

来自DragonWiki的龙百科全书!转载请标注来源页面的网页链接,并声明引自DragonWiki(翼爪维基)。内容不可商用。
(建立内容为“<noinclude>__NOTOC__ This widget allows you to embed a '''[https://www.w3.org/TR/SVG11/ Scalable Vector Graphics]''' image (img tag using inline markup encoded fo…”的新页面)
 
无编辑摘要
第3行: 第3行:


Written by [[User:DSquirrelGM|DSquirrelGM]].
Written by [[User:DSquirrelGM|DSquirrelGM]].
==Copy to your site==
To use this widget on your site, just install [https://www.mediawiki.org/wiki/Extension:Widgets MediaWiki Widgets extension] and copy the [{{fullurl:{{FULLPAGENAME}}|action=edit}} full source code] of this page to your wiki as page '''{{FULLPAGENAME}}'''.


=Usage=
=Usage=

2021年8月4日 (三) 18:09的版本

This widget allows you to embed a Scalable Vector Graphics image (img tag using inline markup encoded for data url scheme) on your wiki page.

Written by DSquirrelGM.

Usage

Refer to the SVG specification for the use of these attributes: width, height, viewBox, preserveAspectRatio, x, y, version

width   horizontal image size   100%
height   vertical image size   100%
version   specification version   1.1
x   horizontal origin (ignored on top level element)   0
y   vertical origin (ignored on top level element)   0
preserveAspectRatio   Aspect ratio adjustment   xMidYMid meet
viewBox   viewport extents   0 0 100% 100%
content   SVG markup to be embedded
url   (set a value to use url() scheme instead of img tag)