模板:Infobox villager:修订间差异
来自星露谷物语扩展百科
更多语言
更多操作
Margotbean(留言 | 贡献) 创建页面,内容为“<includeonly>{{#switch: {{NAMESPACE}} |{{ns:User}}= |#default=<div id="infoboxborder"> {{{!}} id="infoboxtable" {{!}}colspan=2 id="infoboxheader"{{!}}{{{name|{{PAG...” |
无编辑摘要 |
||
| (未显示6个用户的46个中间版本) | |||
| 第1行: | 第1行: | ||
<includeonly>{{ | <includeonly><div class="infoboxborder"> | ||
|{{ | <table class="infoboxtable"> | ||
| | <tr class="infoboxtitle"> | ||
{{{ | <td colspan="2" class="infoboxheader">{{{name|{{PAGENAME}}}}}</td> | ||
</tr>{{#if:{{{native|{{{eng|{{Eng|{{{name|{{PAGENAME}}}}}}}}}}}}}|<tr class="infoboxtitle"><td colspan="2" class="infoboxheader">{{{native|{{{eng|{{Eng|{{{name|{{PAGENAME}}}}}}}}}}}}}</td></tr>|}} | |||
<tr> | |||
<td colspan="2" style="padding-bottom: 0">{{#if: {{{portrait|{{{image|}}}}}}|[[File:{{{portrait|{{{image|}}}{{!}}128px}}}|center|link=]]|[[File:Villager Placeholder.png|center|link=]]}}</td> | |||
</tr> | |||
<tr> | |||
<td colspan="2" class="infoboxsection">信息</td> | |||
</tr> | |||
{{ | {{#if:{{{birthday|{{{birthDate|}}}}}}|<nowiki /> | ||
{{ | <tr> | ||
{{ | <td class="infoboxsection">生日</td> | ||
<td class="infoboxdetail">{{{birthday|{{{birthDate|}}}}}} </td> | |||
</tr>|}}<!-- | |||
{{ | {{#if:{{{location|}}}|<nowiki /> | ||
<tr> | |||
{{#if:{{{family|}}}| | <td class="infoboxsection">位置</td> | ||
<td class="infoboxdetail">[[{{{location|}}}]]</td> | |||
</tr>|}} | |||
-->{{#if:{{{location|}}}{{{address|}}}{{{livesin|}}}|<nowiki /> | |||
<tr> | |||
{{#if:{{{friends|}}}| | <td class="infoboxsection">住址</td> | ||
<td class="infoboxdetail">{{#if:{{{location|{{{livesin|}}}}}}|{{#ifexist:{{{location|{{{livesin|}}}}}}|[[{{{location|{{{livesin|}}}}}}]]|{{{location|{{{livesin|}}}}}}}}{{#if:{{{address|}}}|<br />|}}|}}{{{address|}}}</td> | |||
{{ | </tr>|}}<!-- | ||
-->{{#if:{{{family|}}}|<nowiki /> | |||
<tr> | |||
<td class="infoboxsection">亲属</td> | |||
<td class="infoboxdetail">{{{family|}}}</td> | |||
{{ | </tr>|}}<!-- | ||
{{#if:{{{friends|}}}|<nowiki /> | |||
<tr> | |||
<td class="infoboxsection">朋友</td> | |||
</div>{{ | <td class="infoboxdetail">{{{friends|}}}</td> | ||
{{ | </tr>|}}--> | ||
}}{{ | {{#if:{{{favorites|{{{bestgifts|}}}}}}|<nowiki /> | ||
| | <tr> | ||
| | <td class="infoboxsection">最爱</td> | ||
| | <td class="infoboxdetail">{{{favorites|{{{bestgifts|}}}}}}</td> | ||
| | </tr>|}}<!-- | ||
| | --> | ||
}} | <tr> | ||
<td class="infoboxsection">可攻略</td> | |||
<td class="infoboxdetail">{{#ifeq:{{{marriage|{{{marriageable|}}}}}}|是|{{{marriage|{{{marriageable|否}}}}}}{{Mainonly|[[Category:可结婚对象]]}}|{{{marriage|{{{marriageable|否}}}}}}}}</td> | |||
</tr><!-- | |||
-->{{#if:{{{clinic|}}}|<nowiki /> | |||
<tr> | |||
<td class="infoboxsection">[[诊所#预约|体检日]]</td> | |||
<td class="infoboxdetail">{{{clinic|}}}</td> | |||
</tr>|}} | |||
</table> | |||
</div>{{Mainonly|[[Category:NPC]]}}{{InfoboxSEO|image={{{portrait|}}}}}</includeonly><noinclude>{{Documentation}}{{Clear}} | |||
==示例== | |||
{{Infobox villager | |||
|name = 阿比盖尔 | |||
|portrait = Abigail.png | |||
|birthday = {{Season|Fall|13}} | |||
|location = 鹈鹕镇 | |||
|address = [[皮埃尔的杂货店]] | |||
|family = {{NPC|Pierre|父亲|size=24px}}{{NPC|Caroline|母亲|size=24px}} | |||
|friends = {{NPC|Sebastian}}{{NPC|Sam}} | |||
|marriage = 是 | |||
|clinic = {{Season|Spring|4}} | |||
|favorites = {{name|Amethyst}}{{name|Banana Pudding}}{{name|Blackberry Cobbler}}{{name|Chocolate Cake}} | |||
{{name|Monster Compendium}} | |||
{{name|Pufferfish}}{{name|Pumpkin}}{{name|Spicy Eel}} | |||
}} | |||
</noinclude> | |||
2026年1月20日 (二) 21:00的最新版本
Description
To use this template, add the 模板:T template and fill in the appropriate fields. Fields left blank will not appear in articles. This infobox template uses Fandom's infobox syntax.
Syntax
{{Infobox villager
| name =
| image =
| imagecaption =
| fullname =
| birthDate =
| gender =
| occupation =
| livesin =
| address =
| family =
| friends =
| marriageable = Yes/No
| bestgifts =
[[File:Image.png|24px]] [[InternalLink]]
[[File:Image.png|24px]] [ExternalLink ExternalName]
}}
Sample output
| Victor | |
| 信息 | |
| 生日 | 🌞 Summer 23 |
| 住址 | Pelican Town |
| 最爱 | |
| 可攻略 | Yes |
{{Infobox villager
| name = Victor
| image = Victor.png
| imagecaption =
| fullname =
| birthDate = 🌞 Summer 23
| gender = Male
| occupation = Unemployed
| livesin = [https://stardewcommunitywiki.com/Pelican_Town Pelican Town]
| address =
| family =
| friends =
| marriageable = Yes
| bestgifts =
[[File:Aged Blue Moon Wine.png|24px]] [[Aged Blue Moon Wine]]
[[File:Spaghetti.png|24px]] [https://stardewvalleywiki.com/Spaghetti Spaghetti]
[[File:Battery_Pack.png|24px]] [https://stardewvalleywiki.com/Battery_Pack Battery Pack]
[[File:Duck_Feather.png|24px]] [https://stardewvalleywiki.com/Duck_Feather Duck Feather]
[[File:Rabbit's_Foot.png|24px]] [https://stardewvalleywiki.com/Rabbit%27s_Foot Rabbit's Foot]
[[File:Golden_Pumpkin.png|24px]] [https://stardewvalleywiki.com/Golden_Pumpkin Golden Pumpkin]
[[File:Prismatic_Shard.png|24px]] [https://stardewvalleywiki.com/Prismatic_Shard Prismatic Shard]
[[File:Pearl.png|24px]] [https://stardewvalleywiki.com/Pearl Pearl]
[[File:Lunarite.png|24px]] [https://stardewcommunitywiki.com/Lunarite Lunarite]
}}
[ 查看 | 编辑 | 历史 | 刷新 ]上述文档的内容来自模板:Infobox villager/doc。

