| 
				   | 
				
| 第1行: | 
第1行: | 
 | MediaWiki 是功能最全面、使用最广泛的Wiki 系统。
  |  | Math is Fun  | 
 |    |  | 
 | == 下载 ==
  |  | 
 | https://www.mediawiki.org/wiki/Download
  |  | 
 |    |  | 
 | == 使用帮助 ==
  |  | 
 | === 为什么不会自动生成目录? ===
  |  | 
 | 标题超过3个的时候,才会自动生成目录。少于3个需要手动添加代码:
  |  | 
 |    |  | 
 | If you have three or fewer headings but want to have a TOC, write either the magic word <nowiki>__FORCETOC__</nowiki> anywhere on the page to make it display at the default location, or <nowiki>__TOC__</nowiki> at the preferred position.
  |  | 
 |    |  | 
 | 参考:
  |  | 
 |    |  | 
 | MediaWiki https://www.mediawiki.org/wiki/Manual:Table_of_contents/zh
  |  | 
 |    |  | 
 |    |  | 
 | === 代码高亮 ===
  |  | 
 |    |  | 
 | 将代码放置在
  |  | 
 | <nowiki>
  |  | 
 | <syntaxhighlight lang="Name"></syntaxhighlight>
  |  | 
 | </nowiki>
  |  | 
 | 标签中,就可以实现代码高亮。<ref>Extension:SyntaxHighlight - MediaWiki https://www.mediawiki.org/wiki/Extension:SyntaxHighlight</ref>
  |  | 
 |    |  | 
 | "Name"是代码类型(需要引号),当前支持的代码列表包括:
  |  | 
 |    |  | 
 | Supported languages — Pygments http://pygments.org/languages/
  |  | 
 |    |  | 
 | 如果没有设置lang属性,在预览或保存时,页面分类位置会出现“有语法高亮错误的页面”分类,普通文本可以设置 lang="bash"来避免显示错误提示 。
  |  | 
 |    |  | 
 | 添加 line 参数可以显示行号,例如:
  |  | 
 |    |  | 
 |  <nowiki>
  |  | 
 | <syntaxhighlight lang="php" line>
  |  | 
 | <?php
  |  | 
 |    echo "Hello, World!";
  |  | 
 | ?>
  |  | 
 | </syntaxhighlight>
  |  | 
 | </nowiki>
  |  | 
 |    |  | 
 | 显示效果为:
  |  | 
 |    |  | 
 | <syntaxhighlight lang="php" line>
  |  | 
 | <?php
  |  | 
 |    echo "Hello, World!";
  |  | 
 | ?>
  |  | 
 | </syntaxhighlight>
  |  | 
 |    |  | 
 | === 禁用wiki格式 ===
  |  | 
 | 将代码放置在
  |  | 
 | <nowiki>
  |  | 
 | <nowiki></nowiki>
  |  | 
 | </nowiki>
  |  | 
 | 标签中,可以禁用wiki格式,保持原格式。
  |  | 
 |    |  | 
 | 但显示时多行文本会合在一行,在<nowiki>标签前空一格可以保持标签内文本的原排版。<ref>Help:格式化文本 - MediaWiki https://www.mediawiki.org/wiki/Help:Formatting/zh</ref>
  |  | 
 |    |  | 
 | === 引用(脚注)使用方法 ===
  |  | 
 |    |  | 
 | 扩展:引用 - MediaWiki https://www.mediawiki.org/wiki/Extension:Cite/zh
  |  | 
 |    |  | 
 | 帮助:引用 - MediaWiki https://www.mediawiki.org/wiki/Help:Cite/zh
  |  | 
 |    |  | 
 | ----
  |  | 
 |    |  | 
 | [[Category:App/Software]]
  |  |