个人工具

帮助:模板库

出自Meshal Lite

跳转到: 导航, 搜索
第80行: 第80行:
 
|tpl
 
|tpl
 
|tip=链接}}
 
|tip=链接}}
 +
|-
 +
|<span class="hidden">链接</span>
 +
{{quarter|
 +
;子页面查看链接:{{anchor|<code>{{tpl|subpages}}</code>|id=subpages}}
 +
搭载在某个页面中,生成一个超链接指向此页面的所有子页面列表。
 +
|tpl
 +
|tip=链接}}
 +
|-
 +
|<span class="hidden">链接</span>
 +
{{quarter|
 +
;图片链接:{{anchor|<code>{{tpl|imglink}}</code>|id=imglink}}
 +
指向一个页面,但这个页面链接用图片来表示。
 +
|tpl
 +
|tip=链接}}
 +
|-
 +
|<span class="hidden">图片</span>
 +
{{quarter|
 +
;嵌入图片:{{anchor|<code>{{tpl|img}}</code>|id=img}}
 +
调用位于<nowiki></nowiki>{{SERVER}}/liteimg/<nowiki></nowiki>下的图片文件。
 +
----
 +
;变体:{{anchor|<code>{{tpl|eximg}}</code>|id=eximg}}
 +
调用指定完整URL的图片文件。
 +
|tpl
 +
|tip=图片}}
 +
|-
 +
|<span class="hidden">图片</span>
 +
{{quarter|
 +
;嵌入预设符号图片:{{anchor|<code>{{tpl|symbol}}</code>|id=symbol}}
 +
生成一个符号,该符号是预设的。
 +
|tpl
 +
|tip=图片}}
 
|-
 
|-
 
|<span class="hidden">格式</span>
 
|<span class="hidden">格式</span>
第278行: 第309行:
 
|tpl
 
|tpl
 
|tip=系统}}
 
|tip=系统}}
 +
|-
 +
|<span class="hidden">查询</span>
 +
{{quarter|
 +
;世界设定查询:{{anchor|<code>{{tpl|settingList}}</code>|id=settingList}}
 +
罗列所有已注册世界设定的某个同名页面,类似于生成一个导航文本。
 +
|tpl
 +
|tip=查询}}
 +
|-
 +
|<span class="hidden">查询</span>
 +
{{quarter|
 +
;体型等级查询:{{anchor|<code>{{tpl|sizeLevel}}</code>|id=sizeLevel}}
 +
输入体型,得到体型等级。
 +
|tpl
 +
|tip=查询}}
 +
|-
 +
|<span class="hidden">查询</span>
 +
{{quarter|
 +
;货币查询:{{anchor|<code>{{tpl|currency}}</code>|id=currency}}
 +
输入数字,得到对应的货币格式。
 +
----
 +
;汇率参数:{{anchor|<code>{{tpl|currency_exchangeRate}}</code>|id=currency_exchangeRate}}
 +
预定义一组汇率参数以供调用它的页面使用。
 +
----
 +
;货币查询(GSC):{{anchor|<code>{{tpl|currency_gsc}}</code>|id=currency_gsc}}
 +
输入数字,得到GSC(金银铜)币制的数字。
 +
;货币查询(FER):{{anchor|<code>{{tpl|currency_fer}}</code>|id=currency_fer}}
 +
输入数字,得到FER(星铁)币制的数字。
 +
;货币查询(AES):{{anchor|<code>{{tpl|currency_aes}}</code>|id=currency_aes}}
 +
输入数字,得到AES(亚兰恩世界埃多安银币)币制的数字。
 +
|tpl
 +
|tip=查询}}
 +
|-
 +
|<span class="hidden">查询</span>
 +
{{quarter|
 +
;树状分类查询:{{anchor|<code>{{tpl|categorytree}}</code>|id=categorytree}}
 +
生成1个树状结构的分类查看表。
 +
|tpl
 +
|tip=查询}}
 +
|-
 +
