模板:Infobox villager:修订间差异
来自星露谷物语扩展百科
更多语言
更多操作
m 文本替换 - 替换“#if: {{{”为“#if:{{{” |
无编辑摘要 |
||
| (未显示同一用户的6个中间版本) | |||
| 第1行: | 第1行: | ||
<includeonly> | <includeonly><div class="infoboxborder"> | ||
<table class="infoboxtable"> | <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> | <tr> | ||
<td colspan="2" | <td colspan="2" style="padding-bottom: 0">{{#if: {{{portrait|{{{image|}}}}}}|[[File:{{{portrait|{{{image|}}}{{!}}128px}}}|center|link=]]|[[File:Villager Placeholder.png|center|link=]]}}</td> | ||
{{#if:{{{ | |||
</tr> | </tr> | ||
<tr> | <tr> | ||
<td colspan="2" class="infoboxsection">信息</td> | <td colspan="2" class="infoboxsection">信息</td> | ||
</tr> | </tr> | ||
{{#if:{{{birthday|}}}|<nowiki /> | {{#if:{{{birthday|{{{birthDate|}}}}}}|<nowiki /> | ||
<tr> | <tr> | ||
<td class="infoboxsection">生日</td> | <td class="infoboxsection">生日</td> | ||
<td class="infoboxdetail">{{{birthday|}}} </td> | <td class="infoboxdetail">{{{birthday|{{{birthDate|}}}}}} </td> | ||
</tr>|}}<!-- | </tr>|}}<!-- | ||
{{#if:{{{location|}}}|<nowiki /> | {{#if:{{{location|}}}|<nowiki /> | ||
| 第28行: | 第20行: | ||
<td class="infoboxdetail">[[{{{location|}}}]]</td> | <td class="infoboxdetail">[[{{{location|}}}]]</td> | ||
</tr>|}} | </tr>|}} | ||
-->{{#if:{{{location|}}}{{{address|}}}|<nowiki /> | -->{{#if:{{{location|}}}{{{address|}}}{{{livesin|}}}|<nowiki /> | ||
<tr> | <tr> | ||
<td class="infoboxsection">住址</td> | <td class="infoboxsection">住址</td> | ||
<td class="infoboxdetail">{{#if:{{{location|}}}|[[{{{location|}}}]]{{#if:{{{address|}}}|<br />|}}|}}{{{address|}}}</td> | <td class="infoboxdetail">{{#if:{{{location|{{{livesin|}}}}}}|{{#ifexist:{{{location|{{{livesin|}}}}}}|[[{{{location|{{{livesin|}}}}}}]]|{{{location|{{{livesin|}}}}}}}}{{#if:{{{address|}}}|<br />|}}|}}{{{address|}}}</td> | ||
</tr>|}}<!-- | </tr>|}}<!-- | ||
-->{{#if:{{{family|}}}|<nowiki /> | -->{{#if:{{{family|}}}|<nowiki /> | ||
| 第43行: | 第35行: | ||
<td class="infoboxdetail">{{{friends|}}}</td> | <td class="infoboxdetail">{{{friends|}}}</td> | ||
</tr>|}}--> | </tr>|}}--> | ||
{{#if:{{{favorites|}}}|<nowiki /> | {{#if:{{{favorites|{{{bestgifts|}}}}}}|<nowiki /> | ||
<tr> | <tr> | ||
<td class="infoboxsection">最爱</td> | <td class="infoboxsection">最爱</td> | ||
<td class="infoboxdetail">{{{favorites|}}} </td> | <td class="infoboxdetail">{{{favorites|{{{bestgifts|}}}}}}</td> | ||
</tr>|}}<!-- | </tr>|}}<!-- | ||
--> | --> | ||
<tr> | <tr> | ||
<td class="infoboxsection">可攻略</td> | <td class="infoboxsection">可攻略</td> | ||
<td class="infoboxdetail">{{#ifeq:{{{marriage|}}}|是|{{{marriage | <td class="infoboxdetail">{{#ifeq:{{{marriage|{{{marriageable|}}}}}}|是|{{{marriage|{{{marriageable|否}}}}}}{{Mainonly|[[Category:可结婚对象]]}}|{{{marriage|{{{marriageable|否}}}}}}}}</td> | ||
</tr><!-- | </tr><!-- | ||
-->{{#if:{{{clinic|}}}|<nowiki /> | -->{{#if:{{{clinic|}}}|<nowiki /> | ||
<tr> | <tr> | ||
<td class="infoboxsection">[[诊所#预约|体检日]]</td> | <td class="infoboxsection">[[诊所#预约|体检日]]</td> | ||
<td class="infoboxdetail">{{{clinic|}}} </td> | <td class="infoboxdetail">{{{clinic|}}}</td> | ||
</tr>|}} | </tr>|}} | ||
</table> | </table> | ||
</div>{{ | </div>{{Mainonly|[[Category:NPC]]}}{{InfoboxSEO|image={{{portrait|}}}}}</includeonly><noinclude>{{Documentation}}{{Clear}} | ||
}}{{InfoboxSEO|image={{{portrait|}}}}}</includeonly><noinclude>{{ | |||
==示例== | ==示例== | ||
{{Infobox villager | {{Infobox villager | ||
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。

