Template:Hierarchy
From Metabolomics.JP
(Difference between revisions)
Line 5: | Line 5: | ||
{{#if: {{{1|}}}| | {{#if: {{{1|}}}| | ||
− | + | {{#ifexist: Category:{{#substring: {{{1|}}} | 0 |{{#expr:{{#length:{{{1}}}}} -1}} | |
− | {{ | + | }} | [[Category:{{#substring: {{{1}}} | 0 |{{#expr:{{#length:{{{1}}}}} -1}} |
− | {{#ifexist: Category:{{#substring: {{{1|}}} | 0 | | + | }}]] | |
− | {{#ifexist: Category:{{#substring: {{{1|}}} | 0 | | + | {{#ifexist: Category:{{#substring: {{{1|}}} | 0 |{{#expr:{{#length:{{{1}}}}} -2}} |
− | + | }} | [[Category:{{#substring: {{{1}}} | 0 |{{#expr:{{#length:{{{1}}}}} -2}} | |
− | {{#ifexist: Category:{{#substring: {{{1|}}} | 0 | | + | }}]] | |
− | + | {{#ifexist: Category:{{#substring: {{{1|}}} | 0 | |{{#expr:{{#length:{{{1}}}}} -3}} }} | [[Category:{{#substring: {{{1}}} | 0 | |{{#expr:{{#length:{{{1}}}}} -3}} }}]] | | |
− | {{#ifexist: Category:{{#substring: {{{1|}}} | 0 | 5}} | [[Category:{{#substring: {{{1}}} | 0 | 5}}]] | | + | {{#ifexist: Category:{{#substring: {{{1|}}} | 0 ||{{#expr:{{#length:{{{1}}}}} -4}} }} | [[Category:{{#substring: {{{1}}} | 0 ||{{#expr:{{#length:{{{1}}}}} -4}} }}]] | |
− | {{#ifexist: Category:{{#substring: {{{1|}}} | 0 | | + | {{#ifexist: Category:{{#substring: {{{1|}}} | 0 ||{{#expr:{{#length:{{{1}}}}} -5}} }} | [[Category:{{#substring: {{{1}}} | 0 ||{{#expr:{{#length:{{{1}}}}} -5}} }}]] | |
− | + | {{#ifexist: Category:{{#substring: {{{1|}}} | 0 ||{{#expr:{{#length:{{{1}}}}} -6}} }} | [[Category:{{#substring: {{{1}}} | 0 ||{{#expr:{{#length:{{{1}}}}} -6}} }}]] | | |
− | {{#ifexist: Category:{{#substring: {{{1|}}} | 0 | | + | {{#ifexist: Category:{{#substring: {{{1|}}} | 0 ||{{#expr:{{#length:{{{1}}}}} -7}} }} | [[Category:{{#substring: {{{1}}} | 0 ||{{#expr:{{#length:{{{1}}}}} -7}} }}]] | |
− | {{#ifexist: Category:{{#substring: {{{1|}}} | 0 | 1}} | [[Category:{{#substring: {{{1}}} | 0 | 1}} | + | {{#ifexist: Category:{{#substring: {{{1|}}} | 0 ||{{#expr:{{#length:{{{1}}}}} -8}} }} | [[Category:{{#substring: {{{1}}} | 0 ||{{#expr:{{#length:{{{1}}}}} -8}} }}]] | |
− | }} }} }} }} }} }} }} }} }} }} }} }} | + | }} }} }} }} }} }} }} }} }} |
Revision as of 08:45, 2 March 2008
ページ名が12文字であることを前提に1文字ずつ短い名前へリンクを作成します。さらに一つ上の階層にのみカテゴリーリンクを張ります。