更改
根据namespace来判断是否显示,避免分类被用户页用到
{{#if:{{BD/isYear|{{{1|}}}}}
{{#if:{{BD/isYear|{{{1|}}}}}
|[[{{{1}}}]]<includeonly>[[Category:{{{1}}}出生|{{#if:{{{5|}}}|{{{5}}}|{{PAGENAME}}}}]]</includeonly>
|[[{{{1}}}]]{{namespace||[[Category:{{{1}}}出生|{{#if:{{{5|}}}|{{{5}}}|{{PAGENAME}}}}]]}}</includeonly>
|{{{1|}}}<includeonly>[[Category:出生不详|{{#if:{{{5|}}}|{{{5}}}|{{PAGENAME}}}}]]</includeonly>
|{{{1|}}}{{namespace||[[Category:出生不详|{{#if:{{{5|}}}|{{{5}}}|{{PAGENAME}}}}]]}}</includeonly>
}}{{#if:{{Date.isMD|{{{2|}}}}}
}}{{#if:{{Date.isMD|{{{2|}}}}}
|[[{{{2}}}]]
|[[{{{2}}}]]
|{{{2|}}}
|{{{2|}}}
}}-{{#if:{{BD/isYear|{{{3|}}}}}
}}-{{#if:{{BD/isYear|{{{3|}}}}}
|[[{{{3}}}]]<includeonly>[[Category:{{{3}}}逝世|{{#if:{{{5|}}}|{{{5}}}|{{PAGENAME}}}}]]</includeonly>
|[[{{{3}}}]]{{namespace||[[Category:{{{3}}}逝世|{{#if:{{{5|}}}|{{{5}}}|{{PAGENAME}}}}]]}}</includeonly>
|{{#if:{{{3|}}}|{{{3}}}<includeonly>[[category:逝世不详|{{#if:{{{5|}}}|{{{5}}}|{{PAGENAME}}}}]]</includeonly>}}
|{{#if:{{{3|}}}|{{{3}}}{{namespace||[[category:逝世不详|{{#if:{{{5|}}}|{{{5}}}|{{PAGENAME}}}}]]}}</includeonly>}}
}}{{#if:{{Date.isMD|{{{4|}}}}}
}}{{#if:{{Date.isMD|{{{4|}}}}}
|[[{{{4}}}]]
|[[{{{4}}}]]
|{{{4|}}}
|{{{4|}}}
}}{{#if:{{{3|}}}||{{#if:{{{4|}}}
}}{{#if:{{{3|}}}||{{#if:{{{4|}}}
||<includeonly>[[Category:在世人物|{{#if:{{{5|}}}|{{{5}}}|{{PAGENAME}}}}]]</includeonly>}}}}<noinclude>
||{{namespace||[[Category:在世人物|{{#if:{{{5|}}}|{{{5}}}|{{PAGENAME}}}}]]}}}}}}<noinclude>
{{Documentation}}
{{Documentation}}
</noinclude>
</noinclude>