查看“Template:Infobox”的源代码
←
Template:Infobox
跳到导航
跳到搜索
因为以下原因,您没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看和复制此页面的源代码。
<includeonly><!-- // TRANSLATIONS // Essentially any text that gets displayed on the page should be defined here to make it easier to // port this template to other languages // If the text should be a link, provide entire link as part of the definition // NOTE: text displayed in infobox that is NOT defined here is generated by subtemplate -->{{#arraydefine:$lang_information | 信息 }}<!-- -->{{#arraydefine:$lang_source | 来源 }}<!-- -->{{#arraydefine:$lang_foundin | 觅处 }}<!-- -->{{#arraydefine:$lang_seed | 种子 }}<!-- -->{{#arraydefine:$lang_growthtime | 成熟周期 }}<!-- -->{{#arraydefine:$lang_buffs | 增益效果 }}<!-- -->{{#arraydefine:$lang_buffduration | 增益效果持续时间 }}<!-- -->{{#arraydefine:$lang_fishingxp | 钓鱼经验值 }}<!-- -->{{#arraydefine:$lang_season | 季节 }}<!-- -->{{#arraydefine:$lang_healingeffect | 治疗效果 }}<!-- -->{{#arraydefine:$lang_artisangoods | 工匠物品 }}<!-- -->{{#arraydefine:$lang_crafting | 打造 }}<!-- -->{{#arraydefine:$lang_recipesource | 配方来源 }}<!-- -->{{#arraydefine:$lang_equipment | 打造场所 }}<!-- -->{{#arraydefine:$lang_processingtime| 处理时间 }}<!-- -->{{#arraydefine:$lang_timetocraft | 工艺时间 }}<!-- -->{{#arraydefine:$lang_ingredients | 材料组分 }}<!-- -->{{#arraydefine:$lang_trapper_ingredients | 捕鱼者 材料组分 }}<!-- -->{{#arraydefine:$lang_produces | 它产生 }}<!-- -->{{#arraydefine:$lang_xp | 经验值 }}<!-- -->{{ParseInputValues|code=itype|| ,vegetable, 蔬菜, vegetables, ,fruit, 水果, fruits, }}<!-- -->{{#arraydefine:$engl_artisangoods | Artisan Goods }}<!-- // END of translations // Initialize variables -->{{#arraydefine:$quality|{{ParseInputQuality|quality={{{quality|}}}|iridium={{{iridium|}}}|hide={{{hide|}}}}}}}<!-- -->{{#arraydefine:$is_artisan|{{#if:{{{is_artisan|}}} | {{#ifeq:{{{is_artisan|}}}|0||{{{is_artisan}}}}} | {{#ifexpr: {{#if:{{#pos:{{lc:{{{source|}}}}}|{{lc:{{#arrayprint:$lang_artisangoods}}}}}}|1|0}} or {{#if:{{#pos:{{lc:{{{source|}}}}}|{{lc:{{#arrayprint:$engl_artisangoods}}}}}}|1|0}} |1}} }}}}{{#switch: {{NAMESPACE}} |{{ns:User}}|{{ns:User talk}}= |#default=<div id="infoboxborder"> {{{!}} id="infoboxtable" {{!}}colspan="2" id="infoboxheader"{{!}}{{{name|{{PAGENAME}}}}} {{!}}- {{!}}colspan="2" style="padding-bottom:5px; text-align: center;"{{!}}<!-- // Display images, using default name if necessary -->{{Autoimage |{{{image|}}}, {{{image2|}}}, {{{image3|}}}, {{{image4|}}} |eng={{{eng|}}}|separator={{#ifeq:{{{image2spacing|}}}|true|   |{{{image2spacing|}}}}}}}<nowiki/> {{!}}- {{!}}colspan="2" id="infoboxdetail" style="text-align:center;" {{!}} {{Italics|{{#if:{{{description|}}}|{{{description|}}}|{{Description|{{PAGENAME}}}}}}}} {{!}}- {{!}}colspan="2" id="infoboxsection" style="text-align:center;" {{!}} {{#arrayprint:$lang_information}} {{#if:{{{source|}}}|<nowiki/> {{!}}- {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_source}}: {{!}} id="infoboxdetail" {{!}} {{#ifexist:{{{source|}}}|[[{{{source|}}}]]|{{{source|}}}}} }}{{#if:{{{location|}}}|<nowiki/> {{!}}- {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_foundin}}: {{!}} id="infoboxdetail" {{!}} {{#ifexist:{{{location|}}}|[[{{{location|}}}]]|{{{location|}}}}} }}{{#if:{{{seed|}}}|<nowiki/> {{!}}- {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_seed}}: {{!}} id="infoboxdetail" {{!}} {{#ifexist:{{{seed|}}}|[[{{{seed|}}}]]|{{{seed|}}}}} }}{{#if:{{{growth|}}}|<nowiki/> {{!}}- {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_growthtime}}: {{!}} id="infoboxdetail" {{!}} {{{growth|}}} }}{{#if:{{{buff|}}}|<nowiki/> {{!}}- {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_buffs}}: {{!}} id="infoboxdetail" {{!}} {{{buff|}}} }}{{#if:{{{buffduration|}}}|<nowiki/> {{!}}- {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_buffduration}}: {{!}} id="infoboxdetail" {{!}} {{duration|{{{buffduration|}}}}} }}{{#if:{{{season|}}}|<nowiki/> {{!}}- {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_season}}: {{!}} id="infoboxdetail" {{!}} {{#iferror: {{Season|{{{season}}}}} | {{{season|}}} | {{Season|{{{season}}}}} }} }}{{#if:{{{xp|}}}|<nowiki /> {{!}}- {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_xp}}: {{!}} id="infoboxdetail" {{!}} {{{xp|}}} }}{{#if:{{{fishingxp|}}}|<nowiki /> {{!}}- {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_fishingxp}}: {{!}} id="infoboxdetail" {{!}} {{{fishingxp|}}} }}{{#if:{{{edibility|}}}|<nowiki/> {{!}}- <!-- // Display edibility. Use two-column format when many values: only if multiple qualities requested. But not if poison/inedible/0 -->{{#ifexpr:{{#arraysize:$quality}}>1 and {{#iferror:{{#expr:{{{edibility|0}}}>0|0|1}}|0}} |<nowiki/> {{!}} id="infoboxsection" colspan="2" style="text-align: center;" {{!}} {{#arrayprint:$lang_healingeffect}} {{!}}- {{!}} id="infoboxdetail" {{!}} {{Edibility |{{{edibility|}}} |quality={{#arrayprint:$quality|,}} |statistics=Energy}} {{!}} id="infoboxdetail" {{!}} {{Edibility |{{{edibility|}}} |quality={{#arrayprint:$quality|,}} |statistics=Health}} |<nowiki/> {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_healingeffect}}: {{!}} id="infoboxdetail" {{!}} {{Edibility |{{{edibility|}}} |quality={{#arrayprint:$quality|,}}}} }}}}<!-- // custom_price if defined provides entire text of all price-related sections -->{{#if:{{{custom_price|}}} |{{{custom_price}}}<!-- // Display all item prices: Base price plus all professions listed in {{{profession}}} // Subtemplate automatically decides how to handle multiple columns, etc. --> |{{Infosection price | prof = Base {{#if:{{{profession|}}} |, {{{profession|}}}}} | item = {{{eng|{{{name|{{PAGENAME}}}}}}}} | link = {{{name|{{PAGENAME}}}}} | price = {{{sellprice|}}} | quality = {{#arrayprint:$quality|,}} | ncolumns= {{{price_ncols|}}} }}<!-- // Add display of products and their prices. // artisan_item is new parameter, that eventually should be able to move alot of the single-item-case data // onto the individual article pags. // If artisan_item provided, use it to generate the infosection. Otherwise, fallback to old-style manual switch --> {{#if:{{{artisan_item|}}} | {{Infosection price | item = {{{artisan_item}}} | prof = {{#if:{{{artisan_prof|}}}| {{{artisan_prof}}} | Base,Artisan}} | artisan = true | link = {{{artisan_link|{{{artisan_item}}}}}} | price = {{{artisan_price|0}}} | quality = {{{artisan_qual|}}} | srcprice = {{{sellprice|}}} | ncolumns = {{{artisan_ncols|}}} | auto = true }}<!-- // Manually define various artisan_item sections // One key reason to move these details onto the individual infobox pages is for sake of translation -- so that language-specific // translations of item can be provided outside of template namespace. // (Infosection price will recognize some key item names, such as Wine, Juice, Jelly, Pickles, but doing more than that is insane) --> | {{#switch:{{ParseInputValues|code=itype|{{{type|{{{eng|{{{name|{{PAGENAME}}}}}}}}}}}|case=lc|default=true}} |sunflower = {{Infosection price|prof=base |artisan=true|auto=true|srcprice={{{sellprice|}}}|item=Oil |price=100 |quality=normal}} |hops = {{Infosection price|prof=base,artisan|artisan=true|auto=true|srcprice={{{sellprice|}}}|item=Pale Ale,Pickles |price=300}} |wheat = {{Infosection price|prof=base,artisan|artisan=true|auto=true|srcprice={{{sellprice|}}}|item=Beer,Pickles |price=200}} |honey = {{Infosection price|prof=base,artisan|artisan=true|auto=true|srcprice={{{sellprice|}}}|item=Mead |price=200 |iridium=true}} |corn = {{Infosection price|prof=base,artisan|artisan=true|auto=true|srcprice={{{sellprice|}}}|item=Juice,Pickles,Oil|price=100 |quality=normal}} |tea leaves= {{Infosection price|prof=base,artisan|artisan=true|auto=true|srcprice={{{sellprice|}}}|item=Green Tea,Pickles|price=100 |quality=normal}} |fruit |fruits = {{Infosection price|prof=base,artisan|artisan=true|auto=true|srcprice={{{sellprice|}}}|item=Wine,Jelly |price=0 |iridium=true}} |vegetables |vegetable = {{Infosection price|prof=base,artisan|artisan=true|auto=true|srcprice={{{sellprice|}}}|item=Juice,Pickles |price=0 |iridium=true}} |truffle = {{Infosection price|prof=base,artisan|artisan=true|item=Truffle Oil |price=1065|quality=normal}} |milk = {{Infosection price|prof=base,rancher,artisan|artisan=true|item=Cheese |price=230|iridium=true}} |large milk= {{Infosection price|prof=base,rancher,artisan|artisan=true|item=Cheese |price=230|quality=gold,iridium}} |goat milk = {{Infosection price|prof=base,rancher,artisan|artisan=true|item=Goat Cheese |price=400|iridium=true}} |large goat milk = {{Infosection price|prof=base,rancher,artisan|artisan=true|item=Goat Cheese |price=400|quality=gold,iridium}} |wool = {{Infosection price|prof=base,rancher,artisan|artisan=true|item=Cloth |price=470|quality=normal}} |duck egg = {{Infosection price|prof=base,rancher,artisan|artisan=true|item=Duck Mayonnaise |price=375|quality=normal}} |egg = {{Infosection price|prof=base,rancher,artisan|artisan=true|item=Mayonnaise |price=190|quality=normal}} |dinosaur egg= {{Infosection price|prof=base,rancher,artisan|artisan=true|item=Dinosaur Mayonnaise |price=800|quality=normal}} |large egg = {{Infosection price|prof=base,rancher,artisan|artisan=true|item=Mayonnaise |price=190|quality=gold}} |void egg = {{Infosection price|prof=base,rancher,artisan|artisan=true|item=Void Mayonnaise |price=275|quality=normal}}<!-- // Add artisan sections to generic item pages. Again, shouldn't be necessary any more once profession is added to original article --> |wine |juice = {{#if:{{{profession|}}}||{{Infosection price|prof=artisan|item={{{name|{{PAGENAME}}}}}|price={{{sellprice|}}}|quality=normal}}}} |aged roe = {{#if:{{{profession|}}}||{{Infosection price|prof=artisan|item={{{name|{{PAGENAME}}}}}|price={{{sellprice|}}}|quality=normal}}}} }}}}}}{{#if:{{{ingredients|}}}|<nowiki/> {{!}}- {{!}} colspan="2" id="infoboxsection" style="text-align: center;" {{!}} {{#if:{{#arrayprint:$is_artisan}} | {{#arrayprint:$lang_artisangoods}} | {{#arrayprint:$lang_crafting}} }} }}{{#if:{{{recipe|}}}|<nowiki/> {{!}}- {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_recipesource}}: {{!}} id="infoboxdetail" {{!}} {{{recipe|}}} }}{{#if:{{{craftingstation|}}}|<nowiki/> {{!}}- {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_equipment}}: {{!}} id="infoboxdetail" {{!}} {{{craftingstation|}}} }}{{#if:{{{crafttime|}}}|<nowiki/> {{!}}- {{!}} id="infoboxsection" class="no-wrap" {{!}} {{#if:{{#arrayprint:$is_artisan}} | {{#arrayprint:$lang_processingtime}} | {{#arrayprint:$lang_timetocraft}} }}: {{!}} id="infoboxdetail" {{!}} {{duration|{{{crafttime|}}}}} }}{{#if:{{{ingredients|}}}|<nowiki/> {{!}}- {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_ingredients}}: {{!}} id="infoboxdetail" {{!}} {{{ingredients|}}} }}{{#if:{{{tingredients|}}}|<!-- //Trapper Profession ingredients for Crab Pot --><nowiki/> {{!}}- {{!}} id="infoboxsection" {{!}} [[File:Trapper.png|24px|link=]] {{#arrayprint:$lang_trapper_ingredients}}: {{!}} id="infoboxdetail" {{!}} {{{tingredients|}}} }}{{#if:{{{produces|}}}|<nowiki/> {{!}}- {{!}} id="infoboxsection" {{!}} {{#arrayprint:$lang_produces}}: {{!}} id="infoboxdetail" {{!}} {{{produces|}}} }}<nowiki/> {{!}}} </div>{{InfoboxSEO}}}}</includeonly><noinclude>{{Englishdoc}} ==中文特定参数== 在此模板中使用'eng'参数将引用英语图像。 <pre>{{Infobox|eng=''英语图像名称''}}</pre></noinclude>
该页面使用的模板:
Template:Description
(
查看源代码
)
Template:Englishdoc
(
查看源代码
)(受保护)
Template:Infobox
(
查看源代码
)
Template:InfoboxSEO
(
查看源代码
)
返回至
Template:Infobox
。
导航菜单
个人工具
创建账户
登录
名字空间
模板
讨论
不转换
不转换
简体
繁體
大陆简体
香港繁體
澳門繁體
大马简体
新加坡简体
台灣正體
视图
阅读
查看源代码
查看历史
更多
搜索
导航
首页
最近更改
未翻译的页面
帮助:编辑入门
随机页面
官方链接
官方网站
官方论坛
官方商品
Discord
Reddit
工具
链入页面
相关更改
上传文件
特殊页面
页面信息