Template:Quotes/doc
不建议直接调用此模板
模板:PoQuotes已经对此模板做了封装,直接使用即可。
如果你不知道如何获得 msgctxt (游戏quote相关源代码),参见指南/生成Quote
正文
如果你想加入威爾伯的 Quote, 去把英文wiki的Banana Quotes抄过来。
使用说明: 每个角色都有一个唯一的“Quote”,顺序无关紧要(模板会自动排序)。
如果某个角色数据缺失,会留下一个空白。但对于内容,由于一群人物缺失,会出现很多空白。因此模板会检查参数"walani"
(是否存在单机角色瓦拉尼),没有的话会自动填上单机独有的空缺。
参数 "choose"
用来选择默认角色(其他的需要鼠标划过才能显示)。没选的话默认选择威爾逊,选择一个不存在的人物(比如拼写错误)可能炸掉模板,记得使用预览检查。
可选参数 "source"
表示“引用条件”,比如:“source=检查过于黑暗的东西时”。
由于文本量过大,建议每个参数都换行,否则源代码将过于瞎眼,而且比较历史差距的功能也会炸掉。
坏代码示范:
{{Quotes|maxwell=This must be game logic.|wagstaff=Strange, the gold makes it more durable, not less.|walani=I picked a good one.|warly=That looks nice.|wigfrid=Göld for göld.|webber=The finest pickaxe of them all.|wendy=At least I can smash rocks with style.|wheeler=I used a precious metal to make a rock smasher!|wickerbottom=The most malleable of metals, but let's see how this mines.|wilba='TIS PICKAXE O' SHINY|willow=It won't light rocks on fire, but at least it's shiny.|wilson=Hey, isn't gold really soft?|winona=A shiny way to smash up rocks.|wolfgang=Fancy pickaxe do better smash.|woodie=It's pretty, but can't chop down trees.|woodlegs=Thet pick is made o' mighty soft metal.|wormwood=Pretty pokey|wortox=The mortals say you have to spend gold to make gold.|wurt=It stronger than normal rock cracker.|wx78=GOLD IS MORE DURABLE?|choose=maxwell|source=when examining an [[Opulent Pickaxe]].}}
好代码示范:
{{Quotes |maxwell=This must be game logic. |wagstaff=Strange, the gold makes it more durable, not less. |walani=I picked a good one. |warly=That looks nice. |wigfrid=Göld for göld. |webber=The finest pickaxe of them all. |wendy=At least I can smash rocks with style. |wheeler=I used a precious metal to make a rock smasher! |wickerbottom=The most malleable of metals, but let's see how this mines. |wilba='TIS PICKAXE O' SHINY |willow=It won't light rocks on fire, but at least it's shiny. |wilson=Hey, isn't gold really soft? |winona=A shiny way to smash up rocks. |wolfgang=Fancy pickaxe do better smash. |woodie=It's pretty, but can't chop down trees. |woodlegs=Thet pick is made o' mighty soft metal. |wormwood=Pretty pokey |wortox=The mortals say you have to spend gold to make gold. |wurt=It stronger than normal rock cracker. |wx78=GOLD IS MORE DURABLE? |choose=maxwell |source=when examining an [[Opulent Pickaxe]]. }}
结果就像这样:
– 威爾森,when examining an Opulent Pickaxe.
– 薇洛,when examining an Opulent Pickaxe.
– 沃爾夫岡,when examining an Opulent Pickaxe.
– 溫蒂,when examining an Opulent Pickaxe.
– WX-78,when examining an Opulent Pickaxe.
– 薇克伯頓,when examining an Opulent Pickaxe.
– 伍迪,when examining an Opulent Pickaxe.
– 麥斯威爾,when examining an Opulent Pickaxe.
– 瓦格斯塔夫,when examining an Opulent Pickaxe.
– 薇格弗德,when examining an Opulent Pickaxe.
– 韋伯,when examining an Opulent Pickaxe.
– 瓦拉尼,when examining an Opulent Pickaxe.
– 沃利,when examining an Opulent Pickaxe.
– 伍德莱格,when examining an Opulent Pickaxe.
– 薇爾芭,when examining an Opulent Pickaxe.
– 沃姆伍德,when examining an Opulent Pickaxe.
– 薇勒爾,when examining an Opulent Pickaxe.
– 薇諾娜,when examining an Opulent Pickaxe.
– 沃拓克斯,when examining an Opulent Pickaxe.
– 沃特,when examining an Opulent Pickaxe.
不过上文是在编辑英文 wiki 时使用的范例,你肯定想在 Quote 里加入中文文本。
将英文原文的参数后加“_en”即可。
如:
{{Quotes ...... |wendy = 對抗夜晚的小小壁壘。 ...... |wendy_en = A tiny bulwark against the night. ...... |choose = wendy |source = 查看[[火把]]時 }}
很明显,没有人愿意一个一个的切换人物然后检查某个物品,因此建议你根据指南/生成Quote来快速的生成一个模板。