Fallout中文維基
导航
首页
所有页面
社区
互动式地图
最新博文
Fallout系列
Fallout
Fallout 2
Fallout 3
Fallout: New Vegas
Fallout 4
Fallout 76
其他
社群
管理员
論壇
幫助
方針與指引
維基成就
FANDOM
游戏
电影
电视
wiki
探索wiki
社区中心
创建wiki
注册
尚未注册?
登录
Fallout中文維基
5,319
个页面
导航
首页
所有页面
社区
互动式地图
最新博文
Fallout系列
Fallout
Fallout 2
Fallout 3
Fallout: New Vegas
Fallout 4
Fallout 76
其他
社群
管理员
論壇
幫助
方針與指引
維基成就
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
臺灣正體
Abbcontains/doc
模板页面
返回页面
| ←
Template:Abbcontains/doc
查看源代码
历史
讨论 (0)
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于这些用户组的用户执行:
用户
、Fandom助手、Wiki Representative、Wiki Specialist
您没有权限编辑
Template
命名空间内的页面。
您可以查看和复制此页面的源代码。
<noinclude>{{Documentationpage}}</noinclude> Template to check whether any member of a set of game abbreviations (used by e.g. {{tl|Abb}} is part of another set of abbreviations. Returns "1" if that is the case and an empty string otherwise. Auxiliary template for [[Template:Infobox]]. ==Usage== <pre>{{abbcontains|set of abbrevations|abbrevation(s) to check for}}</pre> ===Parameters=== {{Docparam|name=<unnamed 1>|req=yes|default=|desc= The set of abbreviations of which you would like to know whether it contains the abbreviation(s) specified in <code><unnamed 2></code>. An unlimited number of abbreviations can be specified if separated with <code>sep</code>/<code>sep1</code> (see below). }} {{Docparam|name=<unnamed 2>|req=yes|default=|desc= The abbreviation(s) of which you would like to know whether it/they are contained in <code><unnamed 1></code>. Up to 10 abbreviations can be specified if separated with <code>sep</code>/<code>sep2</code> (see below). A wildcard (<code>*</code>) can be used at the end of each abbreviation which will match any number of characters; e.g. "FO3*" will match both "FO3" and "FO3OA". }} {{Docparam|name=sep|req=no|default=,|desc= The character or string with which abbreviations are separated in <code><unnamed 1></code> and <code><unnamed 2></code>. If <code>sep1</code> or <code>sep2</code> are specified, they override this parameter for the corresponding <code>unnamed</code> parameter. }} {{Docparam|name=sep1|req=no|default=<code>sep</code>|desc= The character or string with which abbreviations are separated in <code><unnamed 1></code>. Overrides <code>sep</code>. }} {{Docparam|name=sep2|req=no|default=<code>sep</code>|desc= The character or string with which abbreviations are separated in <code><unnamed 2></code>. Overrides <code>sep</code>. }} ==Examples== ===Simple=== <pre>{{abbcontains|FO1, FO2, FO3|FO3}}</pre> returns "{{abbcontains|FO1, FO2, FO3|FO3}}" because FO3 is among the abbreviations in the first set. <pre>{{abbcontains|FO1, FO2, FO3|FNV}}</pre> returns "{{abbcontains|FO1, FO2, FO3|FNV}}" (an empty string) because FNV is ''not'' among the abbreviations in the first set. ===Checking for multiple abbrevations=== <pre>{{abbcontains|FO1, FO2, FO3|FO2, FO3}}</pre> returns "{{abbcontains|FO1, FO2, FO3|FO2, FO3}}" because both FO2 and FO3 are among the abbreviations in the first set. <pre>{{abbcontains|FO1, FO2, FO3|FO3, FOT}}</pre> returns "{{abbcontains|FO1, FO2, FO3|FO3, FOT}}" because FO3 is among the abbreviations in the first set. <pre>{{abbcontains|FO1, FO2, FO3|FOT, FOBOS}}</pre> returns "{{abbcontains|FO1, FO2, FO3|FOT, FOBOS}}" (an empty string) because neither "FOT" nor "FOBOS" are among the abbreviations in the first set. ===Wildcards=== <pre>{{abbcontains|FO1, FO2, FO3|FO3*}}</pre> returns "{{abbcontains|FO1, FO2, FO3|FO3*}}" because FO3 is among the abbreviations in the first set. <pre>{{abbcontains|FO1, FO2, FO3OA|FO3*}}</pre> returns "{{abbcontains|FO1, FO2, FO3OA|FO3*}}" because FO3OA is among the abbreviations in the first set. <pre>{{abbcontains|FO1, FO2, FOT|FO3*}}</pre> returns "{{abbcontains|FO1, FO2, FOT|FO3*}}" (an empty string) because no abbreviation starting with FO3 is among the abbreviations in the first set. ===Non-standard separators=== <pre>{{abbcontains|FO1-FO2-FO3|FO3-FNV|sep=-}}</pre> returns "{{abbcontains|FO1-FO2-FO3|FO3-FNV|sep=-}}". <pre>{{abbcontains|FO1-FO2-FO3|FO3.FNV|sep1=-|sep2=.}}</pre> returns "{{abbcontains|FO1-FO2-FO3|FO3.FNV|sep1=-|sep2=.}}".
本页使用的模板:
Template:Abbcontains
(
查看源代码
)
Template:Directionbox
(
查看源代码
)
Template:Docparam
(
查看源代码
)
Template:Documentationpage
(
查看源代码
)
Template:Icon
(
查看源代码
)
Template:Tl
(
查看源代码
)
模块:Icons
(
查看源代码
)
模块:Icons/data
(
查看源代码
)
模块:Util
(
查看源代码
)
返回至“
Template:Abbcontains/doc
”。
Follow on IG
TikTok
Join Fan Lab