“模板:Mapbox/zh”的版本间的差异
(update style) |
|||
第8行: | 第8行: | ||
|caption={{{screenshotDesc}}} | |caption={{{screenshotDesc}}} | ||
− | |header1=Basic infomation | + | |header1={{#switch: {{{language}}} | eng=Basic infomation | zho=基本信息 | Basic infomation}} |
− | |label2=Original name | + | |label2={{#switch: {{{language}}} | eng=Original name | zho=源语言名 | Original name}} |
|data2={{{originalName}}} | |data2={{{originalName}}} | ||
− | |label3=Author | + | |label3={{#switch: {{{language}}} | eng=Author | zho=作者 | Author}} |
|data3={{{author}}} | |data3={{{author}}} | ||
− | |label4=Release date | + | |label4={{#switch: {{{language}}} | eng=Release date | zho=发布时间 | Release date}} |
− | |data4={{{date}}} | + | |data4={{#time: {{{dateFormat}}} | {{{date}}} | {{{language}}} }} |
− | |label5=Section count | + | |label5={{#switch: {{{language}}} | eng=Section count | zho=小节数 | Section count}} |
|data5={{{section}}} | |data5={{{section}}} | ||
− | |header6=Expanded information | + | |header6={{#switch: {{{language}}} | eng=Expanded information | zho=拓展信息 | Expanded information}} |
− | |label7=Authorization type | + | |label7={{#switch: {{{language}}} | eng=Authorization type | zho=授权类型 | Authorization type}} |
− | |data7={{{type}}} | + | |data7= |
− | |label8=Suitable for | + | |
+ | {{#switch: {{{language}}} | ||
+ | | eng= | ||
+ | |||
+ | {{#switch: {{{type}}} | free=Free to use | Unknow}} | ||
+ | |||
+ | | zho= | ||
+ | |||
+ | {{#switch: {{{type}}} | free=免费使用 | 未知}} | ||
+ | |||
+ | }} | ||
+ | |||
+ | |||
+ | |label8={{#switch: {{{language}}} | eng=Suitable for | zho=适用于 | Suitable for}} | ||
|data8={{{suit}}} | |data8={{{suit}}} | ||
− | |label9=Included in Map Package | + | |label9={{#switch: {{{language}}} | eng=Included in Map Package | zho=包含在地图包中 | Included in Map Package}} |
− | |data9={{{mapPackage}}} | + | |data9= |
− | |label10=Records supported by | + | |
− | |data10={{{record}}} | + | {{#ifeq: {{{mapPackage}}} | true |
+ | |{{#switch: {{{language}}} | eng=Yes | zho= 是 | Yes}} | ||
+ | |{{#switch: {{{language}}} | eng=No | zho= 否 | No}} | ||
+ | }} | ||
+ | |||
+ | |label10={{#switch: {{{language}}} | eng=Records supported by | zho=支持此地图的纪录认证者 | Records supported by}} | ||
+ | |data10= | ||
+ | |||
+ | {{#if: {{{record}}} | ||
+ | |{{{record}}} | ||
+ | |{{#switch: {{{language}}} | eng=None | zho= 无 | None}} | ||
+ | }} | ||
}} | }} | ||
</div> | </div> | ||
+ | |||
+ | <noinclude> | ||
+ | == Notice == | ||
+ | |||
+ | <div style="color:red"> | ||
+ | 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 <nowiki>{{{language}}}</nowiki>'s format. | ||
+ | |||
+ | Go to https://iso639-3.sil.org/code_tables/639/data to get ISO 639-3 code. | ||
+ | </div> | ||
+ | |||
+ | |||
+ | == Grammer == | ||
+ | |||
+ | <nowiki> | ||
+ | {{Mapbox | ||
+ | |position= | ||
+ | |language= | ||
+ | |||
+ | |name= | ||
+ | |screenshot= | ||
+ | |screenshotDesc= | ||
+ | |||
+ | |originalName= | ||
+ | |author= | ||
+ | |section= | ||
+ | |||
+ | |dateFormat= | ||
+ | |date= | ||
+ | |||
+ | |type= | ||
+ | |suit= | ||
+ | |mapPackage= | ||
+ | |record= | ||
+ | }} | ||
+ | </nowiki> | ||
+ | |||
+ | == Important parameters' description == | ||
+ | |||
+ | === position === | ||
+ | |||
+ | Support '''left''' or '''right'''. Determine the position of infobox. | ||
+ | |||
+ | === language === | ||
+ | |||
+ | Please use ISO 639-3 code. | ||
+ | |||
+ | * eng=English | ||
+ | * zho=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|Mapping page]]. | ||
+ | |||
+ | You also can contact yyc12345 in our Discord server. | ||
+ | |||
+ | </noinclude> |
2018年7月13日 (五) 15:50的版本
{{{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.
- eng=English
- zho=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.