Template:Hierarchy

From Metabolomics.JP
(Difference between revisions)
Jump to: navigation, search
 
(5 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}} }}
  
 
{{#if: {{{1|}}}|
 
{{#if: {{{1|}}}|
<!--- {{#ifexist: Category:{{#substring: {{{1|}}} | 0 |11}} | [[Category:{{#substring: {{{1}}} | 0 |11}}]] | --->
+
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 |{{#expr:{{#length:{{{1}}}}} -1}}
{{Hierarchy/CategoryLink|{{{1}}}|2}} |
+
}} | [[Category:{{#substring: {{{1}}} | 0 |{{#expr:{{#length:{{{1}}}}} -1}}
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 |10}} | [[Category:{{#substring: {{{1}}} | 0 |10}}]] |
+
}}]] |
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 | 9}} | [[Category:{{#substring: {{{1}}} | 0 | 9}}]] |
+
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 |{{#expr:{{#length:{{{1}}}}} -2}}
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 | 8}} | [[Category:{{#substring: {{{1}}} | 0 | 8}}]] |
+
}} | [[Category:{{#substring: {{{1}}} | 0 |{{#expr:{{#length:{{{1}}}}} -2}}
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 | 7}} | [[Category:{{#substring: {{{1}}} | 0 | 7}}]] |
+
}}]] |
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 | 6}} | [[Category:{{#substring: {{{1}}} | 0 | 6}}]] |
+
{{#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 | 4}} | [[Category:{{#substring: {{{1}}} | 0 | 4}}]] |
+
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 ||{{#expr:{{#length:{{{1}}}}} -5}} }} | [[Category:{{#substring: {{{1}}} | 0 ||{{#expr:{{#length:{{{1}}}}} -5}} }}]] |
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 | 3}} | [[Category:{{#substring: {{{1}}} | 0 | 3}}]] |
+
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 ||{{#expr:{{#length:{{{1}}}}} -6}} }} | [[Category:{{#substring: {{{1}}} | 0 ||{{#expr:{{#length:{{{1}}}}} -6}} }}]] |
{{#ifexist: Category:{{#substring: {{{1|}}} | 0 | 2}} | [[Category:{{#substring: {{{1}}} | 0 | 2}}]] |
+
{{#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}} }}]] |
}} }} }} }} }} }} }} }} }} }} }} }}
+
}} }} }} }} }} }} }} }} }}

Latest revision as of 21:08, 8 March 2009

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




Personal tools
Namespaces

Variants
Actions
Navigation
metabolites
Toolbox