「Template:Name」修訂間的差異
跳至導覽
跳至搜尋
(修正frog egg为green frog egg,与英文版保持一致) |
|||
(未顯示由 5 位使用者於中間所作的 13 次修訂) | |||
第1行: | 第1行: | ||
<noinclude><!-- | <noinclude><!-- | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | ↓ | ||
+ | ↓ | ||
+ | ↓ | ||
提醒:物品名需要保留空格或连接符等特殊符号,但应统一为小写字母 | 提醒:物品名需要保留空格或连接符等特殊符号,但应统一为小写字母 | ||
Note: Special symbols such as spaces or connectors need to be reserved for the item name, but it should be uniformly lowercase letters | Note: Special symbols such as spaces or connectors need to be reserved for the item name, but it should be uniformly lowercase letters | ||
+ | ↑ | ||
+ | ↑ | ||
+ | ↑ | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
--></noinclude><includeonly><templatestyles src="Template:Name/styles.css" /><span class="nametemplate{{#ifeq:{{{class|}}}|inline|inline|}}">[[File:{{{1|Blank icon}}}.png|{{#if:{{{size|}}}|{{{size|}}}|24}}px|link=]] {{#if:{{{link|}}}|[[{{{link|}}}]]|{{#if:{{{alt|}}}|[[{{{alt|}}}]]|{{#switch:{{lc:{{{1|}}}}} | --></noinclude><includeonly><templatestyles src="Template:Name/styles.css" /><span class="nametemplate{{#ifeq:{{{class|}}}|inline|inline|}}">[[File:{{{1|Blank icon}}}.png|{{#if:{{{size|}}}|{{{size|}}}|24}}px|link=]] {{#if:{{{link|}}}|[[{{{link|}}}]]|{{#if:{{{alt|}}}|[[{{{alt|}}}]]|{{#switch:{{lc:{{{1|}}}}} | ||
第1,181行: | 第1,199行: | ||
|duck=[[鸭]] | |duck=[[鸭]] | ||
|dinosaur=[[恐龙]] | |dinosaur=[[恐龙]] | ||
+ | |moss=[[苔藓]] | ||
|animal catalogue=[[动物目录]] | |animal catalogue=[[动物目录]] | ||
|bait and bobber=[[鱼饵和浮漂]] | |bait and bobber=[[鱼饵和浮漂]] | ||
第1,210行: | 第1,229行: | ||
|cave jelly=[[洞穴凝胶]] | |cave jelly=[[洞穴凝胶]] | ||
|mystery box=[[谜之盒]] | |mystery box=[[谜之盒]] | ||
+ | |golden mystery box=[[金色谜之盒]] | ||
|carrot seeds=[[胡萝卜种子]] | |carrot seeds=[[胡萝卜种子]] | ||
|carrot=[[胡萝卜]] | |carrot=[[胡萝卜]] | ||
第1,226行: | 第1,246行: | ||
|gil's hat=[[吉尔的帽子]] | |gil's hat=[[吉尔的帽子]] | ||
|calico egg=[[卡利科三花蛋]] | |calico egg=[[卡利科三花蛋]] | ||
+ | |mushroom log=[[蘑菇树桩]] | ||
+ | |fish smoker=[[熏鱼机]] | ||
+ | |dehydrator=[[烘干机]] | ||
+ | |sports cap=[[棒球帽]] | ||
+ | |moss soup=[[苔藓汤]] | ||
+ | |tent kit=[[便携帐篷]] | ||
+ | |golden animal cracker=[[金色动物饼干]] | ||
+ | |challenge bait=[[挑战鱼饵]] | ||
+ | |sonar bobber=[[声纳浮漂]] | ||
+ | |golden bobber=[[黄金浮漂]] | ||
+ | |golden tag=[[黄金标签]] | ||
+ | |fancy house plant=[[精致盆栽]] | ||
+ | |pig painting=[[猪的图画]] | ||
+ | |cow decal=[[奶牛贴纸]] | ||
+ | |blue pinstripe bed=[[蓝白条纹床]] | ||
+ | |basilisk paw=[[蜥怪的爪子]] | ||
+ | |fairy box=[[仙女盒]] | ||
+ | |green frog egg=[[青蛙蛋]] | ||
+ | |golden spur=[[黄金马刺]] | ||
+ | |ice rod=[[寒冰法杖]] | ||
+ | |magic hair gel=[[魔法发胶]] | ||
+ | |magic quiver=[[魔法箭筒]] | ||
+ | |parrot egg=[[鹦鹉蛋]] | ||
|#default=[[{{{1|}}}]]}}}}}}{{#if:{{{2|}}}|({{{2|}}})|}}</span></includeonly><noinclude> | |#default=[[{{{1|}}}]]}}}}}}{{#if:{{{2|}}}|({{{2|}}})|}}</span></includeonly><noinclude> | ||
{{Englishdoc}} | {{Englishdoc}} | ||
{{{{FULLPAGENAME}}/doc}}</noinclude> | {{{{FULLPAGENAME}}/doc}}</noinclude> |
於 2024年4月25日 (四) 05:18 的修訂
有關此模板的詳細信息,請參閱英語語言文檔頁。
用法
可以通過在相關頁面上輸入以下內容來使用此模板。
{{Name}}
結果是... [[]]
說明
此模板用於將命名項目的圖像放在名稱旁,將圖像調整為 24px 寬,如果存在同名的可用文章,則使項目名稱成為連結,最後將第三個參數放在括號中以表示數量、關係或任何其他次要細節。要引用村民與 NPC,請使用 Template:NPC。
圖像大小可以通過添加 "size" 參數調整。
可以通過使用 "link" 參數添加缺失的中文翻譯。
用法
此模板可以通過在相關頁面上輸入以下內容來使用。
{{name|''英文项目名称''|''数量''}}
可選參數
如果與「數量」一同使用,所有可選參數應放在數量值之後!
- size: 要顯示的圖像大小(例如: size=48)
- link: 將名稱替換為指向其他頁面的連結
- class: 替代類。目前只有 inline 以抑制換行(例如: class=inline)
示例
{{name|Complete Breakfast|30}}
使用時,參數不是按名稱識別,而是按順序識別。 此模板的使用示例:
{{name|Corn|30}}
結果: 玉米(30)
{{name|Preserves Jar|3}}
結果: 罐頭瓶(3)
可選參數示例:
打造配方在{{name|Mining|等级9|class=inline}}时解锁。
結果: 打造配方在 採礦(等級9)時解鎖。
大小可以使用具名參數 "size" 定義:
{{name|Apple|size=48}}
結果: 蘋果
模板會自動將英文名稱翻譯為中文。如果名稱沒有被自動翻譯,可以使用具名參數 "link" 添加:
{{name|Fried Egg|link=煎鸡蛋}}
結果: 煎雞蛋
如果將 size 參數與數量一同使用,它應放在數量值之後:
{{name|Melon|3|size=48}}
結果: 甜瓜(3)
如果 link 參數與數量一同使用,它應放在數量值之後:
{{name|Corn|3|link=Grape}}
結果: 葡萄(3)