模板:Infobox villager:修订间差异
来自星露谷物语扩展百科
更多语言
更多操作
删除的内容 添加的内容
Margotbean(留言 | 贡献) 无编辑摘要 |
无编辑摘要 |
||
| (未显示6个用户的44个中间版本) | |||
| 第1行: | 第1行: | ||
<includeonly> |
<includeonly><div class="infoboxborder"> |
||
| ⚫ | |||
|{{ns:User}}|{{ns:User talk}}= |
|||
<tr class="infoboxtitle"> |
|||
|#default=<div id="infoboxborder"> |
|||
<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>|}}<!-- |
|||
| ⚫ | |||
| ⚫ | |||
<tr> |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
{{!}}- |
|||
</tr>|}} |
|||
| ⚫ | |||
-->{{#if:{{{location|}}}{{{address|}}}{{{livesin|}}}|<nowiki /> |
|||
| ⚫ | |||
<tr> |
|||
{{!}}- |
|||
| ⚫ | |||
| ⚫ | |||
<td class="infoboxdetail">{{#if:{{{location|{{{livesin|}}}}}}|{{#ifexist:{{{location|{{{livesin|}}}}}}|[[{{{location|{{{livesin|}}}}}}]]|{{{location|{{{livesin|}}}}}}}}{{#if:{{{address|}}}|<br />|}}|}}{{{address|}}}</td> |
|||
| ⚫ | |||
</tr>|}}<!-- |
|||
{{!}}id="infoboxdetail"{{!}}{{{friends|N/A}}}}} |
|||
-->{{#if:{{{family|}}}|<nowiki /> |
|||
{{!}}- |
|||
<tr> |
|||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
| ⚫ | |||
{{!}}- |
|||
</tr>|}}<!-- |
|||
{{!}}id="infoboxsection"{{!}}喜欢的礼物 |
|||
| ⚫ | |||
| ⚫ | |||
<tr> |
|||
{{!}}- |
|||
| ⚫ | |||
{{!}}} |
|||
| ⚫ | |||
</div>{{#if:{{{debug mode|}}}||[[Category:NPC]]}} |
|||
</tr>|}}--> |
|||
{{#ifeq:{{lc:{{{toc|}}}}} | n | |{{TOC right}}}} |
|||
{{#if:{{{favorites|{{{bestgifts|}}}}}}|<nowiki /> |
|||
}}{{InfoboxSEO}}{{#seo: |
|||
<tr> |
|||
|og:image={{#if:{{{image|}}}|{{filepath:{{{image|}}}}}?4362984378}} |
|||
<td class="infoboxsection">最爱</td> |
|||
|twitter:image:src={{#if:{{{image|}}}|{{filepath:{{{image|}}}}}?4362984378}} |
|||
<td class="infoboxdetail">{{{favorites|{{{bestgifts|}}}}}}</td> |
|||
|twitter:description={{#if:{{{description|}}}|{{{description|}}}}} |
|||
</tr>|}}<!-- |
|||
|twitter:card=summary |
|||
--> |
|||
|twitter:site=@stardewwiki |
|||
<tr> |
|||
}}</includeonly><noinclude>{{englishdoc}}</noinclude> |
|||
| ⚫ | |||
| ⚫ | |||
</tr><!-- |
|||
-->{{#if:{{{clinic|}}}|<nowiki /> |
|||
<tr> |
|||
<td class="infoboxsection">[[诊所#预约|体检日]]</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。

