帮助:需要配置的格式:修订间差异
来自陋室
更多操作
删除的内容 添加的内容
Maintenance script(留言 | 贡献) 补充本站已安装扩展与解析器标签 |
Maintenance script(留言 | 贡献) 补充特殊格式示例并校对现有内容 |
||
| 第1行: | 第1行: | ||
== 重定向 (Redirect) == |
== 重定向 (Redirect) == |
||
用于将页面指向其它页面。 |
|||
示例语法: |
|||
* [[Redirect Test]] |
|||
<syntaxhighlight lang="wikitext"> |
|||
#REDIRECT [[目标页面]] |
|||
</syntaxhighlight> |
|||
效果说明:保存后访问该页会自动跳转到目标页面。 |
|||
== timeline == |
== timeline == |
||
使用 EasyTimeline 或 <nowiki><timeline></nowiki> 语法展示事件。 |
使用 EasyTimeline 或 <nowiki><timeline></nowiki> 语法展示事件。 |
||
=== 示例(可视化时间线) === |
|||
=== 苏联领导人 === |
|||
<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|Image map example. Clicking on a person in the picture causes the browser to load the appropriate article. |
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. |
||
| 第54行: | 第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]] |
||
| 第75行: | 第76行: | ||
* https://www.image-maps.com/ |
* https://www.image-maps.com/ |
||
* https://summerstyle.github.io/summer/ |
* https://summerstyle.github.io/summer/ |
||
== inputbox == |
== inputbox == |
||
InputBox 扩展可以生成搜索或创建界面,便于用户快速跳转。 |
InputBox 扩展可以生成搜索或创建界面,便于用户快速跳转。 |
||
示例语法: |
|||
<syntaxhighlight lang="wikitext"> |
|||
<inputbox> |
|||
type=search |
|||
arialabel=Search the Wiki |
|||
</inputbox> |
|||
</syntaxhighlight> |
|||
示例效果: |
|||
<inputbox> |
<inputbox> |
||
type=search |
type=search |
||
| 第86行: | 第93行: | ||
</inputbox> |
</inputbox> |
||
=== 参见 === |
|||
* https://www.mediawiki.org/wiki/Extension:InputBox |
* https://www.mediawiki.org/wiki/Extension:InputBox |
||
== syntaxhighlight == |
== syntaxhighlight == |
||
用于高亮展示代码。 |
|||
示例语法: |
|||
<syntaxhighlight lang="wikitext"> |
|||
<syntaxhighlight lang="bash"> |
<syntaxhighlight lang="bash"> |
||
php -v |
php -v |
||
mysql --version |
mysql --version |
||
</syntaxhighlight> |
|||
</syntaxhighlight> |
</syntaxhighlight> |
||
示例效果: |
|||
<syntaxhighlight lang="bash"> |
|||
php -v |
|||
mysql --version |
|||
</syntaxhighlight> |
|||
== mapframe == |
== mapframe == |
||
Kartographer 扩展提供交互地图。当前站点未接入 Kartotherian 兼容地图服务时,地图可能无法显示或仅显示占位。 |
|||
示例语法: |
|||
Kartographer 扩展根据 OpenStreetMap 提供交互地图,适合展示地理位置。 |
|||
<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> |
||
| 第108行: | 第127行: | ||
* https://www.mediawiki.org/wiki/Extension:Kartographer |
* https://www.mediawiki.org/wiki/Extension:Kartographer |
||
* https://www.openstreetmap.org/ |
* https://www.openstreetmap.org/ |
||
== math == |
== 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>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"> |
||
| 第174行: | 第187行: | ||
=== 参见 === |
=== 参见 === |
||
* |
* https://www.mediawiki.org/wiki/Extension:Score |
||
* |
* 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),需要 InstantCommons 正常可用且外部访问稳定,否则会显示红链。 |
|||
示例语法: |
|||
[[File:Big Buck Bunny 4K.webm|300px|thumb|...]] |
|||
<syntaxhighlight lang="wikitext"> |
|||
[[File:example.ogg|thumb|...]] |
|||
[[File: |
[[File:Example.ogg|thumb|音频示例]] |
||
[[File: |
[[File:Example.ogg|30px]] |
||
[[File:Big Buck Bunny 4K.webm|300px|thumb|视频示例]] |
|||
</syntaxhighlight> |
|||
示例效果(需本地文件): |
|||
* https://www.mediawiki.org/wiki/Extension:TimedMediaHandler |
|||
<nowiki>[[File:Example.ogg|thumb|音频示例]]</nowiki> |
|||
<nowiki>[[File:Big Buck Bunny 4K.webm|300px|thumb|视频示例]]</nowiki> |
|||
== 本站已安装扩展与解析器标签 == |
|||
以下内容来自 Special:版本,用于校对本站已启用扩展与解析器能力。 |
|||
=== |
=== 参见 === |
||
* https://www.mediawiki.org/wiki/Extension:TimedMediaHandler |
|||
* 3D |
|||
* Abuse Filter |
|||
* AdvancedSearch |
|||
* AntiSpoof |
|||
* ApiFeatureUsage |
|||
* Babel |
|||
* BetaFeatures |
|||
* BounceHandler |
|||
* CampaignEvents |
|||
* Campaigns |
|||
* Cargo |
|||
* CategoryTree |
|||
* CentralNotice |
|||
* CharInsert |
|||
* Chart |
|||
* CheckUser |
|||
* CirrusSearch |
|||
* Cite |
|||
* CiteThisPage |
|||
* Citizen |
|||
* Citoid |
|||
* Clean Changes |
|||
* CodeEditor |
|||
* CodeMirror |
|||
* Collection |
|||
* CommonsMetadata |
|||
* CommunityConfiguration |
|||
* ConfirmEdit |
|||
* Disambiguator |
|||
* DiscussionTools |
|||
* DismissableSiteNotice |
|||
* DynamicPageList3 |
|||
* EasyTimeline |
|||
* Echo |
|||
* Elastica |
|||
* ElectronPdfService |
|||
* EmailAuth |
|||
* EventBus |
|||
* EventLogging |
|||
* EventStreamConfig |
|||
* ExtensionDistributor |
|||
* FeaturedFeeds |
|||
* FileExporter |
|||
* Flow |
|||
* Gadgets |
|||
* Global Usage |
|||
* GlobalBlocking |
|||
* GlobalCssJs |
|||
* GlobalPreferences |
|||
* GlobalUserPage |
|||
* GuidedTour |
|||
* IPInfo |
|||
* IPReputation |
|||
* ImageMap |
|||
* InputBox |
|||
* JsonConfig |
|||
* Kartographer |
|||
* LabeledSectionTransclusion |
|||
* Linter |
|||
* Liquid Threads |
|||
* LoginNotify |
|||
* MassMessage |
|||
* Math |
|||
* MediaModeration |
|||
* MetricsPlatform |
|||
* MinervaNeue |
|||
* MobileApp |
|||
* MobileFrontend |
|||
* MultimediaViewer |
|||
* NavigationTiming |
|||
* NearbyPages |
|||
* Newsletter |
|||
* Nuke |
|||
* OATHAuth |
|||
* OAuth |
|||
* PDF Handler |
|||
* PWA |
|||
* PageImages |
|||
* PageViewInfo |
|||
* PagedTiffHandler |
|||
* ParserFunctions |
|||
* ParserMigration |
|||
* Phonos |
|||
* Poem |
|||
* Popups |
|||
* QuickSurveys |
|||
* Quiz |
|||
* RSS feed |
|||
* ReadingLists |
|||
* RealMe |
|||
* RelatedArticles |
|||
* Replace Text |
|||
* RevisionSlider |
|||
* SandboxLink |
|||
* Score |
|||
* Scribunto |
|||
* SecureLinkFixer |
|||
* SecurePoll |
|||
* ShortDescription |
|||
* SiteMatrix |
|||
* SpamBlacklist |
|||
* SyntaxHighlight |
|||
* TemplateData |
|||
* TemplateSandbox |
|||
* TemplateStyles |
|||
* TemplateWizard |
|||
* TextExtracts |
|||
* Thanks |
|||
* TimedMediaHandler |
|||
* TitleBlacklist |
|||
* TorBlock |
|||
* Translate |
|||
* TranslationNotifications |
|||
* TrustedXFF |
|||
* TwoColConflict |
|||
* UniversalLanguageSelector |
|||
* UrlShortener |
|||
* Vector |
|||
* VipsScaler |
|||
* VisualEditor |
|||
* WebAuthn |
|||
* WikiEditor |
|||
* WikiHiero |
|||
* WikiLove |
|||
* XAnalytics |
|||
* cldr |
|||
=== 解析器扩展标签(33)=== |
|||
以下为已注册的解析器扩展标签(可直接在页面内使用): |
|||
* <<categorytree>> |
|||
* <<ce>> |
|||
* <<charinsert>> |
|||
* <<chem>> |
|||
* <<dpl>> |
|||
* <<dynamicpagelist>> |
|||
* <<gallery>> |
|||
* <<hiero>> |
|||
* <<imagemap>> |
|||
* <<indicator>> |
|||
* <<inputbox>> |
|||
* <<langconvert>> |
|||
* <<languages>> |
|||
* <<mapframe>> |
|||
* <<maplink>> |
|||
* <<math>> |
|||
* <<nowiki>> |
|||
* <<phonos>> |
|||
* <<poem>> |
|||
* <<pre>> |
|||
* <<quiz>> |
|||
* <<ref>> |
|||
* <<references>> |
|||
* <<rss>> |
|||
* <<score>> |
|||
* <<section>> |
|||
* <<source>> |
|||
* <<syntaxhighlight>> |
|||
* <<talkpage>> |
|||
* <<templatedata>> |
|||
* <<templatestyles>> |
|||
* <<thread>> |
|||
* <<timeline>> |
|||
=== 解析器扩展钩子说明 === |
|||
解析器扩展钩子通常以标签形式对外提供功能,上述标签即为本站可用的主要解析器入口。若某扩展提供 ParserFunctions/语义模块等额外解析器特性,请以该扩展文档为准。 |
|||
{{Template:站点帮助文档}} |
|||