「Template:Name」修訂間的差異

出自Stardew Valley Wiki
跳至導覽 跳至搜尋
(关于物品命名规范的提醒(不会影响到模板的使用) Reminder about the naming rules of articles (will not affect the use of the template))
(修正frog egg为green frog egg,与英文版保持一致)
(未顯示由 10 位使用者於中間所作的 45 次修訂)
行 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:{{#if:{{{image|}}}|{{{image|}}}|{{{1|Blank icon}}}.{{{ext|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|}}}}}
 
|wild horseradish=[[野山葵]]
 
|wild horseradish=[[野山葵]]
 
|daffodil=[[黄水仙]]
 
|daffodil=[[黄水仙]]
行 96: 行 114:
 
|scorpion carp=[[蝎鲤鱼]]
 
|scorpion carp=[[蝎鲤鱼]]
 
|treasure chest=[[财宝箱]]
 
|treasure chest=[[财宝箱]]
|joja cola=[[joja 可乐]]
+
|joja cola=[[Joja 可乐]]
 
|trash=[[垃圾]]
 
|trash=[[垃圾]]
 
|trash (item)=[[垃圾(物品)|垃圾]]
 
|trash (item)=[[垃圾(物品)|垃圾]]
行 113: 行 131:
 
|cauliflower=[[花椰菜]]
 
|cauliflower=[[花椰菜]]
 
|potato=[[土豆]]
 
|potato=[[土豆]]
|fried egg=[[ 荷包 蛋]]
+
|fried egg=[[ 煎鸡 蛋]]
 
|omelet=[[煎蛋卷]]
 
|omelet=[[煎蛋卷]]
 
|salad=[[沙拉]]
 
|salad=[[沙拉]]
行 292: 行 310:
 
|coffee bean=[[咖啡豆]]
 
|coffee bean=[[咖啡豆]]
 
|stardrop=[[星之果实]]
 
|stardrop=[[星之果实]]
 +
|pig=[[猪]]
 +
|sheep=[[绵羊]]
 +
|goat=[[山羊]]
 
|goat milk=[[羊奶]]
 
|goat milk=[[羊奶]]
 +
|l. goat milk|large goat milk=[[大瓶羊奶]]
 
|red slime egg=[[史莱姆蛋|红色史莱姆蛋]]
 
|red slime egg=[[史莱姆蛋|红色史莱姆蛋]]
|l. goat milk|large goat milk=[[大瓶羊奶]]
 
 
|purple slime egg=[[史莱姆蛋|紫色史莱姆蛋]]
 
|purple slime egg=[[史莱姆蛋|紫色史莱姆蛋]]
 
|wool=[[动物毛]]
 
|wool=[[动物毛]]
行 515: 行 536:
 
|glacierfish=[[冰川鱼]]
 
|glacierfish=[[冰川鱼]]
 
|battery pack=[[电池组]]
 
|battery pack=[[电池组]]
|void salmon=[[ 无力的 鲑鱼]]
+
|void salmon=[[ 虚空 鲑鱼]]
 
|slimejack=[[史莱姆鱼]]
 
|slimejack=[[史莱姆鱼]]
 
|pearl=[[珍珠]]
 
|pearl=[[珍珠]]
行 535: 行 556:
 
|fishing=[[钓鱼]]
 
|fishing=[[钓鱼]]
 
|mining=[[采矿]]
 
|mining=[[采矿]]
|foraging=[[ 觅食]]
+
|foraging=[[ 采集]]
 
|fish=[[鱼]]
 
|fish=[[鱼]]
 
|bear's knowledge=[[熊的知识]]
 
|bear's knowledge=[[熊的知识]]
行 1,154: 行 1,175:
 
|hyper speed-gro=[[顶级生长激素]]
 
|hyper speed-gro=[[顶级生长激素]]
 
|deluxe fertilizer=[[顶级肥料]]
 
|deluxe fertilizer=[[顶级肥料]]
 +
|living hat=[[活的帽子]]
 +
|garbage hat=[[垃圾帽]]
 +
|skeleton mask=[[骷髅面具]]
 +
|hard hat=[[安全帽]]
 +
|arcane hat=[[神秘帽]]
 +
|knight's helmet=[[骑士头盔]]
 +
|glowstone ring=[[辉石戒指]]
 +
|glacierfish jr.=[[小冰川鱼]]
 +
|phoenix ring=[[凤凰戒指]]
 +
|lucky ring=[[幸运戒指]]
 +
|protection ring=[[保护戒指]]
 +
|legend ii=[[传说之鱼二代]]
 +
|radioactive carp=[[放射性鲤鱼]]
 +
|immunity band=[[免疫指环]]
 +
|ms. angler=[[雌鮟鱇鱼]]
 +
|son of crimsonfish=[[绯红鱼之子]]
 +
|hot java ring=[[热咖啡戒指]]
 +
|thorns ring=[[荆棘戒指]]
 +
|soul sapper ring=[[吸魂戒指]]
 +
|chicken=[[鸡]]
 +
|void chicken=[[虚空鸡]]
 +
|golden chicken=[[金色的鸡]]
 +
|duck=[[鸭]]
 +
|dinosaur=[[恐龙]]
 +
|moss=[[苔藓]]
 +
|animal catalogue=[[动物目录]]
 +
|bait and bobber=[[鱼饵和浮漂]]
 +
|book of stars=[[星之书]]
 +
|book of mysteries=[[谜之书]]
 +
|combat quarterly=[[战斗季刊]]
 +
|dwarvish safety manual=[[矮人安全手册]]
 +
|friendship 101=[[交友导论]]
 +
|horse the book=[[马术秘籍]]
 +
|jack be nimble, jack be thick=[[铜墙铁壁]]
 +
|jewels of the sea=[[海之宝石]]
 +
|mapping cave systems=[[洞穴地图绘制法]]
 +
|mining monthly=[[采矿月刊]]
 +
|monster compendium=[[怪物图鉴]]
 +
|ol' slitherlegs=[[草中窜]]
 +
|price catalogue=[[价格目录]]
 +
|queen of sauce cookbook=[[酱料女皇烹饪秘籍]]
 +
|stardew valley almanac=[[星露谷年历]]
 +
|the alleyway buffet=[[小巷自助餐]]
 +
|the art o' crabbing=[[捕蟹秘籍]]
 +
|the diamond hunter=[[钻石猎人]]
 +
|treasure appraisal guide=[[古代珍宝鉴定指南]]
 +
|way of the wind pt. 1=[[风之道 第一部分]]
 +
|way of the wind pt. 2=[[风之道 第二部分]]
 +
|woodcutter's weekly=[[樵夫周刊]]
 +
|woody's secret=[[伐木秘事]]
 +
|raccoon journal=[[浣熊日记]]
 +
|deluxe bait=[[高级鱼饵]]
 +
|cave jelly=[[洞穴凝胶]]
 +
|mystery box=[[谜之盒]]
 +
|golden mystery box=[[金色谜之盒]]
 +
|carrot seeds=[[胡萝卜种子]]
 +
|carrot=[[胡萝卜]]
 +
|summer squash seeds=[[金皮西葫芦种子]]
 +
|summer squash=[[金皮西葫芦]]
 +
|broccoli seeds=[[西蓝花种子]]
 +
|broccoli=[[西蓝花]]
 +
|powdermelon seeds=[[霜瓜种子]]
 +
|powdermelon=[[霜瓜]]
 +
|mystic tree seed=[[神秘树种]]
 +
|mystic tree=[[神秘树]]
 +
|mystic syrup=[[神秘糖浆]]
 +
|mixed flower seeds=[[混合花卉种子]]
 +
|blue pinstripe double bed=[[蓝白条纹双人床]]
 +
|stardrop tea=[[星之果茶]]
 +
|gil's hat=[[吉尔的帽子]]
 +
|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}}

