Difference between revisions of "Template:Toplink"
Jump to navigation
Jump to search
m |
m |
||
| Line 2: | Line 2: | ||
|class="MainPageBG" style="width:100%; border:1px solid #cedff2; vertical-align:top; color:#000;"| | |class="MainPageBG" style="width:100%; border:1px solid #cedff2; vertical-align:top; color:#000;"| | ||
{|width="100%" style="background:#{{{backcolour|}}};" | {|width="100%" style="background:#{{{backcolour|}}};" | ||
| − | |width=" | + | |width="16%" rowspan="99"| |
| − | |width=" | + | |width="66%"|<big><center>[[{{{linkpage|}}}|'''◄BACK TO {{{linktext|}}}''']]</center></big> |
| − | |align="right" width="18%" rowspan="99" style="vertical-align:top;"|{{toplinksub |1= {{{normallink|}}} |2= {{{tablelink|}}} |3= {{{ | + | |align="right" width="18%" {{if|1={{{sublink1|}}}|2=rowspan="1"|3=rowspan="99"}} style="vertical-align:top;"|<b>{{toplinksub|1= {{{normallink|}}} |2= {{{tablelink|}}} |3= {{{contentlink|}}}|4={{{sublink1|}}}{{{sublink2|}}}{{{sublink3|}}}{{{sublink4|}}}{{{sublink5|}}}{{{sublink6|}}}{{{sublink7|}}}{{{sublink8|}}}}}</b> |
| + | |- | ||
| + | |{{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|}}}}} | ||
| + | |align="right" style="vertical-align:top;"|{{maptable|1= {{{normallink1|}}}|2={{{tablelink1|}}}|3={{{contentlink1|}}}|4={{{sublink1|}}}{{{sublink2|}}}{{{sublink3|}}}{{{sublink4|}}}{{{sublink5|}}}{{{sublink6|}}}{{{sublink7|}}}{{{sublink8|}}}}}{{maptable|1= {{{normallink2|}}}|2={{{tablelink2|}}}|3={{{contentlink2|}}}|4={{{sublink1|}}}{{{sublink2|}}}{{{sublink3|}}}{{{sublink4|}}}{{{sublink5|}}}{{{sublink6|}}}{{{sublink7|}}}{{{sublink8|}}}}}{{maptable|1= {{{normallink3|}}}|2={{{tablelink3|}}}|3={{{contentlink3|}}}|4={{{sublink1|}}}{{{sublink2|}}}{{{sublink3|}}}{{{sublink4|}}}{{{sublink5|}}}{{{sublink6|}}}{{{sublink7|}}}{{{sublink8|}}}}}{{maptable|1= {{{normallink4|}}}|2={{{tablelink4|}}}|3={{{contentlink4|}}}|4={{{sublink1|}}}{{{sublink2|}}}{{{sublink3|}}}{{{sublink4|}}}{{{sublink5|}}}{{{sublink6|}}}{{{sublink7|}}}{{{sublink8|}}}}}{{maptable|1= {{{normallink5|}}}|2={{{tablelink5|}}}|3={{{contentlink5|}}}|4={{{sublink1|}}}{{{sublink2|}}}{{{sublink3|}}}{{{sublink4|}}}{{{sublink5|}}}{{{sublink6|}}}{{{sublink7|}}}{{{sublink8|}}}}}{{maptable|1= {{{normallink6|}}}|2={{{tablelink6|}}}|3={{{contentlink6|}}}|4={{{sublink1|}}}{{{sublink2|}}}{{{sublink3|}}}{{{sublink4|}}}{{{sublink5|}}}{{{sublink6|}}}{{{sublink7|}}}{{{sublink8|}}}}}{{maptable|1= {{{normallink7|}}}|2={{{tablelink7|}}}|3={{{contentlink7|}}}|4={{{sublink1|}}}{{{sublink2|}}}{{{sublink3|}}}{{{sublink4|}}}{{{sublink5|}}}{{{sublink6|}}}{{{sublink7|}}}{{{sublink8|}}}}}{{maptable|1= {{{normallink8|}}}|2={{{tablelink8|}}}|3={{{contentlink8|}}}|4={{{sublink1|}}}{{{sublink2|}}}{{{sublink3|}}}{{{sublink4|}}}{{{sublink5|}}}{{{sublink6|}}}{{{sublink7|}}}{{{sublink8|}}}}} | ||
|} | |} | ||
|style="border:1px solid transparent"| | |style="border:1px solid transparent"| | ||
| Line 30: | Line 33: | ||
|style="background-color:#C1F0F6;"|'Homepage' name that has the table layout for that section. | |style="background-color:#C1F0F6;"|'Homepage' name that has the table layout for that section. | ||
|- | |- | ||
| − | | | + | |contentlink |
|'Homepage' name that has content map layout for that section. | |'Homepage' name that has content map layout for that section. | ||
|- | |- | ||
| Line 47: | Line 50: | ||
|linkpage = | |linkpage = | ||
|linktext = | |linktext = | ||
| + | |altstyles = | ||
|normallink = | |normallink = | ||
|tablelink = | |tablelink = | ||
| − | | | + | |contentlink = |
}} | }} | ||
===Example=== | ===Example=== | ||
| Line 57: | Line 61: | ||
|normallink = Lymphoreticular & Haematopoietic System - Anatomy & Physiology | |normallink = Lymphoreticular & Haematopoietic System - Anatomy & Physiology | ||
|tablelink = Lymphoreticular & Haematopoietic System (Table)- Anatomy & Physiology | |tablelink = Lymphoreticular & Haematopoietic System (Table)- Anatomy & Physiology | ||
| − | | | + | |contentlink = Lymphoreticular & Haematopoietic System (content Map)- Anatomy & Physiology |
}} | }} | ||
'''Gives''' | '''Gives''' | ||
| Line 65: | Line 69: | ||
|normallink = Lymphoreticular & Haematopoietic System - Anatomy & Physiology | |normallink = Lymphoreticular & Haematopoietic System - Anatomy & Physiology | ||
|tablelink = Lymphoreticular & Haematopoietic System (Table)- Anatomy & Physiology | |tablelink = Lymphoreticular & Haematopoietic System (Table)- Anatomy & Physiology | ||
| − | | | + | |contentlink = Lymphoreticular & Haematopoietic System (content Map)- Anatomy & Physiology |
}} | }} | ||
==Link for other pages== | ==Link for other pages== | ||
| Line 94: | Line 98: | ||
|linktext =Lymphoreticular & Haematopoietic System | |linktext =Lymphoreticular & Haematopoietic System | ||
|tablelink = Lymphoreticular & Haematopoietic System (Table)- Anatomy & Physiology | |tablelink = Lymphoreticular & Haematopoietic System (Table)- Anatomy & Physiology | ||
| − | | | + | |contentlink = Lymphoreticular & Haematopoietic System (content Map)- Anatomy & Physiology |
}} | }} | ||
'''Gives''' | '''Gives''' | ||
| Line 102: | Line 106: | ||
|linktext =Lymphoreticular & Haematopoietic System | |linktext =Lymphoreticular & Haematopoietic System | ||
|tablelink = Lymphoreticular & Haematopoietic System (Table)- Anatomy & Physiology | |tablelink = Lymphoreticular & Haematopoietic System (Table)- Anatomy & Physiology | ||
| − | | | + | |contentlink = Lymphoreticular & Haematopoietic System (content Map)- Anatomy & Physiology |
}} | }} | ||
| − | == | + | ==Advanced usage== |
This allows several 'back to links to be used (up to 8). | This allows several 'back to links to be used (up to 8). | ||
<nowiki>{{</nowiki>toplink | <nowiki>{{</nowiki>toplink | ||
| Line 113: | Line 117: | ||
|normallink = | |normallink = | ||
|tablelink = | |tablelink = | ||
| − | | | + | |contentlink = |
|sublink1 = | |sublink1 = | ||
|subtext1 = | |subtext1 = | ||
| Line 143: | Line 147: | ||
|linktext =LYMPHORETICULAR/HAEMOTOPOIETIC SYSTEM (Pathology) | |linktext =LYMPHORETICULAR/HAEMOTOPOIETIC SYSTEM (Pathology) | ||
|sublink1 =Lymphoreticular/Haemotopoietic System - Primary Lymphoid System | |sublink1 =Lymphoreticular/Haemotopoietic System - Primary Lymphoid System | ||
| + | |tablelink = 123 | ||
|subtext1 = PRIMARY LYMPHOID SYSTEM (Pathology) | |subtext1 = PRIMARY LYMPHOID SYSTEM (Pathology) | ||
}}</noinclude> | }}</noinclude> | ||
Revision as of 09:00, 19 July 2008
Basic usage
This template produces a 'Back to' link. Parameters:
| Parameter | Actions |
|---|---|
| backcolour | Defines colour of table background. Uses hex colours. |
| linkpage | Name of page that you want to link to. |
| linktext | Text to display for above link. |
| normallink | 'Homepage' name that has normal WikiVet layout for that section. |
| tablelink | 'Homepage' name that has the table layout for that section. |
| contentlink | 'Homepage' name that has content map layout for that section. |
| sublink1(to 8) | Name of page that you want to link to. |
| subtext1(to 8) | Text to display for above link. |
The background colour (backcolour) is optional and if not used white will be the default colour.
The template can be used in two scenarios: Links for the 'homepage' and links for other pages.
Link for 'homepage'
This provides alternative displaying options on the far right.
{{toplink
|backcolour =
|linkpage =
|linktext =
|altstyles =
|normallink =
|tablelink =
|contentlink =
}}
Example
{{toplink
|linkpage =Anatomy & Physiology
|linktext =ANATOMY & PHYSIOLOGY
|normallink = Lymphoreticular & Haematopoietic System - Anatomy & Physiology
|tablelink = Lymphoreticular & Haematopoietic System (Table)- Anatomy & Physiology
|contentlink = Lymphoreticular & Haematopoietic System (content Map)- Anatomy & Physiology
}}
Gives
|
|
Link for other pages
This provides a link back to a higher section.
{{toplink
|backcolour =
|linkpage =
|linktext =
}}
Example
{{toplink
|backcolour = FFE4E1
|linkpage =Lymphoreticular & Haematopoietic System - Anatomy & Physiology
|linktext =Lymphoreticular & Haematopoietic System
}}
Gives
|
|
OR
{{toplink
|backcolour = FFE4E1
|linkpage =Lymphoreticular & Haematopoietic System - Anatomy & Physiology
|linktext =Lymphoreticular & Haematopoietic System
|tablelink = Lymphoreticular & Haematopoietic System (Table)- Anatomy & Physiology
|contentlink = Lymphoreticular & Haematopoietic System (content Map)- Anatomy & Physiology
}}
Gives
|
|
Advanced usage
This allows several 'back to links to be used (up to 8).
{{toplink
|backcolour =
|linkpage =
|linktext =
|normallink =
|tablelink =
|contentlink =
|sublink1 =
|subtext1 =
|sublink2 =
|subtext2 =
|sublink3 =
|subtext3 =
|sublink4 =
|subtext4 =
|sublink5 =
|subtext5 =
|sublink6 =
|subtext6 =
|sublink7 =
|subtext7 =
|sublink8 =
|subtext8 =
}}
Example
{{toplink
|linkpage =Lymphoreticular/Haemotopoietic System
|linktext =LYMPHORETICULAR/HAEMOTOPOIETIC SYSTEM (Pathology)
|sublink1 =Lymphoreticular/Haemotopoietic System - Primary Lymphoid System
|subtext1 = PRIMARY LYMPHOID SYSTEM (Pathology)
}}
Gives
|
|