帮助:需要配置的格式:修订间差异
来自陋室
更多操作
删除的内容 添加的内容
添加注释 |
小 →syntaxhighlight: 修改语法 |
||
| (未显示3个用户的20个中间版本) | |||
| 第1行: | 第1行: | ||
== |
== 重定向 (Redirect) == |
||
用于将页面指向其它页面。 |
|||
=== 义勇军进行曲 === |
|||
<score vorbis="1"> |
|||
示例语法: |
|||
\relative g' { |
|||
<syntaxhighlight lang="wikitext"> |
|||
#REDIRECT [[目标页面]] |
|||
</syntaxhighlight> |
|||
效果说明:保存后访问该页会自动跳转到目标页面。 |
|||
\key g \major \time 2/4 |
|||
== timeline == |
|||
使用 EasyTimeline 或 <nowiki><timeline></nowiki> 语法展示事件。 |
|||
g8. b16 d8 d8 \bar "|" e4 d4 \bar "|" b8. g16 \times 2/3 {d'8 d d} \bar "|" b4 g4 \bar "|" \times 2/3 {d8 d d} \times 2/3 {d8 d d} \bar "|" g4 r8 d8 \bar "|" \break |
|||
g4. g8 \bar "|" g8. g16 d8 e16 fis16 \bar "|" g4 g4 \bar "|" r8 b8 g8 a16 b16 \bar "|" d4 d4 \bar "|" \break |
|||
b8. b16 g8. b16 \bar "|" d8. b16 a4 \bar "|" a2 \bar "|" e'4^> d4^> \bar "|" a4^> b4^> \bar "|" \break |
|||
d8^> b8^> r8 d8 \bar "|" b8 a16 b16 g4 \bar "|" b4 r4 \bar "|" d,8. e16 g8 g8 \bar "|" b8. b16 d8 d8 \bar "|" \break |
|||
a8 a16 a16 e4 \bar "|" a4. d,8 \bar "|" ^\< g4. g8 \bar "|" b4. b8 \! \bar "|" d2 \bar "|" \break |
|||
g,8. b16 d8 d8 \bar "|" e4 d4 \bar "|" b8. g16 \times 2/3 {d'8 d d} \bar "|" b8 r8 g8 r8 \bar "|" d4^> g4^> \bar "|" \break |
|||
b8. g16 \times 2/3 {d'8 d d} \bar "|" b8 r8 g8 r8 \bar "|" d4^> g4^> \bar "|" d4^> g4^> \bar "|" d4^> g4^> \bar "|" g4^> r4 \bar "|." |
|||
} |
|||
\addlyrics { |
|||
起 |
|||
来! 不 愿 做 奴 隶 的 人 们! 把 我 们 的 血 肉, |
|||
筑 成 我 们 新 的 长 城! 中 华 民 族 |
|||
到 了 最 危 险 的 时 候, 每 个 人 被 迫 着 发 出 |
|||
=== 示例(可视化时间线) === |
|||
最 后 的 吼 声。 起 来! 起 来! 起 来! |
|||
我 们 万 众 一 心, 冒 着 敌 人 的 炮 火 前 进! |
|||
冒 着 敌 人 的 炮 火 前 进! 前 进! 前 进! 进! |
|||
} |
|||
</score> |
|||
=== 参见 === |
|||
* [https://www.mediawiki.org/wiki/Extension:Score Extension:Score] |
|||
* [https://lilypond.org/doc/v2.24/Documentation/web/manuals LilyPond 2.24.4 手册] |
|||
* [https://zh.wikipedia.org/wiki/义勇军进行曲 义勇军进行曲 - 维基百科,自由的百科全书] |
|||
== timeline == |
|||
=== 苏联领导人 === |
|||
<timeline> |
<timeline> |
||
# All measures are in pixels |
# All measures are in pixels |
||
| 第82行: | 第44行: | ||
* https://www.mediawiki.org/wiki/Extension:EasyTimeline |
* https://www.mediawiki.org/wiki/Extension:EasyTimeline |
||
== 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]] |
||
| 第91行: | 第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]] |
||
| 第108行: | 第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.maschek.hu/imagemap/ |
||
* https://www.image-maps.com/ |
* https://www.image-maps.com/ |
||
* https://summerstyle.github.io/summer/ |
* https://summerstyle.github.io/summer/ |
||
== inputbox == |
|||
InputBox 扩展可以生成搜索或创建界面,便于用户快速跳转。 |
|||
示例语法: |
|||
* https://summerstyle.github.io/summer/ |
|||
<syntaxhighlight lang="wikitext"> |
|||
<inputbox> |
|||
type=search |
|||
arialabel=Search the Wiki |
|||
</inputbox> |
|||
</syntaxhighlight> |
|||
示例效果: |
|||
== inputbox == |
|||
<inputbox> |
<inputbox> |
||
type=search |
type=search |
||
| 第123行: | 第93行: | ||
</inputbox> |
</inputbox> |
||
=== 参见 === |
|||
* https://www.mediawiki.org/wiki/Extension:InputBox |
* https://www.mediawiki.org/wiki/Extension:InputBox |
||
== syntaxhighlight == |
|||
用于高亮展示代码。 |
|||
示例语法: |
|||
<nowiki> |
|||
<syntaxhighlight lang="bash"> |
|||
php -v |
|||
mysql --version |
|||
</syntaxhighlight> |
|||
</nowiki> |
|||
示例效果: |
|||
<syntaxhighlight lang="bash"> |
|||
php -v |
|||
mysql --version |
|||
</syntaxhighlight> |
|||
== mapframe == |
== mapframe == |
||
Kartographer 扩展提供交互地图。当前站点未接入 Kartotherian 兼容地图服务时,地图可能无法显示或仅显示占位。 |
|||
=== 北京市地图 === |
|||
示例语法: |
|||
<syntaxhighlight lang="wikitext"> |
|||
<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> |
||
</syntaxhighlight> |
|||
示例效果(若地图未显示,请检查 Kartographer 地图服务配置): |
|||
<mapframe latitude="39.9042" longitude="116.4074" zoom="12" width="600" height="400"> |
|||
</mapframe> |
|||
=== 参见 === |
=== 参见 === |
||
* https://www.mediawiki.org/wiki/Extension:Kartographer |
* https://www.mediawiki.org/wiki/Extension:Kartographer |
||
* https://www.openstreetmap.org/ |
* https://www.openstreetmap.org/ |
||
== math == |
|||
Math 扩展支持 LaTeX 与化学符号,适合数学与科学内容展示。 |
|||
=== 示例(公式) === |
|||
<math> |
|||
x = \frac{-b \pm \sqrt{b^2 - 4ac}}{2a} |
|||
</math> |
|||
=== 示例(化学式) === |
|||
<chem>Hg^2+ ->[I-] HgI2 ->[I-] {[Hg^{II}I4]^2-}</chem> |
|||
=== 参见 === |
|||
* https://www.mediawiki.org/wiki/Extension:Math |
|||
== score == |
|||
Score 扩展渲染乐谱,需配套 LilyPond 与 ffmpeg。 |
|||
=== 示例 === |
|||
<score vorbis="1"> |
|||
\relative g' { |
|||
\key g \major \time 2/4 |
|||
g8. b16 d8 d8 \bar "|" e4 d4 \bar "|" b8. g16 \times 2/3 {d'8 d d} \bar "|" b4 g4 \bar "|" \times 2/3 {d8 d d} \times 2/3 {d8 d d} \bar "|" g4 r8 d8 \bar "|" \break |
|||
g4. g8 \bar "|" g8. g16 d8 e16 fis16 \bar "|" g4 g4 \bar "|" r8 b8 g8 a16 b16 \bar "|" d4 d4 \bar "|" \break |
|||
b8. b16 g8. b16 \bar "|" d8. b16 a4 \bar "|" a2 \bar "|" e'4^> d4^> \bar "|" a4^> b4^> \bar "|" \break |
|||
d8^> b8^> r8 d8 \bar "|" b8 a16 b16 g4 \bar "|" b4 r4 \bar "|" d,8. e16 g8 g8 \bar "|" b8. b16 d8 d8 \bar "|" \break |
|||
a8 a16 a16 e4 \bar "|" a4. d,8 \bar "|" ^\< g4. g8 \bar "|" b4. b8 \! \bar "|" d2 \bar "|" \break |
|||
g,8. b16 d8 d8 \bar "|" e4 d4 \bar "|" b8. g16 \times 2/3 {d'8 d d} \bar "|" b8 r8 g8 r8 \bar "|" d4^> g4^> \bar "|" \break |
|||
b8. g16 \times 2/3 {d'8 d d} \bar "|" b8 r8 g8 r8 \bar "|" d4^> g4^> \bar "|" d4^> g4^> \bar "|" d4^> g4^> \bar "|" g4^> r4 \bar "|." |
|||
} |
|||
\addlyrics { |
|||
起 |
|||
来! 不 愿 做 奴 隶 的 人 们! 把 我 们 的 血 肉, |
|||
筑 成 我 们 新 的 长 城! 中 华 民 族 |
|||
到 了 最 危 险 的 时 候, 每 个 人 被 迫 着 发 出 |
|||
最 后 的 吼 声。 起 来! 起 来! 起 来! |
|||
我 们 万 众 一 心, 冒 着 敌 人 的 炮 火 前 进! |
|||
冒 着 敌 人 的 炮 火 前 进! 前 进! 前 进! 进! |
|||
} |
|||
</score> |
|||
=== 参见 === |
|||
* https://www.mediawiki.org/wiki/Extension:Score |
|||
* https://lilypond.org/doc/v2.24/Documentation/web/manuals |
|||
== hiero == |
|||
WikiHiero 支持古埃及象形文字排版。 |
|||
示例语法: |
|||
<syntaxhighlight lang="wikitext"> |
|||
<hiero>A1</hiero> |
|||
</syntaxhighlight> |
|||
示例效果: |
|||
<hiero>A1</hiero> |
|||
=== 参见 === |
|||
* https://www.mediawiki.org/wiki/Extension:WikiHiero |
|||
== PdfHandler == |
|||
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]] |
|||
=== 参见 === |
|||
* https://www.mediawiki.org/wiki/Extension:PdfHandler |
|||
== TimedMediaHandler == |
|||
TimedMediaHandler 和相关工具链支持音视频上传与预览。 |
|||
以下示例使用维基共享资源(Commons)中的公共文件,理论上可直接显示: |
|||
示例语法: |
|||
<syntaxhighlight lang="wikitext"> |
|||
[[File:Example.ogg|thumb|音频示例(Commons)]] |
|||
[[File:Example.ogg|30px]] |
|||
[[File:Big Buck Bunny - closing credits.webm|300px|thumb|视频示例(Commons)]] |
|||
</syntaxhighlight> |
|||
示例效果: |
|||
[[File:Example.ogg|thumb|音频示例(Commons)]] |
|||
[[File:Big Buck Bunny - closing credits.webm|300px|thumb|视频示例(Commons)]] |
|||
=== 参见 === |
|||
* https://www.mediawiki.org/wiki/Extension:TimedMediaHandler |
|||
2026年1月16日 (五) 13:15的最新版本
重定向 (Redirect)
用于将页面指向其它页面。
示例语法:
#REDIRECT [[目标页面]]
效果说明:保存后访问该页会自动跳转到目标页面。
timeline
使用 EasyTimeline 或 <timeline> 语法展示事件。
示例(可视化时间线)

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

参见
- https://www.mediawiki.org/wiki/Extension:ImageMap
- https://meta.wikimedia.org/wiki/ImageMapEdit_Howto
- https://www.familysearch.org/en/wiki/Help:Image_maps
- https://commons.wikimedia.org/wiki/Commons:Image_map_resources/zh
- https://en.wikipedia.org/wiki/Category:Wikipedia_image_maps
- https://meta.wikimedia.org/wiki/User:Dapete/ImageMapEdit#English
- https://www.maschek.hu/imagemap/
- https://www.image-maps.com/
- https://summerstyle.github.io/summer/
inputbox
InputBox 扩展可以生成搜索或创建界面,便于用户快速跳转。
示例语法:
<inputbox>
type=search
arialabel=Search the Wiki
</inputbox>
示例效果:
参见
syntaxhighlight
用于高亮展示代码。
示例语法:
<syntaxhighlight lang="bash"> php -v mysql --version </syntaxhighlight>
示例效果:
php -v
mysql --version
mapframe
Kartographer 扩展提供交互地图。当前站点未接入 Kartotherian 兼容地图服务时,地图可能无法显示或仅显示占位。
示例语法:
<mapframe latitude="39.9042" longitude="116.4074" zoom="12" width="600" height="400">
</mapframe>
示例效果(若地图未显示,请检查 Kartographer 地图服务配置):
参见
math
Math 扩展支持 LaTeX 与化学符号,适合数学与科学内容展示。
示例(公式)
示例(化学式)
参见
score
Score 扩展渲染乐谱,需配套 LilyPond 与 ffmpeg。
示例

参见
- https://www.mediawiki.org/wiki/Extension:Score
- https://lilypond.org/doc/v2.24/Documentation/web/manuals
hiero
WikiHiero 支持古埃及象形文字排版。
示例语法:
<hiero>A1</hiero>
示例效果:
| |
参见
PdfHandler
PdfHandler 扩展提供 PDF 预览与嵌入,适合文档展示。
示例语法:
[[File:EXCEL 2016 QUICK START GUIDE.PDF|thumb|500px|EXCEL 2016 QUICK START GUIDE.PDF]]
示例效果:

参见
TimedMediaHandler
TimedMediaHandler 和相关工具链支持音视频上传与预览。
以下示例使用维基共享资源(Commons)中的公共文件,理论上可直接显示:
示例语法:
[[File:Example.ogg|thumb|音频示例(Commons)]]
[[File:Example.ogg|30px]]
[[File:Big Buck Bunny - closing credits.webm|300px|thumb|视频示例(Commons)]]
示例效果:
