打开/关闭菜单
打开/关闭外观设置菜单
打开/关闭个人菜单
未登录
未登录用户的IP地址会在进行任意编辑后公开展示。

帮助:需要配置的格式:修订间差异

来自陋室
删除的内容 添加的内容
Maintenance script留言 | 贡献
补充各格式模块说明
XP-jia留言 | 贡献
syntaxhighlight:​ 修改语法
 
(未显示3个用户的9个中间版本)
第1行: 第1行:
== 重定向 (Redirect) ==
== 重定向 (Redirect) ==
用于将页面指向其它页面。


示例语法:
* [[Redirect Test]]
<syntaxhighlight lang="wikitext">
#REDIRECT [[目标页面]]
</syntaxhighlight>


效果说明:保存后访问该页会自动跳转到目标页面。
== timeline ==
== timeline ==
使用 EasyTimeline 或 <nowiki><timeline></nowiki> 语法展示事件。


=== 示例(可视化时间线) ===
使用 EasyTimeline 或 <timeline> 语法展示事件。


=== 苏联领导人 ===
<timeline>
<timeline>
# All measures are in pixels
# All measures are in pixels
第38行: 第41行:
</timeline>
</timeline>


=== 参见 ===
* https://www.mediawiki.org/wiki/Extension:EasyTimeline
* https://www.mediawiki.org/wiki/Extension:EasyTimeline
== ImageMap ==
== ImageMap ==

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


=== 示例 ===

=== 最后的晚餐 ===
<imagemap>
<imagemap>
File:The Last Supper - Leonardo Da Vinci - High Resolution 32x16.jpg|thumb|center|500px|alt=''The Last Supper'' by Leonardo da Vinci - Clickable Image|点击图片中的人物会导致浏览器加载相应的文章
File:The Last Supper - Leonardo Da Vinci - High Resolution 32x16.jpg|thumb|center|500px|alt=''The Last Supper'' by Leonardo da Vinci - Clickable Image|Image map example. Clicking on a person in the picture causes the browser to load the appropriate article.


poly 550 2550 750 2400 1150 2300 1150 2150 1200 2075 1500 2125 1525 2300 1350 2800 1450 3000 1700 3300 1300 3475 650 3500 550 3300 450 3000 [[w:Bartholomew the Apostle|Bartholomew]]
poly 550 2550 750 2400 1150 2300 1150 2150 1200 2075 1500 2125 1525 2300 1350 2800 1450 3000 1700 3300 1300 3475 650 3500 550 3300 450 3000 [[w:Bartholomew the Apostle|Bartholomew]]
第53行: 第55行:
poly 2450 2575 2775 2500 2700 2650 2800 2700 2600 3000 2600 3250 2300 3250 2200 3200 2300 3000 [[w:Saint Peter|Peter]]
poly 2450 2575 2775 2500 2700 2650 2800 2700 2600 3000 2600 3250 2300 3250 2200 3200 2300 3000 [[w:Saint Peter|Peter]]
poly 2750 2500 2950 2400 3125 2600 3175 2700 3300 2850 3700 3200 3750 3200 3650 3350 3400 3200 3000 3350 2600 3325 2750 2800 2900 2700 2700 2650 [[w:Judas Iscariot|Judas]]
poly 2750 2500 2950 2400 3125 2600 3175 2700 3300 2850 3700 3200 3750 3200 3650 3350 3400 3200 3000 3350 2600 3325 2750 2800 2900 2700 2700 2650 [[w:Judas Iscariot|Judas]]
poly 3000 2350 3300 2350 3350 2660 3560 2600 3565 2690 3250 2800 3125 2575 [[w:Saint Peter|Peter]]
poly 3000 2350 3300 2350 3350 2660 3560 2600 3565 2690 3250 2800 3125 2575 [[w:Saint Peter|Peter]]
poly 3332 2338 3528 2240 4284 3024 4074 3332 3864 3290 3780 3150 3668 3192 3598 3024 3374 2870 3388 2772 3542 2800 3668 2702 3542 2590 3430 2604 3350 2600 3300 2500[[w:John the Apostle|John]]
poly 3332 2338 3528 2240 4284 3024 4074 3332 3864 3290 3780 3150 3668 3192 3598 3024 3374 2870 3388 2772 3542 2800 3668 2702 3542 2590 3430 2604 3350 2600 3300 2500[[w:John the Apostle|John]]
poly 4775 2184 4915 2128 5055 2212 5083 2352 5111 2464 5181 2604 5307 2744 5573 3052 5615 3192 5657 3290 5573 3402 5461 3332 5335 3248 4495 3248 4439 3388 4243 3388 4075 3360 4173 3136 4327 3010 4509 2730 4663 2520 4733 2394 [[w:Jesus]]
poly 4775 2184 4915 2128 5055 2212 5083 2352 5111 2464 5181 2604 5307 2744 5573 3052 5615 3192 5657 3290 5573 3402 5461 3332 5335 3248 4495 3248 4439 3388 4243 3388 4075 3360 4173 3136 4327 3010 4509 2730 4663 2520 4733 2394 [[w:Jesus]]
第70行: 第72行:
* https://commons.wikimedia.org/wiki/Commons:Image_map_resources/zh
* https://commons.wikimedia.org/wiki/Commons:Image_map_resources/zh
* https://en.wikipedia.org/wiki/Category:Wikipedia_image_maps
* https://en.wikipedia.org/wiki/Category:Wikipedia_image_maps

