Template:Hierarchy: Difference between revisions
No edit summary |
mNo edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 2: | Line 2: | ||
{{#if: {{{1|}}} | | {{#if: {{{1|}}} | | ||
Upper classes {{#ifexist: Category:{{#substring:{{{1|}}}|0|2}}|[[:Category:{{#substring:{{{1|}}}|0|2}}|<b>{{#substring:{{{1|}}}|0|2}}</b>]]}} {{#ifexist: Category:{{#substring:{{{1|}}}|0|3}}|[[:Category:{{#substring:{{{1|}}}|0|3}}|<b>{{#substring:{{{1|}}}|0|3}}</b>]]}} | Upper classes: | ||
{{#ifexist: Category:{{#substring:{{{1|}}}|0|2}}|[[:Category:{{#substring:{{{1|}}}|0|2}}|<b>{{#substring:{{{1|}}}|0|2}}</b>]]}} | |||
{{#ifexpr:{{#length:{{{1|}}}}}>3|{{#ifexist: Category:{{#substring:{{{1|}}}|0|3}}|[[:Category:{{#substring:{{{1|}}}|0|3}}|<b>{{#substring:{{{1|}}}|0|3}}</b>]]}}}} | |||
{{#ifexpr:{{#length:{{{1|}}}}}>4|{{#ifexist: Category:{{#substring:{{{1|}}}|0|4}}|[[:Category:{{#substring:{{{1|}}}|0|4}}|<b>{{#substring:{{{1|}}}|0|4}}</b>]]}}}} | |||
{{#ifexpr:{{#length:{{{1|}}}}}>5|{{#ifexist: Category:{{#substring:{{{1|}}}|0|5}}|[[:Category:{{#substring:{{{1|}}}|0|5}}|<b>{{#substring:{{{1|}}}|0|5}}</b>]]}}}} | |||
{{#ifexpr:{{#length:{{{1|}}}}}>6|{{#ifexist: Category:{{#substring:{{{1|}}}|0|6}}|[[:Category:{{#substring:{{{1|}}}|0|6}}|<b>{{#substring:{{{1|}}}|0|6}}</b>]]}}}} | |||
}} | |||
{{#if: {{{1|}}}| | {{#if: {{{1|}}}| |
Latest revision as of 06:19, 9 March 2013
ページ名が12文字であることを前提に1文字ずつ短い名前へリンクを作成します。さらに一つ上の階層にのみカテゴリーリンクを張ります。