“常用代码”的版本间的差异
小 (→嵌入代码) |
小 |
||
| 第1行: | 第1行: | ||
===== 嵌入代码 ===== | ===== 嵌入代码 ===== | ||
| − | <nowiki><source></nowiki> | + | <nowiki><source lang="xml"></nowiki> |
<br> | <br> | ||
<nowiki></source></nowiki> | <nowiki></source></nowiki> | ||
| 第7行: | 第7行: | ||
===== 嵌入YOUTUBE ===== | ===== 嵌入YOUTUBE ===== | ||
| − | <source> | + | <source lang="xml"> |
<youtube>7DbsjRuFbv8</youtube> | <youtube>7DbsjRuFbv8</youtube> | ||
</source> | </source> | ||
| 第13行: | 第13行: | ||
===== 表格居中,表格宽度80% ===== | ===== 表格居中,表格宽度80% ===== | ||
| − | <source>{| class="wikitable" style="margin: auto;width: 80%;"</source> | + | <source lang="xml">{| class="wikitable" style="margin: auto;width: 80%;"</source> |
===== 单元格宽度10% ===== | ===== 单元格宽度10% ===== | ||
| − | <source>| style="width: 10%"|</source> | + | <source lang="xml">| style="width: 10%"|</source> |
===== 单元格内居中 ===== | ===== 单元格内居中 ===== | ||
| − | <source>| style="margin: auto;"</source> | + | <source lang="xml">| style="margin: auto;"</source> |
===== YouTube 插件常用标签 ===== | ===== YouTube 插件常用标签 ===== | ||
| − | <source> | + | <source lang="xml"> |
Google Video — use the <gvideo> tag | Google Video — use the <gvideo> tag | ||
Archive.org audio — use the <aoaudio> tag | Archive.org audio — use the <aoaudio> tag | ||
| 第56行: | 第56行: | ||
</mapframe> | </mapframe> | ||
| − | <source> | + | <source lang="xml"> |
<mapframe align="center" text="天安门" width=600 height=400 zoom=3 longitude=106.397482 latitude=29.908634 lang="zh"> | <mapframe align="center" text="天安门" width=600 height=400 zoom=3 longitude=106.397482 latitude=29.908634 lang="zh"> | ||
{ | { | ||
| 第74行: | 第74行: | ||
<maplink text="天安门" width=350 height=350 zoom=13 longitude=116.397482 latitude=39.908634/> | <maplink text="天安门" width=350 height=350 zoom=13 longitude=116.397482 latitude=39.908634/> | ||
| − | <source><maplink text="天安门" width=350 height=350 zoom=13 longitude=116.397482 latitude=39.908634/></source> | + | <source lang="xml"><maplink text="天安门" width=350 height=350 zoom=13 longitude=116.397482 latitude=39.908634/></source> |
===== 图标示例列表 ===== | ===== 图标示例列表 ===== | ||
https://www.mediawiki.org/wiki/Help:Extension:Kartographer/Icons | https://www.mediawiki.org/wiki/Help:Extension:Kartographer/Icons | ||
2019年1月3日 (四) 20:34的版本
嵌入代码
<source lang="xml">
</source>
嵌入YOUTUBE
<youtube>7DbsjRuFbv8</youtube>
表格居中,表格宽度80%
{| class="wikitable" style="margin: auto;width: 80%;"
单元格宽度10%
| style="width: 10%"|
单元格内居中
| style="margin: auto;"
YouTube 插件常用标签
Google Video — use the <gvideo> tag
Archive.org audio — use the <aoaudio> tag
Archive.org video — use the <aovideo> tag
WeGame — use the <wegame> tag
Tangler forum — use the <tangler> tag
Gametrailers — use the <gtrailer> tag
Nicovideo — use the <nicovideo> tag
GoGreenTube — use the <ggtube> tag
维基扩展
https://www.mediawiki.org/wiki/Manual:Extensions/zh
维基地图
<mapframe align="center" text="天安门" width=600 height=400 zoom=3 longitude=106.397482 latitude=29.908634 lang="zh">
{
"type": "Feature",
"geometry": { "type": "Point", "coordinates": [116.39126,39.90726] },
"properties": {
"title": "[[wikipedia:Exploratorium|测试文字]]",
"description": "[[File:测试图片.png|150px]]",
"marker-symbol": "building",
"marker-size": "small",
"marker-color": "0050d0"
}
}
</mapframe>
<maplink text="天安门" width=350 height=350 zoom=13 longitude=116.397482 latitude=39.908634/>
图标示例列表
https://www.mediawiki.org/wiki/Help:Extension:Kartographer/Icons