結果是... Blank icon.png [[]]

說明

此模板用於將命名項目的圖像放在名稱旁,將圖像調整為 24px 寬,如果存在同名的可用文章,則使項目名稱成為鏈接,最後將第三個參數放在括號中以表示數量、關係或任何其他次要細節。要引用村民與 NPC,請使用 Template:NPC

圖像大小可以通過添加 "size" 參數調整。

可以通過使用 "link" 參數添加缺失的中文翻譯。

用法

此模板可以通過在相關頁面上輸入以下內容來使用。

{{name|''英文项目名称''|''数量''}}

可選參數

如果與「數量」一同使用,所有可選參數應放在數量值之後!

  • size: 要顯示的圖像大小(例如: size=48)
  • link: 將名稱替換為指向其他頁面的鏈接
  • class: 替代類。目前只有 inline 以抑制換行(例如: class=inline)

示例

{{name|Complete Breakfast|30}}

使用時,參數不是按名稱識別,而是按順序識別。 此模板的使用示例:

{{name|Corn|30}}

結果: Corn.png 玉米(30)

{{name|Preserves Jar|3}}

結果: Preserves Jar.png 罐頭瓶(3)

可選參數示例:

打造配方在{{name|Mining|等级9|class=inline}}时解锁。

結果: 打造配方在Mining.png 採礦(等級9)時解鎖。

大小可以使用具名參數 "size" 定義:

{{name|Apple|size=48}}

結果: Apple.png 蘋果

模板會自動將英文名稱翻譯為中文。如果名稱沒有被自動翻譯,可以使用具名參數 "link" 添加:

{{name|Fried Egg|link=煎鸡蛋}}

結果: Fried Egg.png 煎雞蛋

如果將 size 參數與數量一同使用,它應放在數量值之後:

{{name|Melon|3|size=48}}

結果: Melon.png 甜瓜(3)

如果 link 參數與數量一同使用,它應放在數量值之後:

{{name|Corn|3|link=Grape}}

結果: Corn.png 葡萄(3)