“常用代码”的版本间的差异

维基地图
第3行: 第3行:
  
  
<nowiki>{| class="wikitable" style="margin: auto;width: 80%;"</nowiki>
+
<source>{| class="wikitable" style="margin: auto;width: 80%;"</source>
  
  
第9行: 第9行:
  
  
<nowiki>| style="width: 10%"|</nowiki>  
+
<source>| style="width: 10%"|</source>  
  
  
第15行: 第15行:
  
  
<nowiki>| style="margin: auto;"</nowiki>
+
<source>| style="margin: auto;"</source>
  
  
第21行: 第21行:
  
  
<nowiki>Google Video — use the <gvideo> tag</nowiki>
+
<source>Google Video — use the <gvideo> tag</source>
  
<nowiki>Archive.org audio — use the <aoaudio> tag</nowiki>
+
<source>Archive.org audio — use the <aoaudio> tag</source>
  
<nowiki>Archive.org video — use the <aovideo> tag</nowiki>
+
<source>Archive.org video — use the <aovideo> tag</source>
  
<nowiki>WeGame — use the <wegame> tag</nowiki>
+
<source>WeGame — use the <wegame> tag</source>
  
<nowiki>Tangler forum — use the <tangler> tag</nowiki>
+
<source>Tangler forum — use the <tangler> tag</source>
  
<nowiki>Gametrailers — use the <gtrailer> tag</nowiki>
+
<source>Gametrailers — use the <gtrailer> tag</source>
  
<nowiki>Nicovideo — use the <nicovideo> tag</nowiki>
+
<source>Nicovideo — use the <nicovideo> tag</source>
  
<nowiki>GoGreenTube — use the <ggtube> tag</nowiki>
+
<source>GoGreenTube — use the <ggtube> tag</source>
  
 
===== 维基扩展 =====
 
===== 维基扩展 =====
第56行: 第56行:
 
}
 
}
 
</mapframe>
 
</mapframe>
 +
 +
 +
===== 维基地图代码 =====
  
  
第74行: 第77行:
 
</source>
 
</source>
  
===== 维基地图代码 =====
 
 
 
<nowiki><mapframe align="center" text="天安门" width=600 height=400 zoom=3 longitude=106.397482 latitude=29.908634 lang="zh"> {</nowiki><br>
 
<nowiki>"type": "Feature",</nowiki><br>
 
<nowiki>"geometry": { "type": "Point", "coordinates": [116.39126,39.90726] },</nowiki><br>
 
<nowiki>"properties": {</nowiki><br>
 
<nowiki>"title": "[[wikipedia:Exploratorium|测试文字]]",</nowiki><br>
 
<nowiki>"description": "[[File:测试图片.png|200px]]",</nowiki><br>
 
<nowiki>"marker-symbol": "building",</nowiki><br>
 
<nowiki>"marker-size": "small",</nowiki><br>
 
<nowiki>"marker-color": "0050d0"  }</nowiki><br>
 
<nowiki>} </mapframe></nowiki>
 
  
 
===== 图标示例列表 =====
 
===== 图标示例列表 =====
第97行: 第87行:
  
  
<nowiki><maplink align="center" text="天安门" width=350 height=350 zoom=13 longitude=116.397482 latitude=39.908634 lang="zh" /></nowiki>
+
<source><maplink align="center" text="天安门" width=350 height=350 zoom=13 longitude=116.397482 latitude=39.908634 lang="zh" /></source>

2019年1月3日 (四) 19:26的版本

表格居中,表格宽度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>


图标示例列表

https://www.mediawiki.org/wiki/Help:Extension:Kartographer/Icons


天安门


<maplink align="center" text="天安门" width=350 height=350 zoom=13 longitude=116.397482 latitude=39.908634 lang="zh" />