Line 7: |
Line 7: |
| |- | | |- |
| |<span style="line-height:1;">{{if|1={{{sublink1|}}}|2={{Toplinksublink|1 = {{{sublink1}}}|2 = {{{subtext1}}}}}|3={{{empty|}}}}}{{if|1={{{sublink2|}}}|2={{Toplinksublink|1 = {{{sublink2}}}|2 = {{{subtext2}}}}}|3={{{empty|}}}}}{{if|1={{{sublink3|}}}|2={{Toplinksublink|1 = {{{sublink3}}}|2 = {{{subtext3}}}}}|3={{{empty|}}}}}{{if|1={{{sublink4|}}}|2={{Toplinksublink|1 = {{{sublink4}}}|2 = {{{subtext4}}}}}|3={{{empty|}}}}}{{if|1={{{sublink5|}}}|2={{Toplinksublink|1 = {{{sublink5}}}|2 = {{{subtext5}}}}}|3={{{empty|}}}}}{{if|1={{{sublink6|}}}|2={{Toplinksublink|1 = {{{sublink6}}}|2 = {{{subtext6}}}}}|3={{{empty|}}}}}{{if|1={{{sublink7|}}}|2={{Toplinksublink|1 = {{{sublink7}}}|2 = {{{subtext7}}}}}|3={{{empty|}}}}}{{if|1={{{sublink8|}}}|2={{Toplinksublink|1 = {{{sublink8}}}|2 = {{{subtext8}}}}}|3={{{empty|}}}}}</span> | | |<span style="line-height:1;">{{if|1={{{sublink1|}}}|2={{Toplinksublink|1 = {{{sublink1}}}|2 = {{{subtext1}}}}}|3={{{empty|}}}}}{{if|1={{{sublink2|}}}|2={{Toplinksublink|1 = {{{sublink2}}}|2 = {{{subtext2}}}}}|3={{{empty|}}}}}{{if|1={{{sublink3|}}}|2={{Toplinksublink|1 = {{{sublink3}}}|2 = {{{subtext3}}}}}|3={{{empty|}}}}}{{if|1={{{sublink4|}}}|2={{Toplinksublink|1 = {{{sublink4}}}|2 = {{{subtext4}}}}}|3={{{empty|}}}}}{{if|1={{{sublink5|}}}|2={{Toplinksublink|1 = {{{sublink5}}}|2 = {{{subtext5}}}}}|3={{{empty|}}}}}{{if|1={{{sublink6|}}}|2={{Toplinksublink|1 = {{{sublink6}}}|2 = {{{subtext6}}}}}|3={{{empty|}}}}}{{if|1={{{sublink7|}}}|2={{Toplinksublink|1 = {{{sublink7}}}|2 = {{{subtext7}}}}}|3={{{empty|}}}}}{{if|1={{{sublink8|}}}|2={{Toplinksublink|1 = {{{sublink8}}}|2 = {{{subtext8}}}}}|3={{{empty|}}}}}</span> |
− | |align="right" style="vertical-align:top;"|<span style="line-height:1;">{{if|1={{{sublink1|}}}|2={{vol|1={{{normallink1|}}}|2={{{tablelink1|}}}|3={{{contentlink1|}}}|4={{{sublink1|}}}{{{sublink2|}}}{{{sublink3|}}}{{{sublink4|}}}{{{sublink5|}}}{{{sublink6|}}}{{{sublink7|}}}{{{sublink8|}}}}}|3={{{empty|}}}}}{{if|1={{{sublink2|}}}|2={{vol|1={{{normallink2|}}}|2={{{tablelink2|}}}|3={{{contentlink2|}}}|4={{{sublink1|}}}{{{sublink2|}}}{{{sublink3|}}}{{{sublink4|}}}{{{sublink5|}}}{{{sublink6|}}}{{{sublink7|}}}{{{sublink8|}}}}}|3={{{empty|}}}}}{{if|1={{{sublink3|}}}|2={{vol|1={{{normallink3|}}}|2={{{tablelink3|}}}|3={{{contentlink3|}}}|4={{{sublink1|}}}{{{sublink2|}}}{{{sublink3|}}}{{{sublink4|}}}{{{sublink5|}}}{{{sublink6|}}}{{{sublink7|}}}{{{sublink8|}}}}}|3={{{empty|}}}}}{{if|1={{{sublink4|}}}|2={{vol|1={{{normallink4|}}}|2={{{tablelink4|}}}|3={{{contentlink4|}}}|4={{{sublink1|}}}{{{sublink2|}}}{{{sublink3|}}}{{{sublink4|}}}{{{sublink5|}}}{{{sublink6|}}}{{{sublink7|}}}{{{sublink8|}}}}}|3={{{empty|}}}}}{{if|1={{{sublink5|}}}|2={{vol|1={{{normallink5|}}}|2={{{tablelink5|}}}|3={{{contentlink5|}}}|4={{{sublink1|}}}{{{sublink2|}}}{{{sublink3|}}}{{{sublink4|}}}{{{sublink5|}}}{{{sublink6|}}}{{{sublink7|}}}{{{sublink8|}}}}}|3={{{empty|}}}}}{{if|1={{{sublink6|}}}|2={{vol|1={{{normallink6|}}}|2={{{tablelink6|}}}|3={{{contentlink6|}}}|4={{{sublink1|}}}{{{sublink2|}}}{{{sublink3|}}}{{{sublink4|}}}{{{sublink5|}}}{{{sublink6|}}}{{{sublink7|}}}{{{sublink8|}}}}}|3={{{empty|}}}}}{{if|1={{{sublink7|}}}|2={{vol|1={{{normallink7|}}}|2={{{tablelink7|}}}|3={{{contentlink7|}}}|4={{{sublink1|}}}{{{sublink2|}}}{{{sublink3|}}}{{{sublink4|}}}{{{sublink5|}}}{{{sublink6|}}}{{{sublink7|}}}{{{sublink8|}}}}}|3={{{empty|}}}}}{{if|1={{{sublink8|}}}|2={{vol|1={{{normallink8|}}}|2={{{tablelink8|}}}|3={{{contentlink8|}}}|4={{{sublink1|}}}{{{sublink2|}}}{{{sublink3|}}}{{{sublink4|}}}{{{sublink5|}}}{{{sublink6|}}}{{{sublink7|}}}{{{sublink8|}}}}}|3={{{empty|}}}}}</span>
| |
| |} | | |} |
| |style="border:1px solid transparent"| | | |style="border:1px solid transparent"| |
Line 149: |
Line 148: |
| |subtext1 = PRIMARY LYMPHOID SYSTEM (Pathology) | | |subtext1 = PRIMARY LYMPHOID SYSTEM (Pathology) |
| }} | | }} |
− | ==The full code==
| + | </noinclude> |
− | <p>It is possible to have viewing options for all of the eight sublinks as well as the main link.</p>
| |
− | <nowiki>{{</nowiki>toplink
| |
− | |backcolour =
| |
− | |linkpage =
| |
− | |linktext =
| |
− | |normallink =
| |
− | |tablelink =
| |
− | |contentlink =
| |
− | |normallink1 =
| |
− | |tablelink1 =
| |
− | |contentlink1 =
| |
− | |normallink2 =
| |
− | |tablelink2 =
| |
− | |contentlink2 =
| |
− | |normallink3 =
| |
− | |tablelink3 =
| |
− | |contentlink3 =
| |
− | |normallink4 =
| |
− | |tablelink4 =
| |
− | |contentlink4 =
| |
− | |normallink5 =
| |
− | |tablelink5 =
| |
− | |contentlink5 =
| |
− | |normallink6 =
| |
− | |tablelink6 =
| |
− | |contentlink6 =
| |
− | |normallink7 =
| |
− | |tablelink7 =
| |
− | |contentlink7 =
| |
− | |normallink8 =
| |
− | |tablelink8 =
| |
− | |contentlink8 =
| |
− | |sublink1 =
| |
− | |subtext1 =
| |
− | |sublink2 =
| |
− | |subtext2 =
| |
− | |sublink3 =
| |
− | |subtext3 =
| |
− | |sublink4 =
| |
− | |subtext4 =
| |
− | |sublink5 =
| |
− | |subtext5 =
| |
− | |sublink6 =
| |
− | |subtext6 =
| |
− | |sublink7 =
| |
− | |subtext7 =
| |
− | |sublink8 =
| |
− | |subtext8 =
| |
− | }}
| |
− | ===Example===
| |
− | <nowiki>{{</nowiki>toplink
| |
− | |linkpage =Lymphoreticular/Haemotopoietic System
| |
− | |linktext =LYMPHORETICULAR/HAEMOTOPOIETIC SYSTEM (Path)
| |
− | |normallink = ''Put in page name here''
| |
− | |tablelink = ''Put in page name here''
| |
− | |contentlink = ''Put in page name here''
| |
− | |normallink1 =''Put in page name here''
| |
− | |tablelink1 = ''Put in page name here''
| |
− | |contentlink1 = ''Put in page name here''
| |
− | |sublink1 =Lymphoreticular/Haemotopoietic System - Primary Lymphoid System
| |
− | |subtext1 = PRIMARY LYMPHOID SYSTEM (Path)
| |
− | }}
| |
− | <div id="Gives">'''Gives'''</div>
| |
− | {{toplink
| |
− | |linkpage =Lymphoreticular/Haemotopoietic System
| |
− | |linktext =LYMPHORETICULAR/HAEMOTOPOIETIC SYSTEM (Path)
| |
− | |normallink = Template:Pub
| |
− | |tablelink = Template:Pub
| |
− | |contentlink = Template:Pub
| |
− | |normallink1 = Template:Pub
| |
− | |tablelink1 = Template:Pub
| |
− | |contentlink1 = Template:Pub
| |
− | |sublink1 =Lymphoreticular/Haemotopoietic System - Primary Lymphoid System
| |
− | |subtext1 = PRIMARY LYMPHOID SYSTEM (Path)
| |
− | }}</noinclude>
| |