Template:Hierarchy

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
 
(7 intermediate revisions by one user not shown)
Line 1: Line 1:
 
<noinclude>ページ名が12文字であることを前提に1文字ずつ短い名前へリンクを作成します。さらに一つ上の階層にのみカテゴリーリンクを張ります。</noinclude>
 
<noinclude>ページ名が12文字であることを前提に1文字ずつ短い名前へリンクを作成します。さらに一つ上の階層にのみカテゴリーリンクを張ります。</noinclude>
 +
 +
{{#switch: {{#substring:{{{1|}}}|0|2}}
 +
|FL={{Flavonoid/Header}}
 +
|BM={{Basic Metabolism/Header}}
 +
|default=
 +
}}
  
 
{{#if: {{{1|}}} |
 
{{#if: {{{1|}}} |
Upper classes {{Hierarchy/FLItem|{{{1|}}}|2}} {{Hierarchy/FLItem|{{{1|}}}|3}} {{Hierarchy/FLItem|{{{1|}}}|4}} {{Hierarchy/FLItem|{{{1|}}}|5}} {{Hierarchy/FLItem|{{{1|}}}|6}} {{Hierarchy/FLItem|{{{1|}}}|7}} {{Hierarchy/FLItem|{{{1|}}}|8}} }}
+
Upper classes {{Hierarchy/FLItem|{{{1|}}}|2}} {{Hierarchy/FLItem|{{{1|}}}|3}} {{Hierarchy/FLItem|{{{1|}}}|4}} {{Hierarchy/FLItem|{{{1|}}}|5}} {{Hierarchy/FLItem|{{{1|}}}|6}} {{Hierarchy/FLItem|{{{1|}}}|7}} {{Hierarchy/FLItem|{{{1|}}}|8}} {{Hierarchy/FLItem|{{{1|}}}|9}} }}
 
