发型/box
泰拉瑞亚本体
中文
rev 252962
此页面在基础页面发型上用于以一种标准的方式格式化特定数据。
It expects an array (from Extension:ArrayFunctions) of hairstyle IDs as the first unnamed parameter, e.g.: {{:发型/box| {{#af_list:0|1|2}} }}. The IDs are sorted and each ID is incremented by 1, in order to convert Terraria's 0-based IDs to 1-based ones.
An anchor is added to each hairstyle to allow linking to individual hairstyles like so: [[发型#hairstyle 1]] → 发型#hairstyle 1.