* https://meta.wikimedia.org/wiki/User:Dapete/ImageMapEdit#English
* https://meta.wikimedia.org/wiki/User:Dapete/ImageMapEdit#English
* https://www.maschek.hu/imagemap/

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

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


示例语法:
<syntaxhighlight lang="wikitext">
<inputbox>
type=search
arialabel=Search the Wiki
</inputbox>
</syntaxhighlight>


示例效果:
<inputbox>
<inputbox>
type=search
type=search
第83行: 第93行:
</inputbox>
</inputbox>


=== 参见 ===
* https://www.mediawiki.org/wiki/Extension:InputBox
* https://www.mediawiki.org/wiki/Extension:InputBox
== syntaxhighlight ==
用于高亮展示代码。


示例语法:
== mapframe ==


<nowiki>
Kartographer 扩展根据 OpenStreetMap 提供交互地图,适合展示地理位置。
<syntaxhighlight lang="bash">
php -v
mysql --version
</syntaxhighlight>
</nowiki>


示例效果:
<syntaxhighlight lang="bash">
php -v
mysql --version
</syntaxhighlight>

== mapframe ==
Kartographer 扩展提供交互地图。当前站点未接入 Kartotherian 兼容地图服务时,地图可能无法显示或仅显示占位。

示例语法:
<syntaxhighlight lang="wikitext">
<mapframe latitude="39.9042" longitude="116.4074" zoom="12" width="600" height="400">
</mapframe>
</syntaxhighlight>


示例效果(若地图未显示,请检查 Kartographer 地图服务配置):
=== 北京市地图 ===
<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">
</mapframe>
</mapframe>
第96行: 第128行:
=== 参见 ===
=== 参见 ===
* 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 扩展支持 LaTeX 与化学符号,适合数学与科学内容展示。


=== 示例(公式) ===

=== 根的判别式(math) ===
<math>
<math>
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a}
</math>
</math>


=== 化学式(chem) ===
=== 示例(化学式 ===
<chem>Hg^2+ ->[I-] HgI2 ->[I-] {[Hg^{II}I4]^2-}</chem>
<chem>Hg^2+ ->[I-] HgI2 ->[I-] {[Hg^{II}I4]^2-}</chem>


=== 参见 ===
=== 参见 ===
* https://www.mediawiki.org/wiki/Extension:Math
* https://www.mediawiki.org/wiki/Extension:Math

== score ==
== score ==
Score 扩展渲染乐谱,需配套 LilyPond 与 ffmpeg。


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


=== 义勇军进行曲 ===
<score vorbis="1">
<score vorbis="1">


第161行: 第189行:


=== 参见 ===
=== 参见 ===
* [https://www.mediawiki.org/wiki/Extension:Score Extension:Score]
* https://www.mediawiki.org/wiki/Extension:Score
* [https://lilypond.org/doc/v2.24/Documentation/web/manuals LilyPond 2.24.4 手册]
* https://lilypond.org/doc/v2.24/Documentation/web/manuals
* [https://zh.wikipedia.org/wiki/义勇军进行曲 义勇军进行曲 - 维基百科,自由的百科全书]

== hiero ==
== hiero ==

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


示例语法:
<syntaxhighlight lang="wikitext">
<hiero>A1</hiero>
</syntaxhighlight>


示例效果:
<hiero>A1</hiero>
<hiero>A1</hiero>


=== 参见 ===
* https://www.mediawiki.org/wiki/Extension:WikiHiero
* https://www.mediawiki.org/wiki/Extension:WikiHiero

== PdfHandler ==
== PdfHandler ==

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


示例语法:
<syntaxhighlight lang="wikitext">
[[File:EXCEL 2016 QUICK START GUIDE.PDF|thumb|500px|EXCEL 2016 QUICK START GUIDE.PDF]]
</syntaxhighlight>


示例效果:
[[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]]


=== 参见 ===
* https://www.mediawiki.org/wiki/Extension:PdfHandler
* https://www.mediawiki.org/wiki/Extension:PdfHandler

== TimedMediaHandler ==
== TimedMediaHandler ==

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


以下示例使用维基共享资源(Commons)中的公共文件,理论上可直接显示:


示例语法:
[[File:Big Buck Bunny 4K.webm|300px|thumb|...]]
<syntaxhighlight lang="wikitext">
[[File:example.ogg|thumb|...]]
[[File:example.ogg|30px]]
[[File:Example.ogg|thumb|音频示例(Commons)]]
[[File:example.ogg]]
[[File:Example.ogg|30px]]
[[File:Big Buck Bunny - closing credits.webm|300px|thumb|视频示例(Commons)]]
</syntaxhighlight>


示例效果:
* https://www.mediawiki.org/wiki/Extension:TimedMediaHandler
[[File:Example.ogg|thumb|音频示例(Commons)]]


[[File:Big Buck Bunny - closing credits.webm|300px|thumb|视频示例(Commons)]]
{{Template:站点帮助文档}}

=== 参见 ===
* https://www.mediawiki.org/wiki/Extension:TimedMediaHandler