Template:地区/doc

< Template:地区
Katty von Keksburg讨论 | 贡献2024年5月14日 (二) 12:52的版本
(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
这是Template:地区的模板文档
当直接浏览时,使用变量可能会失效,请不要使用硬编码来代替页面名或地址。
This template uses the following modules:
Module:State

This template provides a way to read the name of a state based off the ID and formats the output accordingly.

Parameters

{{地区|123|noid = yes}}

Parameter Info Required Notes
1 integer Required The ID of the state.
2 string Optional Overrides the auto-fetched name of the state if set.
noid boolean Optional If true, doesn't display the ID of the state after the name.
nob boolean Optional If true, state name won't be bolded.

Usage examples

Code Result
{{地区|1}} 科西嘉Corsica [1]
{{地区|321|noid=yes}} 果阿Goa
{{地区|231|nob=yes}} 格鲁吉亚Georgia [231]
{{地区|114514|五更琉shu|pokewiz}} 五更琉shupokewiz [114514]

See also