+
<!---
+
{{Hierarchy/FLItem|{{#substring:{{{1|}}}|0|3}}|{{#SearchLine: ^&&{{#substring:{{{1|}}}|0|3}}&&|Category|FL_All}}}} {{Hierarchy/Item|{{#substring:{{{1|}}}|0|4}}|{{#SearchLine: ^&&{{#substring:{{{1|}}}|0|4}}&&|Category|FL_All}}}} {{Hierarchy/Item|{{#substring:{{{1|}}}|0|5}}|{{#SearchLine: ^&&{{#substring:{{{1|}}}|0|5}}&&|Category|FL_All}}}} {{Hierarchy/Item|{{#substring:{{{1|}}}|0|6}}|{{#SearchLine: ^&&{{#substring:{{{1|}}}|0|6}}&&|Category|FL_All}}}} {{Hierarchy/Item|{{#substring:{{{1|}}}|0|7}}|{{#SearchLine: ^&&{{#substring:{{{1|}}}|0|7}}&&|Category|FL_All}}}} {{Hierarchy/Item|{{#substring:{{{1|}}}|0|8}}|{{#SearchLine: ^&&{{#substring:{{{1|}}}|0|8}}&&|Category|FL_All}}}}--->
+
 
+
<!---{{#ifexist: Category:{{#substring: {{{1|}}} | 0 | 1}} | <nowiki>:</nowiki> [[:Category:{{#substring: {{{1}}} | 0 | 1}}|{{#substring: {{{1}}} | 0 | 1}}]] |}}
+
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 | 2}} | <nowiki>:</nowiki> [[:Category:{{#substring: {{{1}}} | 0 | 2}}|{{#substring: {{{1}}} | 0 | 2}}]] |}}
+
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 | 3}} | <nowiki>:</nowiki> [[:Category:{{#substring: {{{1}}} | 0 | 3}}|{{#substring: {{{1}}} | 0 | 3}}]] |}}
+
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 | 4}} | <nowiki>:</nowiki> [[:Category:{{#substring: {{{1}}} | 0 | 4}}|{{#substring: {{{1}}} | 0 | 4}}]] |}}
+
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 | 5}} | <nowiki>:</nowiki> [[:Category:{{#substring: {{{1}}} | 0 | 5}}|{{#substring: {{{1}}} | 0 | 5}}]] |}}
+
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 | 6}} | <nowiki>:</nowiki> [[:Category:{{#substring: {{{1}}} | 0 | 6}}|{{#substring: {{{1}}} | 0 | 6}}]] |}}
+
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 | 7}} | <nowiki>:</nowiki> [[:Category:{{#substring: {{{1}}} | 0 | 7}}|{{#substring: {{{1}}} | 0 | 7}}]] |}}
+
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 | 8}} | <nowiki>:</nowiki> [[:Category:{{#substring: {{{1}}} | 0 | 8}}|{{#substring: {{{1}}} | 0 | 8}}]] |}}
+
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 | 9}} | <nowiki>:</nowiki> [[:Category:{{#substring: {{{1}}} | 0 | 9}}|{{#substring: {{{1}}} | 0 | 9}}]] |}}
+
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 |10}} | <nowiki>:</nowiki> [[:Category:{{#substring: {{{1}}} | 0 |10}}|{{#substring: {{{1}}} | 0 |10}}]] |}}
+
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 |11}} | <nowiki>:</nowiki> [[:Category:{{#substring: {{{1}}} | 0 |11}}|{{#substring: {{{1}}} | 0 |11}}]] |}}--->
+
}}
+
  
 
{{#if: {{{1|}}}|
 
{{#if: {{{1|}}}|
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 |11}} | [[Category:{{#substring: {{{1}}} | 0 |11}}]] |
+
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 |{{#expr:{{#length:{{{1}}}}} -1}}
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 |10}} | [[Category:{{#substring: {{{1}}} | 0 |10}}]] |
+
}} | [[Category:{{#substring: {{{1}}} | 0 |{{#expr:{{#length:{{{1}}}}} -1}}
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 | 9}} | [[Category:{{#substring: {{{1}}} | 0 | 9}}]] |
+
}}]] |
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 | 8}} | [[Category:{{#substring: {{{1}}} | 0 | 8}}]] |
+
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 |{{#expr:{{#length:{{{1}}}}} -2}}
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 | 7}} | [[Category:{{#substring: {{{1}}} | 0 | 7}}]] |
+
}} | [[Category:{{#substring: {{{1}}} | 0 |{{#expr:{{#length:{{{1}}}}} -2}}
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 | 6}} | [[Category:{{#substring: {{{1}}} | 0 | 6}}]] |
+
}}]] |
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 | 5}} | [[Category:{{#substring: {{{1}}} | 0 | 5}}]] |
+
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 | |{{#expr:{{#length:{{{1}}}}} -3}} }} | [[Category:{{#substring: {{{1}}} | 0 | |{{#expr:{{#length:{{{1}}}}} -3}} }}]] |
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 | 4}} | [[Category:{{#substring: {{{1}}} | 0 | 4}}]] |
+
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 ||{{#expr:{{#length:{{{1}}}}} -4}} }} | [[Category:{{#substring: {{{1}}} | 0 ||{{#expr:{{#length:{{{1}}}}} -4}} }}]] |
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 | 3}} | [[Category:{{#substring: {{{1}}} | 0 | 3}}]] |
+
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 ||{{#expr:{{#length:{{{1}}}}} -5}} }} | [[Category:{{#substring: {{{1}}} | 0 ||{{#expr:{{#length:{{{1}}}}} -5}} }}]] |
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 | 2}} | [[Category:{{#substring: {{{1}}} | 0 | 2}}]] |
+
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 ||{{#expr:{{#length:{{{1}}}}} -6}} }} | [[Category:{{#substring: {{{1}}} | 0 ||{{#expr:{{#length:{{{1}}}}} -6}} }}]] |
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 | 1}} | [[Category:{{#substring: {{{1}}} | 0 | 1}}]] |
+
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 ||{{#expr:{{#length:{{{1}}}}} -7}} }} | [[Category:{{#substring: {{{1}}} | 0 ||{{#expr:{{#length:{{{1}}}}} -7}} }}]] |
}} }} }} }} }} }} }} }} }} }} }} }}
+
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 ||{{#expr:{{#length:{{{1}}}}} -8}} }} | [[Category:{{#substring: {{{1}}} | 0 ||{{#expr:{{#length:{{{1}}}}} -8}} }}]] |
 +
}} }} }} }} }} }} }} }} }}

Latest revision as of 21:08, 8 March 2009

ページ名が12文字であることを前提に1文字ずつ短い名前へリンクを作成します。さらに一つ上の階層にのみカテゴリーリンクを張ります。




Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox