模板:Infobox villager:修订间差异
来自星露谷物语扩展百科
更多语言
更多操作
删除的内容 添加的内容
维护清理 |
无编辑摘要 |
||
| (未显示2个用户的15个中间版本) | |||
| 第1行: | 第1行: | ||
<includeonly> |
<includeonly><div class="infoboxborder"> |
||
| ⚫ | |||
|Portrait={{{portrait}}} |
|||
<tr class="infoboxtitle"> |
|||
|Name={{{name|{{PAGENAME}}}}} |
|||
<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>|}} |
|||
|Birthday={{{birthday|}}} |
|||
|Location={{{location|}}} |
|||
|Address={{{address|}}} |
|||
|Family={{{family|}}} |
|||
|Friends={{{friends|}}} |
|||
|Marriage={{{marriage|}}} |
|||
|Clinic={{{clinic|}}} |
|||
|Favorites={{{favorites|}}} |
|||
}}{{#switch:{{NAMESPACE}} |
|||
|{{ns:User}}|{{ns:User talk}}= |
|||
|#default=<div id="infoboxborder"> |
|||
| ⚫ | |||
{{!}}colspan="2" id="infoboxheader"{{#if: {{English|{{{name|{{PAGENAME}}}}}}}| class="infoboxheaderzh"|}}{{!}}{{{name|{{PAGENAME}}}}} |
|||
{{#if: {{English|{{{name|{{PAGENAME}}}}}}}| |
|||
<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> |
||
<tr> |
|||
| |
|||
<td colspan="2" class="infoboxsection">信息</td> |
|||
}} |
|||
</tr> |
|||
{{!}}- |
|||
| ⚫ | |||
{{!}}colspan="2"{{!}}{{#if: {{{portrait|}}}|[[File:{{{portrait}}}|center|link=]]|[[File:Villager Placeholder.png|center|link=]]}} |
|||
<tr> |
|||
{{!}}- |
|||
| ⚫ | |||
{{!}}colspan="2" id="infoboxsection" style="text-align: center; padding-left: 0px; padding-right: 0px;"{{!}}信息 |
|||
| ⚫ | |||
| ⚫ | |||
</tr>|}}<!-- |
|||
| ⚫ | |||
| ⚫ | |||
{{#if:{{{location|}}}|<nowiki /> |
{{#if:{{{location|}}}|<nowiki /> |
||
<tr> |
|||
{{!}}- |
|||
<td class="infoboxsection">位置</td> |
|||
<td class="infoboxdetail">[[{{{location|}}}]]</td> |
|||
</tr>|}} |
|||
-->{{#if:{{{location|}}}{{{address|}}}|<nowiki /> |
-->{{#if:{{{location|}}}{{{address|}}}{{{livesin|}}}|<nowiki /> |
||
{{!}}- |
|||
<tr> |
|||
<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 /> |
-->{{#if:{{{family|}}}|<nowiki /> |
||
<tr> |
|||
{{!}}- |
|||
<td class="infoboxsection">亲属</td> |
|||
<td class="infoboxdetail">{{{family|}}}</td> |
|||
</tr>|}}<!-- |
|||
{{#if:{{{friends|}}}|<nowiki /> |
{{#if:{{{friends|}}}|<nowiki /> |
||
<tr> |
|||
{{!}}- |
|||
<td class="infoboxsection">朋友</td> |
|||
<td class="infoboxdetail">{{{friends|}}}</td> |
|||
</tr>|}}--> |
|||
{{#if:{{{favorites|}}}|<nowiki /> |
{{#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 /> |
-->{{#if:{{{clinic|}}}|<nowiki /> |
||
<tr> |
|||
{{!}}- |
|||
<td class="infoboxsection">[[诊所#预约|体检日]]</td> |
|||
<td class="infoboxdetail">{{{clinic|}}}</td> |
|||
</tr>|}} |
|||
</table> |
|||
{{!}}} |
|||
| ⚫ | |||
</div>{{#if:{{{debug mode|}}}||[[Category:NPC]]}} |
|||
{{#ifeq:{{lc:{{{toc|}}}}} | n | |{{TOC right}}}} |
|||
| ⚫ | |||
==示例== |
==示例== |
||
{{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。

