Difference between revisions of "Mediawiki 使用方法大全"
Jump to navigation
Jump to search
(→页面编辑) |
|||
Line 1: | Line 1: | ||
==页面编辑== | ==页面编辑== | ||
[https://zh.wikipedia.org/wiki/Help:%E7%BC%96%E8%BE%91%E9%A1%B5%E9%9D%A2 页面编辑] | [https://zh.wikipedia.org/wiki/Help:%E7%BC%96%E8%BE%91%E9%A1%B5%E9%9D%A2 页面编辑] | ||
+ | |||
+ | <syntaxhighlight lang="python" line> | ||
+ | #!/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(): | ||
+ | </syntaxhighlight> | ||
== All Category == | == All Category == |
Revision as of 18:12, 27 April 2022
Contents
页面编辑
1 #!/usr/bin/env python3
2
3 import subprocess
4 import time
5
6 from gpiozero import OutputDevice
7
8
9 ON_THRESHOLD = 55 # (degrees Celsius) Fan running at high speed at this temperature.
10 OFF_THRESHOLD = 50 # (degress Celsius) Fan running at low speed at this temperature.
11 SLEEP_INTERVAL = 5 # (seconds) How often we check the core temperature.
12 GPIO_PIN = 16 # Which GPIO pin you're using to control the fan. DON'T change it!
13
14
15 def get_temp():
All Category
在这个wiki库中,目前使用的分类有下面这些,如果不够请通知管理员来增加, 不要私自增加自己想的分类;
[[Category:Product Manual]] 所有的产品都需要增加这个分类; [[Category:Consumer Electronics]] [[Category:Raspberry pi]] [[Category:Arduino]] [[Category:pcDuino]] [[Category:Beaglebone Black]] [[Category:Smart Home]] //下面这个分类仅适用于一些知识库文章; [[Category: Knowledge]] 分类使用示例: 在页面的末尾增加分类即可,可以使用多个分类;
语法大全
引用内部链接
内部链接可为两种:一种是一个页面本身可以成为一个链接;另一种是一个页面里面的章节也可以被引用;
MediaWiki内部链接使用两个方括号,例如输入 [[Alexa]] 就得到 Alexa 如果链接的实际地址和现实的不一致,使用下面的格式: [[MediaWiki安装|安装]]
引用外部链接
分为以下两种情况
- 直接写URL
URL地址MediaWiki会自动识别为链接。 例如输入: http://bbs.idcspy.com 就显示:http://bbs.idcspy.com 注意:为了正确识别,在URL之后要留一个'''空格'''。
- 利用方括号定义外部链接,这种方式可以指定显示的内容。
例如输入: [http://bbs.idcspy.com 美国主机侦探] URL和显示文本之间用空格隔开。