Open main menu

Mediawiki 使用方法大全

Revision as of 13:59, 19 April 2024 by Harry (talk | contribs) (→‎语法大全)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Contents

语法大全


红色文本

红色粗体文本

蓝色文本

蓝色粗体文本


定义列表:

Item 1
事物一的定义
Item 2
事物二的第一种定义
事物二的第二种定义

增加缩进
缩进一点
缩进多一点

允许使用的HTML元素

Q&A 模板

Q2: How to restart the pi board when AC Power supply is connected?

A: Please enable 'AUTO POWER ON' or 'AUTO ON' function if you want restart when the AC Power supply is reapplied.

Q0: 请在这里写上问题

A: 请在这里放置回答。文本也要遵循WIKI的编辑格式;

sudo i2cdetect -y 1
  • 列表项目
  • 列表项目

也可以插入表格:

Model Compatible with Work with X630 Remark
KVM-A3 Raspberry Pi 4 Model B YES
KVM-A8 Raspberry Pi 4 Model B YES PCIe version, No external wire
KVM-A4 Raspberry Pi zero 2 W YES
X650 Raspberry Pi Computer Module 4 (CM4) NO PCIe version
X652 Raspberry Pi Computer Module 4 (CM4) NO PCIe version, PoE Power&NVMe SSD supported
X680 Raspberry Pi Compute Module 4 (CM4) NO Can control up to 4 USB HDMI computers/servers

Q1:Why Raspberry Pi is randomly rebooting all the time?

A:You can follow the steps to test if the X728 issue:

a:Take the X728 off from the Raspberry Pi, remove all the batteries, power supply, and all jumper caps. Then connect the battery or power supply, press the blue power button on X728, the blue LED should be on, and then press and hold the power button for more than 8 seconds, the blue LED should be off.(These steps indicate that the X728 has no issue.)

b:Please check and confirm if other device occupy the GPIO with X728.

c:Still not find out the issue, please attach a video to contact us show more details.

Q3: What are GPIO5 and GPIO12 used for X728 V1.3/V2.0?

A: GPIO5 control shutdown, GPIO12 BOOK OK.

表格

页面编辑

页面编辑

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]]

分类使用示例:
在页面的末尾增加分类即可,可以使用多个分类;