Changes

Jump to navigation Jump to search
3,251 bytes added ,  15:26, 14 July 2008
no edit summary
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="25%" rowspan="99"|
+
|width="33%" rowspan="99"|
|width="50%"|<big><center>[[{{{linkpage|}}}|'''◄BACK TO {{{linktext|}}}''']]</center></big>
+
|width="33%"|<big><center>[[{{{linkpage|}}}|'''◄BACK TO {{{linktext|}}}''']]</center></big>
 
|align="right" width="33%" rowspan="99" style="vertical-align:top;"|{{if|1={{{normallink|}}}|2={{toplinksub |1 = {{{normallink}}}|2 = {{{tablelink}}}|3 = {{{conceptlink}}}}}|3={{{empty|}}}}}{{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" width="33%" rowspan="99" style="vertical-align:top;"|{{if|1={{{normallink|}}}|2={{toplinksub |1 = {{{normallink}}}|2 = {{{tablelink}}}|3 = {{{conceptlink}}}}}|3={{{empty|}}}}}{{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|}}}}}
 
|}
 
|}
Line 9: Line 9:  
|}</includeonly>
 
|}</includeonly>
 
<noinclude>
 
<noinclude>
 +
==Basic usage==
 +
<p>This template produces a 'Back to' link. Parameters:
 +
{|
 +
! align="left"|Parameter
 +
! align="left"|Actions
 +
|-
 +
|style="background-color:#C1F0F6;"|backcolour
 +
|style="background-color:#C1F0F6;"|Defines colour of table background. Uses [http://www.december.com/html/spec/color.html hex colours].
 +
|-
 +
|linkpage
 +
|Name of page that you want to link to.
 +
|-
 +
|style="background-color:#C1F0F6;"|linktext
 +
|style="background-color:#C1F0F6;"|Text to display for above link.
 +
|-
 +
|normallink
 +
|'Homepage' name that has normal WikiVet layout for that section.
 +
|-
 +
|style="background-color:#C1F0F6;"|tablelink
 +
|style="background-color:#C1F0F6;"|'Homepage' name that has the table layout for that section.
 +
|-
 +
|conceptlink
 +
|'Homepage' name that has concept map layout for that section.
 +
|-
 +
|style="background-color:#C1F0F6;"|sublink1(to 8)
 +
|style="background-color:#C1F0F6;"|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: [[#Link for 'homepage'|Links for the 'homepage']] and [[#Link for other pages|links for other pages]].</p>
 +
==Link for 'homepage'==
 +
This provides alternative displaying options on the far right.
 +
<nowiki>{{</nowiki>toplink
 +
|backcolour =
 +
|linkpage =
 +
|linktext =
 +
|normallink =
 +
|tablelink =
 +
|conceptlink =
 +
}}
 +
===Example===
 +
<nowiki>{{</nowiki>toplink
 +
|linkpage =Anatomy & Physiology
 +
|linktext =ANATOMY & PHYSIOLOGY
 +
|normallink = Lymphoreticular & Haematopoietic System - Anatomy & Physiology
 +
|tablelink = Lymphoreticular & Haematopoietic System (Table)- Anatomy & Physiology
 +
|conceptlink = Lymphoreticular & Haematopoietic System (Concept Map)- Anatomy & Physiology
 +
}}
 +
'''Gives'''
 +
{{toplink
 +
|linkpage =Anatomy & Physiology
 +
|linktext =ANATOMY & PHYSIOLOGY
 +
|normallink = Lymphoreticular & Haematopoietic System - Anatomy & Physiology
 +
|tablelink = Lymphoreticular & Haematopoietic System (Table)- Anatomy & Physiology
 +
|conceptlink = Lymphoreticular & Haematopoietic System (Concept Map)- Anatomy & Physiology
 +
}}
 +
==Link for other pages==
 +
This provides a link back to a higher section.
 +
<nowiki>{{</nowiki>toplink
 +
|backcolour =
 +
|linkpage =
 +
|linktext =
 +
}}
 +
===Example===
 +
<nowiki>{{</nowiki>toplink
 +
|backcolour = FFE4E1
 +
|linkpage =Lymphoreticular & Haematopoietic System - Anatomy & Physiology
 +
|linktext =Lymphoreticular & Haematopoietic System
 +
}}
 +
'''Gives'''
 +
{{toplink
 +
|backcolour = FFE4E1
 +
|linkpage =Lymphoreticular & Haematopoietic System - Anatomy & Physiology
 +
|linktext =Lymphoreticular & Haematopoietic System
 +
}}
 +
==Advanced usage==
 +
This allows several 'back to links to be used (up to 8).
 
  <nowiki>{{</nowiki>toplink
 
  <nowiki>{{</nowiki>toplink
 
  |backcolour =
 
  |backcolour =
Line 33: Line 112:  
  |subtext8 =  
 
  |subtext8 =  
 
  }}
 
  }}
</noinclude>
+
===Example===
 +
<nowiki>{{</nowiki>toplink
 +
|linkpage =Lymphoreticular/Haemotopoietic System
 +
|linktext =LYMPHORETICULAR/HAEMOTOPOIETIC SYSTEM (Pathology)
 +
|sublink1 =Lymphoreticular/Haemotopoietic System - Primary Lymphoid System
 +
|subtext1 = PRIMARY LYMPHOID SYSTEM (Pathology)
 +
}}
 +
'''Gives'''
 +
{{toplink
 +
|linkpage =Lymphoreticular/Haemotopoietic System
 +
|linktext =LYMPHORETICULAR/HAEMOTOPOIETIC SYSTEM (Pathology)
 +
|sublink1 =Lymphoreticular/Haemotopoietic System - Primary Lymphoid System
 +
|subtext1 = PRIMARY LYMPHOID SYSTEM (Pathology)
 +
}}</noinclude>

Navigation menu