|<span class="hidden">查询</span>
 +
{{quarter|
 +
;分类内容列表:{{anchor|<code>{{tpl|database_list}}</code>|id=database_list}}
 +
输出特定名字空间和特定分类的条目集合(以可收缩表格方式呈现)
 +
----
 +
;变体:{{anchor|<code>{{tpl|database_listonly}}</code>|id=database_listonly}}
 +
输出特定名字空间和特定分类的条目集合(以纯列表方式呈现)。
 +
|tpl
 +
|tip=查询}}
 +
|-
 +
|<span class="hidden">入口</span>
 +
{{quarter|
 +
;可扩展显示文字:{{anchor|<code>{{tpl|createpages}}</code>|id=createpages}}
 +
搭载在某个页面中, 生成1个悬浮按钮菜单,提供快速创建资料的入口。
 +
|tpl
 +
|tip=入口}}
 +
|-
 +
|<span class="hidden">预载</span>
 +
{{quarter|
 +
;种族预载模板:{{anchor|<code>{{tpl|createRaceFeature}}</code>|id=createRaceFeature}}
 +
;性别预载模板:{{anchor|<code>{{tpl|createGenderFeature}}</code>|id=createGenderFeature}}
 +
;体型预载模板:{{anchor|<code>{{tpl|createSizeFeature}}</code>|id=createSizeFeature}}
 +
;形态预载模板:{{anchor|<code>{{tpl|createFormFeature}}</code>|id=createFormFeature}}
 +
|tpl
 +
|tip=预载}}
 +
|-
 +
|<span class="hidden">预载</span>
 +
{{quarter|
 +
;主动能力预载模板:{{anchor|<code>{{tpl|createActiveAbility}}</code>|id=createActiveAbility}}
 +
;被动能力预载模板:{{anchor|<code>{{tpl|createPassiveAbility}}</code>|id=createPassiveAbility}}
 +
|tpl
 +
|tip=预载}}
 +
|-
 +
|<span class="hidden">预载</span>
 +
{{quarter|
 +
;一般物品预载模板:{{anchor|<code>{{tpl|createItem}}</code>|id=createItem}}
 +
;武器预载模板:{{anchor|<code>{{tpl|createWeaponItem}}</code>|id=createWeaponItem}}
 +
;盾牌预载模板:{{anchor|<code>{{tpl|createShieldItem}}</code>|id=createShieldItem}}
 +
;弹药预载模板:{{anchor|<code>{{tpl|createAmmoItem}}</code>|id=createAmmoItem}}
 +
;头盔预载模板:{{anchor|<code>{{tpl|createHelmetItem}}</code>|id=createHelmetItem}}
 +
;护甲预载模板:{{anchor|<code>{{tpl|createArmorItem}}</code>|id=createArmorItem}}
 +
;鞋靴预载模板:{{anchor|<code>{{tpl|createBootItem}}</code>|id=createBootItem}}
 +
;异种防具预载模板:{{anchor|<code>{{tpl|createExoticArmourItem}}</code>|id=createExoticArmourItem}}
 +
;饰品预载模板:{{anchor|<code>{{tpl|createAccessoryItem}}</code>|id=createAccessoryItem}}
 +
|tpl
 +
|tip=预载}}
 +
|-
 +
|<span class="hidden">预载</span>
 +
{{quarter|
 +
;玩家角色预载模板:{{anchor|<code>{{tpl|createPlayer}}</code>|id=createPlayer}}
 +
;生物预载模板:{{anchor|<code>{{tpl|createCreature}}</code>|id=createCreature}}
 +
----
 +
;玩家角色/生物附加资料的预载模板:{{anchor|<code>{{tpl|createCharExpandInfo}}</code>|id=createCharExpandInfo}}
 +
|tpl
 +
|tip=预载}}
 +
|-
 +
|<span class="hidden">预载</span>
 +
{{quarter|
 +
;新模板预载模板:{{anchor|<code>{{tpl|createTemplate}}</code>|id=createTemplate}}
 +
|tpl
 +
|tip=预载}}
 
|}
 
|}
 
 
 
===查询===
 
;资料库
 
:{{tpl|libraryFeature}}: 特征列表
 
