Mediawiki 使用方法大全

From Geekworm Wiki
Jump to navigation Jump to search

允许使用的HTML元素

https://www.mediawiki.org/wiki/Help:HTML_in_wikitext

一些内容

引用

this is a test

增加缩进

在要编辑的文本前增加冒号:

缩进一点
缩进多一点

Q&A

Q: Does the x650 support OLED display? A: Yes. please contact us at mail: support@geekworm.com, But we actually think OLED displays are pointless
Q: How to enable RTC? Firstly, insert the C1220 button battery, then run the following command:
 rw
 sudo nano /boot/config.txt
 #Then change the line: '''dtoverlay=i2c-rtc,pcf8563''' to '''dtoverlay=i2c-rtc,ds1307'''
 
 #Test RTC
 #Display the current time of the Raspberry Pi
 date  
 #Write the time of Raspberry Pi to DS1307
 sudo hwclock -w
 
 #Read the time of DS1307
 sudo hwclock -r
 ro

Q: Why is the X650 not working?

A:

1. First you need to make sure your physical connection is correct, or you can email us at support@geekworm.com to confirm your physical connection;

2. Make sure to use the right pikvm OS.

Pi4-V3-HAT.png

Run the following command to reboot the device

reboot now

表格

Table文档

自动生成表格

页面编辑

页面编辑

pi@raspberrypi: ~/x708v2 $ sudo i2cdetect -y 1

 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():
16     """Get the core temperature.
17     Run a shell script to get the core temp and parse the output.

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和显示文本之间用空格隔开。

语法大全