我在 Wikia 上有一个模板 http://shadow-of-war-mobile.wikia.com/wiki/Template:Orc
这个模板最终将只是一个通过继承链的中间人模板。
但我离题了,我需要弄清楚如何让使用模板的原始文章(例如:http ://shadow-of-war-mobile.wikia.com/wiki/Narz_the_Murderous )拥有适当的类别,其中确实如此。
我需要做的是为类别范围蔓延设置一个权宜之计。我指的是可能包含源页面的页面不需要也继承源自模板使用的类别。
源模板(http://shadow-of-war-mobile.wikia.com/wiki/Template:Orc):
<onlyinclude><div style="float:right; background-color:dimgray; width:200px">
{|
! {{{name}}}
|-
| [[File:{{{name}}}.jpg|upright|{{{name}}}]]
|-
{|
| Rank: || {{cat|{{{rank}}}|{{{name}}}}}
|-
| Class: || {{cat|{{{class}}}|{{{name}}}}}
|-
| Tribe: || {{cat|{{{tribe}}}|{{{name}}}}}
|}
|}
</div></onlyinclude>{{documentation}}[[Category:Character Templates]]
文章用法(http://shadow-of-war-mobile.wikia.com/wiki/Narz_the_Murderous):
{{Orc|name=Narz the Murderous|rank=Overlord|class=Marksman|tribe=Feral}}
问题文章:http ://shadow-of-war-mobile.wikia.com/wiki/Warlords:Talion%27s_Revenge
正如您将看到的,源文章中的相同类别也在问题文章中。
问题
我记得大约十年前,有一种方法允许源文章利用类别,同时防止任何其他文章通过嵌入来继承源文章的类别。我只是不记得采取或用来实现这一目标的方法。
我曾尝试使用谷歌找到可能的答案,但到目前为止还没有找到解决方案。