:{{tpl|libraryCreature}}: 生物列表
 
:{{tpl|libraryTeam}}: 团队列表
 
:{{tpl|libraryAbility}}: 能力列表
 
:{{tpl|libraryItem}}: 物品列表
 
:{{tpl|libraryFaction}}: 势力列表
 
;速查与换算
 
:{{tpl|settingList}}:罗列所有已注册世界设定的某个同名页面,类似于生成一个导航文本。
 
:{{tpl|sizeLevel}}:输入体型,得到体型等级。
 
:{{tpl|currency}}:输入数字,得到对应的货币格式。
 
:- {{tpl|currency_exchangeRate}}:预定义一组汇率参数以供调用它的页面使用。
 
:- {{tpl|currency_gsc}}:输入数字,得到GSC(金银铜)币制的数字。
 
:- {{tpl|currency_fer}}:输入数字,得到FER(星铁)币制的数字。
 
:- {{tpl|currency_aes}}::输入数字,得到AES(亚兰恩世界埃多安银币)币制的数字。
 
;功能
 
:{{tpl|categorytree}}:生成1个树状结构的分类查看表。
 
:{{tpl|database_list}}:输出特定名字空间和特定分类的条目集合(以可收缩表格方式呈现)。
 
:{{tpl|database_listonly}}:输出特定名字空间和特定分类的条目集合(以纯列表方式呈现)。
 
:{{tpl|database_detail}}:输出特定名字空间和特定分类的条目集合(直接引用内容)。
 
:- {{tpl|database_nav}}:由database_detail调用,生成查询列表的分页导航栏(不推荐单独使用)。
 
:{{tpl|subpages}}: 搭载在某个页面中,生成1个超链接指向此页面的所有子页面列表。
 
:{{tpl|createpages}}: 搭载在某个页面中, 生成1个悬浮按钮菜单,提供快速创建资料的入口。
 
 
===图片===
 
:{{tpl|img}}:调用位于<nowiki></nowiki>{{SERVER}}/liteimg/<nowiki></nowiki>下的图片文件。
 
:{{tpl|eximg}}:调用位于站点外部的图片文件。
 
:{{tpl|imglink}}:指向一个页面,但这个页面链接用图片来表示。
 
:{{tpl|symbol}}:生成一个图片符号。
 
 
===预载===
 
;特征
 
:{{tpl|createRaceFeature}}: 生成种族特征的预设模板
 
:{{tpl|createGenderFeature}}: 生成性别特征的预设模板
 
:{{tpl|createSizeFeature}}: 生成体型特征的预设模板
 
:{{tpl|createFormFeature}}: 生成形态特征的预设模板
 
;能力
 
:{{tpl|createActiveAbility}}: 生成主动能力的预设模板
 
:{{tpl|createPassiveAbility}}: 生成被动能力的预设模板
 
;物品
 
:{{tpl|createItem}}: 生成一般物品的模板
 
:{{tpl|createWeaponItem}}: 生成武器物品的预设模板
 
:{{tpl|createShieldItem}}: 生成盾牌物品的预设模板
 
:{{tpl|createAmmoItem}}: 生成弹药物品的预设模板
 
:{{tpl|createHelmetItem}}: 生成头盔的预设模板
 
:{{tpl|createArmorItem}}: 生成护甲的预设模板
 
:{{tpl|createBootItem}}: 生成鞋靴的预设模板
 
:{{tpl|createExoticArmourItem}}: 生成异种防具的预设模板
 
:{{tpl|createAccessoryItem}}: 生成饰品的预设模板
 
;生物/团队
 
:{{tpl|createPlayer}}: 生成玩家角色的预设模板
 
:{{tpl|createCreature}}: 生成生物的预设模板
 
:- {{tpl|createCharExpandInfo}}:生成角色/生物附加资料的预设模板
 
:{{tpl|createTeam}}: 生成团队的预设模板
 
;其他
 
:{{tpl|createTemplate}}: 生成模板页面的预设模板
 

在2018年4月2日 (一) 14:52所做的修订版本