“模板:Mapbox/zh”的版本间的差异

来自Ballance Wiki
跳转至: 导航搜索
(fix a error)
第10行: 第10行:
 
|caption={{{screenshotDesc}}}
 
|caption={{{screenshotDesc}}}
  
|header1={{#switch: {{{language}}} | eng=Basic infomation | zho=基本信息 | Basic infomation}}
+
|header1={{#switch: {{{language}}} | en=Basic infomation | zh=基本信息 | Basic infomation}}
|label2={{#switch: {{{language}}} | eng=Original name | zho=源语言名 | Original name}}
+
|label2={{#switch: {{{language}}} | en=Original name | zh=源语言名 | Original name}}
 
|data2={{{originalName}}}
 
|data2={{{originalName}}}
|label3={{#switch: {{{language}}} | eng=Author | zho=作者 | Author}}
+
|label3={{#switch: {{{language}}} | en=Author | zh=作者 | Author}}
 
|data3={{{author}}}
 
|data3={{{author}}}
|label4={{#switch: {{{language}}} | eng=Release date | zho=发布时间 | Release date}}
+
|label4={{#switch: {{{language}}} | en=Release date | zh=发布时间 | Release date}}
 
|data4={{#time: {{{dateFormat}}} | {{{date}}} | {{{language}}} }}
 
|data4={{#time: {{{dateFormat}}} | {{{date}}} | {{{language}}} }}
|label5={{#switch: {{{language}}} | eng=Section count | zho=小节数 | Section count}}
+
|label5={{#switch: {{{language}}} | en=Section count | zh=小节数 | Section count}}
 
|data5={{{section}}}
 
|data5={{{section}}}
  
|header6={{#switch: {{{language}}} | eng=Expanded information | zho=拓展信息 | Expanded information}}
+
|header6={{#switch: {{{language}}} | en=Expanded information | zh=拓展信息 | Expanded information}}
|label7={{#switch: {{{language}}} | eng=Authorization type | zho=授权类型 | Authorization type}}
+
|label7={{#switch: {{{language}}} | en=Authorization type | zh=授权类型 | Authorization type}}
 
|data7=
 
|data7=
  
 
{{#switch: {{{language}}}  
 
{{#switch: {{{language}}}  
| eng=
+
| en=
  
 
{{#switch: {{{type}}} | free=Free to use | Unknow}}
 
{{#switch: {{{type}}} | free=Free to use | Unknow}}
  
| zho=
+
| zh=
  
 
{{#switch: {{{type}}} | free=免费使用 | 未知}}
 
{{#switch: {{{type}}} | free=免费使用 | 未知}}
第36行: 第36行:
  
  
|label8={{#switch: {{{language}}} | eng=Suitable for | zho=适用于 | Suitable for}}
+
|label8={{#switch: {{{language}}} | en=Suitable for | zh=适用于 | Suitable for}}
 
|data8={{{suit}}}
 
|data8={{{suit}}}
|label9={{#switch: {{{language}}} | eng=Included in Map Package | zho=包含在地图包中 | Included in Map Package}}
+
|label9={{#switch: {{{language}}} | en=Included in Map Package | zh=包含在地图包中 | Included in Map Package}}
 
|data9=
 
|data9=
  
 
{{#ifeq: {{{mapPackage}}} | true
 
{{#ifeq: {{{mapPackage}}} | true
|{{#switch: {{{language}}} | eng=Yes | zho= 是 | Yes}}
+
|{{#switch: {{{language}}} | en=Yes | zh= 是 | Yes}}
|{{#switch: {{{language}}} | eng=No | zho= 否 | No}}
+
|{{#switch: {{{language}}} | en=No | zh= 否 | No}}
 
}}
 
}}
  
|label10={{#switch: {{{language}}} | eng=Records supported by | zho=支持此地图的纪录认证者 | Records supported by}}
+
|label10={{#switch: {{{language}}} | en=Records supported by | zh=支持此地图的纪录认证者 | Records supported by}}
 
|data10=
 
|data10=
  
 
{{#if: {{{record}}}
 
{{#if: {{{record}}}
 
|{{{record}}}
 
|{{{record}}}
|{{#switch: {{{language}}} | eng=None | zho= 无 | None}}
+
|{{#switch: {{{language}}} | en=None | zh= 无 | None}}
 
}}
 
}}
  
第104行: 第104行:
 
Please use ISO 639-3 code.
 
Please use ISO 639-3 code.
  
* eng=English
+
* en=english
* zho=Chinese
+
* 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.