跳转到内容

Help:扩展语法与格式示例:修订间差异

来自陋室
删除的内容 添加的内容
Maintenance script​(留言 | 贡献)
校对修改:修复强调文本前后多余空格、不一致的空格等问题
Maintenance script​(留言 | 贡献)
小 补充各格式模块说明
第4行: 第4行:


== timeline ==
== timeline ==

使用 EasyTimeline 或 <timeline> 语法展示事件。


=== 苏联领导人 ===
=== 苏联领导人 ===
<timeline>
<timeline>
第36行: 第40行:
* https://www.mediawiki.org/wiki/Extension:EasyTimeline
* https://www.mediawiki.org/wiki/Extension:EasyTimeline
== ImageMap ==
== ImageMap ==

ImageMap 扩展允许在图片中定义可点区域,适合交互式说明。


=== 最后的晚餐 ===
=== 最后的晚餐 ===
<imagemap>
<imagemap>
第66行: 第74行:


* https://www.maschek.hu/imagemap/* https://www.image-maps.com/* https://summerstyle.github.io/summer/* https://summerstyle.github.io/summer/== inputbox ==
* https://www.maschek.hu/imagemap/* https://www.image-maps.com/* https://summerstyle.github.io/summer/* https://summerstyle.github.io/summer/== inputbox ==

InputBox 扩展可以生成搜索或创建界面,便于用户快速跳转。


<inputbox>
<inputbox>
type=search
type=search
第74行: 第86行:


== mapframe ==
== mapframe ==

Kartographer 扩展根据 OpenStreetMap 提供交互地图,适合展示地理位置。


=== 北京市地图 ===
=== 北京市地图 ===
<mapframe latitude="39.9042" longitude="116.4074" zoom="12" width="600" height="400">
<mapframe latitude="39.9042" longitude="116.4074" zoom="12" width="600" height="400">
第81行: 第97行:
* https://www.mediawiki.org/wiki/Extension:Kartographer
* https://www.mediawiki.org/wiki/Extension:Kartographer
* https://www.openstreetmap.org/== math ==
* https://www.openstreetmap.org/== math ==

Math 扩展支持 LaTeX 与化学符号,适合数学与科学内容展示。


=== 根的判别式(math) ===
=== 根的判别式(math) ===
<math>
<math>
第93行: 第113行:


== score ==
== score ==

Score 扩展渲染乐谱,需配套 LilyPond 和 ffmpeg。


=== 义勇军进行曲 ===
=== 义勇军进行曲 ===
<score vorbis="1">
<score vorbis="1">
第142行: 第166行:


== hiero ==
== hiero ==

WikiHiero 支持古埃及象形文字排版。


<hiero>A1</hiero>
<hiero>A1</hiero>


第147行: 第175行:


== PdfHandler ==
== PdfHandler ==

PdfHandler 扩展提供 PDF 预览与嵌入,适合文档展示。


[[File:EXCEL 2016 QUICK START GUIDE.PDF|thumb|500px|EXCEL 2016 QUICK START GUIDE.PDF]]
[[File:EXCEL 2016 QUICK START GUIDE.PDF|thumb|500px|EXCEL 2016 QUICK START GUIDE.PDF]]


第152行: 第184行:


== TimedMediaHandler ==
== TimedMediaHandler ==

TimedMediaHandler 和相关工具链支持音视频上传与预览。


[[File:Big Buck Bunny 4K.webm|300px|thumb|...]]
[[File:Big Buck Bunny 4K.webm|300px|thumb|...]]
[[File:example.ogg|thumb|...]]
[[File:example.ogg|thumb|...]]

2025年12月26日 (五) 21:13的版本

重定向 (Redirect)

timeline

使用 EasyTimeline 或

无法编译EasyTimeline输入:

EasyTimeline 1.90


Timeline generation failed: 3 errors found
Line 1: 语法展示事件。

- New command expected instead of data line (= line starting with spaces). Data line(s) ignored.

 



Line 3: === 苏联领导人 ===

- Invalid statement. Multiple '=' found.


Line 4: <timeline>

- Invalid statement. No '=' found.


ImageMap

ImageMap 扩展允许在图片中定义可点区域,适合交互式说明。


最后的晚餐

The Last Supper by Leonardo da Vinci - Clickable ImageBartholomewJames MinorAndrewPeterJudasPeterJohnw:JesusThomasJames GreaterPhilipMatthewJudeSimon
点击图片中的人物会导致浏览器加载相应的文章

参见

InputBox 扩展可以生成搜索或创建界面,便于用户快速跳转。


mapframe

Kartographer 扩展根据 OpenStreetMap 提供交互地图,适合展示地理位置。


北京市地图

地图

参见

Math 扩展支持 LaTeX 与化学符号,适合数学与科学内容展示。


根的判别式(math)

x=−b±b2−4ac2a

化学式(chem)

HgA2+→IA−HgIA2→IA−[HgIII4]2-

参见

score

Score 扩展渲染乐谱,需配套 LilyPond 和 ffmpeg。


义勇军进行曲

找不到Soundfont:/usr/share/sounds/sf2/FluidR3_GM.sf2不存在。请确保$wgScoreSoundfont正确设置。

参见

hiero

WikiHiero 支持古埃及象形文字排版。


A1

PdfHandler

PdfHandler 扩展提供 PDF 预览与嵌入,适合文档展示。


EXCEL 2016 QUICK START GUIDE.PDF

TimedMediaHandler

TimedMediaHandler 和相关工具链支持音视频上传与预览。


...
Error missing media source
...

Error missing media source Error missing media source