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
其他
社群
管理员
論壇
幫助
方針與指引
維基成就
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
臺灣正體
Sourcebox/doc
模板页面
返回页面
| ←
Template:Sourcebox/doc
查看源代码
历史
讨论 (0)
因为以下原因,您没有权限编辑本页:
您请求的操作仅限属于这些用户组的用户执行:
用户
、Fandom助手、Wiki Representative、Wiki Specialist
您没有权限编辑
Template
命名空间内的页面。
您可以查看和复制此页面的源代码。
<noinclude>{{documentationpage}}</noinclude>{{Template dependencies|css=[[MediaWiki:Common.css]]}} Meta-template for constructing [[:Category:Source templates|source templates]]. It should not be used directly in articles. ==Usage== <pre> {{sourcebox |image =Example.png |link =Fallout Wiki:About |source =''[[Nukapedia]]'' |text =default |1 ={{{1}}} }} </pre> All "end" templates based on <nowiki>{{Sourcebox}}</nowiki> support various values for <code><unnamed 1></code> (if the end template properly passes its <code><unnamed 1></code> value to <nowiki>{{Sourcebox}}</nowiki> as shown above). This can be used by editors to override the <code>text</code> for specific purposes. Available options: * ''contradict'': Overrides other <code>text</code> options with the appropriate text for a contradiction to [[Fallout canon|canon]]. * ''end'': Alters the template text so it marks the end of information from the source. ===Parameters=== {{Docparam|name=<unnamed 1>|req=yes|default=|desc= This must always be added, and it must ''always'' be set to <code><nowiki>{{{1}}}</nowiki></code>. }} {{Docparam|name=link|req=yes|default=|desc= The page the image links to. }} {{Docparam|name=source|req=yes|default=|desc= The source of the tagged information. }} {{Docparam|name=source prefix|req=no|default=|desc= Allows the adding of none bold adjective, prefixed to the source. }} {{Docparam|name=text|req=yes|default=default|desc= Additional text to be displayed after "The following is based on <code>source</code>". Available options: * ''default'': "has not been confirmed by [[Fallout canon|canon]] sources" * ''contradict'': "contradicts [[Fallout canon|canon]] sources" * ''empty'': no additional text * ''prerelease'': "may be inaccurate or contain spoilers" * ''semi'': "some details might contradict [[Fallout canon|canon]]" * ''spoiler'': "may contain spoilers" * ''noncanon'': "is not considered canon" * ''nonfranchise'': "is not part of the ''Fallout'' franchise" * ''canon'': "may still be [[Fallout canon|canonical]]" }} {{Docparam|name=color|req=no|default=|desc= Color of top and bottom borders (optional, only use if necessary). Accepts standard [[wikipedia:HTML color names|HTML color names]] or [[wikipedia:Web colors#Hex triplet|RGB hex triplets]]. To ensure a standardized and professional look across all <nowiki>{{sourcebox}}</nowiki>-based templates, this should only be used very sparingly. }} {{Docparam|name=image|req=no|default=[[:File:Canonbox default.png|Canonbox default.png]]|desc= File name of image to be displayed (without "File:"). }} {{Docparam|name=px|req=no|default=50x25px|desc= Size of <code>image</code>. Only use if really necessary. }} ==Copy/paste== <pre> {{sourcebox |image = |link = |source = |text = |1 ={{{1}}} }} </pre> ==Examples== ===Canonicity=== <pre> {{sourcebox |image =FOBoSLogo.png |link =Fallout: Brotherhood of Steel |source =''[[Fallout: Brotherhood of Steel]]'' |text =default |1 ={{{1}}} }} </pre> results in: {{sourcebox |image =FOBoSLogo.png |link =Fallout: Brotherhood of Steel |source =''[[Fallout: Brotherhood of Steel]]'' |text =default |1 ={{{1}}} }} ===Spoiler=== <pre> {{sourcebox |image =Operation Anchorage logo.png |link =Operation: Anchorage (add-on) |source =''[[Operation: Anchorage (add-on)|Operation: Anchorage]]'' |text =spoiler |1 ={{{1}}} }} </pre> results in: {{sourcebox |image =Operation Anchorage logo.png |link =Operation: Anchorage (add-on) |source =''[[Operation: Anchorage (add-on)|Operation: Anchorage]]'' |text =spoiler |1 ={{{1}}} }} ==Technical== * Standardized documentation for templates based on this one: {{tl|Sourcebox/doc/standard}}
本页使用的模板:
Template:Directionbox
(
查看源代码
)
Template:Docparam
(
查看源代码
)
Template:Documentationpage
(
查看源代码
)
Template:Icon
(
查看源代码
)
Template:Mbox
(
查看源代码
)(受半保护)
Template:Sourcebox
(
查看源代码
)(受半保护)
Template:Template dependencies
(
查看源代码
)
Template:Tl
(
查看源代码
)
模块:Icons
(
查看源代码
)
模块:Icons/data
(
查看源代码
)
模块:Util
(
查看源代码
)
返回至“
Template:Sourcebox/doc
”。
Follow on IG
TikTok
Join Fan Lab