“模板:Mapbox/zh”的版本间的差异
小 (fix a error) |
小 |
||
第10行: | 第10行: | ||
|caption={{{screenshotDesc}}} | |caption={{{screenshotDesc}}} | ||
− | |header1={{#switch: {{{language}}} | | + | |header1={{#switch: {{{language}}} | en=Basic infomation | zh=基本信息 | Basic infomation}} |
− | |label2={{#switch: {{{language}}} | | + | |label2={{#switch: {{{language}}} | en=Original name | zh=源语言名 | Original name}} |
|data2={{{originalName}}} | |data2={{{originalName}}} | ||
− | |label3={{#switch: {{{language}}} | | + | |label3={{#switch: {{{language}}} | en=Author | zh=作者 | Author}} |
|data3={{{author}}} | |data3={{{author}}} | ||
− | |label4={{#switch: {{{language}}} | | + | |label4={{#switch: {{{language}}} | en=Release date | zh=发布时间 | Release date}} |
|data4={{#time: {{{dateFormat}}} | {{{date}}} | {{{language}}} }} | |data4={{#time: {{{dateFormat}}} | {{{date}}} | {{{language}}} }} | ||
− | |label5={{#switch: {{{language}}} | | + | |label5={{#switch: {{{language}}} | en=Section count | zh=小节数 | Section count}} |
|data5={{{section}}} | |data5={{{section}}} | ||
− | |header6={{#switch: {{{language}}} | | + | |header6={{#switch: {{{language}}} | en=Expanded information | zh=拓展信息 | Expanded information}} |
− | |label7={{#switch: {{{language}}} | | + | |label7={{#switch: {{{language}}} | en=Authorization type | zh=授权类型 | Authorization type}} |
|data7= | |data7= | ||
{{#switch: {{{language}}} | {{#switch: {{{language}}} | ||
− | | | + | | en= |
{{#switch: {{{type}}} | free=Free to use | Unknow}} | {{#switch: {{{type}}} | free=Free to use | Unknow}} | ||
− | | | + | | zh= |
{{#switch: {{{type}}} | free=免费使用 | 未知}} | {{#switch: {{{type}}} | free=免费使用 | 未知}} | ||
第36行: | 第36行: | ||
− | |label8={{#switch: {{{language}}} | | + | |label8={{#switch: {{{language}}} | en=Suitable for | zh=适用于 | Suitable for}} |
|data8={{{suit}}} | |data8={{{suit}}} | ||
− | |label9={{#switch: {{{language}}} | | + | |label9={{#switch: {{{language}}} | en=Included in Map Package | zh=包含在地图包中 | Included in Map Package}} |
|data9= | |data9= | ||
{{#ifeq: {{{mapPackage}}} | true | {{#ifeq: {{{mapPackage}}} | true | ||
− | |{{#switch: {{{language}}} | | + | |{{#switch: {{{language}}} | en=Yes | zh= 是 | Yes}} |
− | |{{#switch: {{{language}}} | | + | |{{#switch: {{{language}}} | en=No | zh= 否 | No}} |
}} | }} | ||
− | |label10={{#switch: {{{language}}} | | + | |label10={{#switch: {{{language}}} | en=Records supported by | zh=支持此地图的纪录认证者 | Records supported by}} |
|data10= | |data10= | ||
{{#if: {{{record}}} | {{#if: {{{record}}} | ||
|{{{record}}} | |{{{record}}} | ||
− | |{{#switch: {{{language}}} | | + | |{{#switch: {{{language}}} | en=None | zh= 无 | None}} |
}} | }} | ||
第104行: | 第104行: | ||
Please use ISO 639-3 code. | Please use ISO 639-3 code. | ||
− | * | + | * en=english |
− | * | + | * zh=Chinese |
=== screenshot === | === screenshot === |
2018年7月16日 (一) 21:05的版本
{{{name}}} | |
---|---|
[[File:{{{screenshot}}}|200px]] {{{screenshotDesc}}} | |
Basic infomation | |
Original name | {{{originalName}}} |
Author | {{{author}}} |
Release date | 错误:无效时间。 |
Section count | {{{section}}} |
Expanded information | |
Suitable for | {{{suit}}} |
Included in Map Package | No |
Records supported by | {{{record}}} |
Notice
You should learn some necessary document before changing this template.
See https://www.mediawiki.org/w/index.php?title=Help:Extension:ParserFunctions to know #time and parameter {{{language}}}'s format.
Go to https://iso639-3.sil.org/code_tables/639/data to get ISO 639-3 code.
Grammer
{{Mapbox |position= |language= |name= |screenshot= |screenshotDesc= |originalName= |author= |section= |dateFormat= |date= |type= |suit= |mapPackage= |record= }}
Important parameters' description
position
Support left or right. Determine the position of infobox.
language
Please use ISO 639-3 code.
- en=english
- zh=Chinese
screenshot
You only need to input file name. Because we want to each pictures have the same size.
dataFormet && date
date id release data. dataFormet and date 's example can be seen at https://www.mediawiki.org/w/index.php?title=Help:Extension:ParserFunctions
type
type support free currently.
suit
Use quoto to devide each items. Don't use any specific language's words.
Correct: Ballance, Ballance Remix
Incorrect: Ballance and Ballance Remix
mapPackage
Inputting true or false is ok.
record
Follow suit's rule.
Additionally, If none of record certifiers support this map, keep it is blank.
Help
If you still have problems about using this template, you can see some example in Mapping page.
You also can contact yyc12345 in our Discord server.