Mediawiki 使用方法大全
Jump to navigation
Jump to search
语法大全
- 维基语法, 这个很有用,建议多学习;
- Help:格式化文本
红色文本
红色粗体文本
蓝色文本
蓝色粗体文本
定义列表:
- Item 1
- 事物一的定义
- Item 2
- 事物二的第一种定义
- 事物二的第二种定义
- 增加缩进
- 缩进一点
- 缩进多一点
允许使用的HTML元素
https://www.mediawiki.org/wiki/Help:HTML_in_wikitext
一些内容
Raspberry Pi 5
Q&A 模板
Expand
Q1: How to restart the pi board when AC Power supply is connected?
Expand
Q2: 请在这里写上问题
Expand
Q3:Why Raspberry Pi is randomly rebooting all the time?
Expand
Q4: What are GPIO5 and GPIO12 used for X728 V1.3/V2.0?
表格
页面编辑
pi@raspberrypi: ~/x708v2 $ sudo i2cdetect -y 1
#!/usr/bin/env python3
import subprocess
import time
from gpiozero import OutputDevice
ON_THRESHOLD = 55 # (degrees Celsius) Fan running at high speed at this temperature.
OFF_THRESHOLD = 50 # (degress Celsius) Fan running at low speed at this temperature.
SLEEP_INTERVAL = 5 # (seconds) How often we check the core temperature.
GPIO_PIN = 16 # Which GPIO pin you're using to control the fan. DON'T change it!
def get_temp():
"""Get the core temperature.
Run a shell script to get the core temp and parse the output.
引用内部链接
内部链接可为两种:一种是一个页面本身可以成为一个链接;另一种是一个页面里面的章节也可以被引用;
MediaWiki内部链接使用两个方括号,例如输入 [[Alexa]] 就得到 Alexa 如果链接的实际地址和现实的不一致,使用下面的格式: [[MediaWiki安装|安装]]
引用外部链接
分为以下两种情况
- 直接写URL
URL地址MediaWiki会自动识别为链接。 例如输入: http://bbs.idcspy.com 就显示:http://bbs.idcspy.com 注意:为了正确识别,在URL之后要留一个'''空格'''。
- 利用方括号定义外部链接,这种方式可以指定显示的内容。
例如输入: [http://bbs.idcspy.com 美国主机侦探] URL和显示文本之间用空格隔开。
All Category
在这个wiki库中,目前使用的分类有下面这些,如果不够请通知管理员来增加, 不要私自增加自己想的分类;
[[Category:Product Manual]] 所有的产品都需要增加这个分类; [[Category:Consumer Electronics]] [[Category:Raspberry pi]] [[Category:Arduino]] [[Category:pcDuino]] [[Category:Beaglebone Black]] [[Category:Smart Home]] ==下面这个分类仅适用于一些知识库文章; [[Category: Knowledge]] 分类使用示例: 在页面的末尾增加分类即可,可以使用多个分类;