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

来自Ballance Wiki
跳转至: 导航搜索
(Yyc12345移动页面模板:Mapbox模板:Mapbox/zh,不留重定向:multi-language redirect)
 
(未显示2个用户的10个中间版本)
第1行: 第1行:
<div style="float:{{{position}}};margin:0px 10px 0px 10px">
 
 
{{Infobox
 
{{Infobox
 
|headerstyle= background:#ccf;
 
|headerstyle= background:#ccf;
 
|labelstyle= background:#ddf;
 
|labelstyle= background:#ddf;
  
|above={{{name}}}
+
|above={{{name|{{PAGENAME}}}}}
|image=[[File:{{{screenshot}}}|200px]]
+
|image=[[File:{{{screenshot}}}|220px]]
 
|caption={{{screenshotDesc}}}
 
|caption={{{screenshotDesc}}}
  
|header1={{#switch: {{{language}}} | en=Basic infomation | zh=基本信息 | Basic infomation}}
+
|header1=基本信息
|label2={{#switch: {{{language}}} | en=Original name | zh=源语言名 | Original name}}
+
|label2=源语言名
|data2={{{originalName}}}
+
|data2={{{originalName|{{PAGENAME}}}}}
|label3={{#switch: {{{language}}} | en=Author | zh=作者 | Author}}
+
|label3=作者
 
|data3={{{author}}}
 
|data3={{{author}}}
|label4={{#switch: {{{language}}} | en=Release date | zh=发布时间 | Release date}}
+
|label4=发布时间
|data4={{DateConverter|language={{{language}}}|year={{{dateYear}}}|month={{{dateMonth}}}|day={{{dateDay}}}}}
+
|data4={{#if: {{{date|}}}|{{{date}}}|{{{year}}}年{{{month}}}{{{day}}}日{{Resize|({{年月差异|{{{year|2004}}}|{{{month|4}}}|{{{day|2}}}}}前)}}}}
|label5={{#switch: {{{language}}} | en=Section count | zh=小节数 | Section count}}
+
|label5=小节数
 
|data5={{{section}}}
 
|data5={{{section}}}
  
|header6={{#switch: {{{language}}} | en=Expanded information | zh=拓展信息 | Expanded information}}
+
|header6=拓展信息
|label7={{#switch: {{{language}}} | en=Authorization type | zh=授权类型 | Authorization type}}
+
|label7=授权类型
|data7=
+
|data7={{#if: {{{type|}}}|{{#switch: {{{type|}}}|CBF=[[Ballance吧通用授权]]|{{{type}}}}}|[[Ballance吧通用授权]]}}
 +
|label8=适用于
 +
|data8={{{suit|[[Ballance/zh|Ballance]]}}}
 +
|label9=包含在[[地图包]]中
 +
|data9={{{mapPackage}}}
 +
|label10=纪录认证支持于
 +
|data10={{{record|[[Ballance吧]]}}}
 +
}}<includeonly>[[Category:独立自制地图]]</includeonly><noinclude>
  
{{#switch: {{{language}}}
+
== 语法 ==
| en=
 
  
{{#switch: {{{type}}} | free=Free to use | Unknow}}
+
斜体的均可以不填,见下文解释。
 +
{{Mapbox/zh
 +
''| position =''
 +
''| name =''
 +
| screenshot =
 +
| screenshotDesc =
 +
''| originalName =''
 +
| author =
 +
| section =
 +
''| date =''
 +
''(| year = | month = | day =)''
 +
''| type =''
 +
''| suit =''
 +
| mapPackage =
 +
''| record =''
 +
}}
  
| zh=
+
== 重要参数解释 ==
  
{{#switch: {{{type}}} | free=免费使用 | 未知}}
+
=== type ===
 
 
}}
 
 
 
 
 
|label8={{#switch: {{{language}}} | en=Suitable for | zh=适用于 | Suitable for}}
 
|data8={{{suit}}}
 
|label9={{#switch: {{{language}}} | en=Included in Map Package | zh=包含在地图包中 | Included in Map Package}}
 
|data9=
 
 
 
{{#ifeq: {{{mapPackage}}} | true
 
|{{#switch: {{{language}}} | en=Yes | zh= 是 | Yes}}
 
|{{#switch: {{{language}}} | en=No | zh= 否 | No}}
 
}}
 
 
 
|label10={{#switch: {{{language}}} | en=Records supported by | zh=支持此地图的纪录认证者 | Records supported by}}
 
|data10=
 
 
 
{{#if: {{{record}}}
 
|{{{record}}}
 
|{{#switch: {{{language}}} | en=None | zh= 无 | None}}
 
}}
 
  
}}
+
授权类型。填写 <code>CBF</code> 可以自动生成[[Ballance吧通用授权]]。若不填则'''默认为CBF'''。(CBF = [[Chinese Ballance Forum]],中国Ballance论坛,即指[[Ballance吧]])
</div>
 
 
 
<noinclude>
 
== Notice ==
 
 
 
<div style="color:red">
 
You should learn some necessary document before changing this template.
 
 
 
Go to https://iso639-3.sil.org/code_tables/639/data to get ISO 639-3 code.
 
</div>
 
 
 
 
 
== Grammer ==
 
 
 
<pre>
 
{{Mapbox
 
|position=
 
|language=
 
 
 
|name=
 
|screenshot=
 
|screenshotDesc=
 
 
 
|originalName=
 
|author=
 
|section=
 
 
 
|dateYear=
 
|dateMonth=
 
|dateDay=
 
 
 
|type=
 
|suit=
 
|mapPackage=
 
|record=
 
}}
 
</pre>
 
 
 
== Important parameters' description ==
 
  
 
=== position ===
 
=== position ===
  
Support '''left''' or '''right'''. Determine the position of infobox.
+
支持 '''left''' or '''right'''. 决定这个Box的浮动位置,不写此参数时'''默认'''right。
 
 
=== language ===
 
 
 
Please use ISO 639-3 code.
 
 
 
* en=english
 
* zh=Chinese
 
  
 
=== screenshot ===
 
=== screenshot ===
  
You only need to input file name. Because we want to each pictures have the same size.
+
截图。你只需要输入文件名即可,模板会自动强制大小为 220 px。
 
 
=== dataXXX ===
 
 
 
date id release data. Year is always necessary. You can use '''Year''', '''Year + Month''' or '''Year + Month + Day'''.
 
 
 
=== type ===
 
 
 
type support '''free''' currently.
 
  
 
=== suit ===
 
=== suit ===
  
Use quoto to devide each items. Don't use any specific language's words.
+
使用英文逗号分隔各个项,不要使用特定语言中的任何字符,例如中文逗号或者“且”,“和”之类的文本
  
Correct: Ballance, Ballance Remix
+
正确示例: Ballance, Ballance Remix
 +
错误示例: Ballance and Ballance Remix / Ballance 和 Ballance Remix
  
Incorrect: Ballance and Ballance Remix
+
不写时'''默认'''为 Ballance。
 
 
=== mapPackage ===
 
 
 
Inputting '''true''' or '''false''' is ok.
 
  
 
=== record ===
 
=== record ===
  
Follow suit's rule.
+
与suit格式一样。
 
 
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]].
+
不写'''默认'''为CBF,即Ballance吧。
  
You also can contact yyc12345 in our Discord server.
+
=== date ===
  
 +
可以填写date(直接写年月日),但可以拆分成year/month/day。此时会被自动计算生成日期差异。
 
</noinclude>
 
</noinclude>

2020年12月4日 (五) 19:55的最新版本

Mapbox/zh
[[File:{{{screenshot}}}|220px]]
{{{screenshotDesc}}}
基本信息
源语言名 Mapbox/zh
作者 {{{author}}}
发布时间 {{{year}}}年{{{month}}}月{{{day}}}日(20年1个月前)
小节数 {{{section}}}
拓展信息
授权类型 Ballance吧通用授权
适用于 Ballance
包含在地图包 {{{mapPackage}}}
纪录认证支持于 Ballance吧

语法

斜体的均可以不填,见下文解释。

{{Mapbox/zh
| position =
| name =
| screenshot =
| screenshotDesc =
| originalName =
| author =
| section =
| date =
(| year = | month = | day =)
| type =
| suit =
| mapPackage =
| record =
}}

重要参数解释

type

授权类型。填写 CBF 可以自动生成Ballance吧通用授权。若不填则默认为CBF。(CBF = Chinese Ballance Forum,中国Ballance论坛,即指Ballance吧

position

支持 left or right. 决定这个Box的浮动位置,不写此参数时默认right。

screenshot

截图。你只需要输入文件名即可,模板会自动强制大小为 220 px。

suit

使用英文逗号分隔各个项,不要使用特定语言中的任何字符,例如中文逗号或者“且”,“和”之类的文本

正确示例: Ballance, Ballance Remix 错误示例: Ballance and Ballance Remix / Ballance 和 Ballance Remix

不写时默认为 Ballance。

record

与suit格式一样。

此外,如果没有内容,请手动填写无。

不写默认为CBF,即Ballance吧。

date

可以填写date(直接写年月日),但可以拆分成year/month/day。此时会被自动计算生成日期差异。