Difference between revisions of "Template:Toplink"

From WikiVet English
Jump to navigation Jump to search
m
 
(196 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><span style="line-height:1;">
+
<includeonly>{|style="margin:0px 0px 0px 0px; background:none;"
{|style="margin:0px 0px 0px 0px; background:none;"
+
|class="MainPageBG" style="width:100%; border:1px solid #{{{titleborder|cedff2}}}; vertical-align:top; color:#000;"|
|class="MainPageBG" style="width:100%; border:1px solid #cedff2; vertical-align:top; color:#000;"|
+
{|width="100%" cellpadding="0" cellspacing="0" style="background:rgb(224, 238, 238); margin:0;"
{|width="100%" cellpadding="0" cellspacing="0" style="background:#{{{backcolour|}}}; height:5px;"
+
|width="18%" rowspan="99"|{{ifeq|if={{{pagetype|}}}|eq=Anatomy|then={{Topmap|image=WikiAnt and Phys_Banner.png|name=Anatomy and Physiology|ver=20|hor=76}}[[Category:WikiAnat and Phys]]|else=}}{{ifeq|if={{{pagetype|}}}|eq=Pathology|then={{Topmap|image=WikiPath_Banner.png|name=WikiPath|ver=20|hor=76}}[[Category:WikiPath]]|else=}}{{ifeq|if={{{pagetype|}}}|eq=Bugs|then={{Topmap|image=WikiBugs_Banner.png|name=Infectious agents and parasites|ver=20|hor=76}}[[Category:WikiBugs]]|else=}}{{ifeq|if={{{pagetype|}}}|eq=Clinical|then={{Topmap|image=WikiClinical_Banner.png|name=WikiClinical|ver=20|hor=76}}[[Category:WikiClinical]]|else=}}{{ifeq|if={{{pagetype|}}}|eq=Blood|then={{Topmap|image=WikiBlood Banner.png|name=WikiBlood|ver=20|hor=76}}[[Category:WikiBlood]]|else=}}{{ifeq|if={{{pagetype|}}}|eq=VPH|then={{Topmap|image=WikiVPH Banner.png|name=Veterinary Public Health|ver=20|hor=76}}[[Category:WikiVPH]]|else=}}{{ifeq|if={{{pagetype|}}}|eq=Help|then={{Topmap|image=Help Banner.png|name=Help:Contents|ver=20|hor=76}}|else=}}{{ifeq|if={{{pagetype|}}}|eq=Drugs|then={{Topmap|image=WikiDrugs_Banner.png|name=WikiDrugs|ver=20|hor=76}}[[Category:WikiDrugs]]|else=}}{{ifeq|if={{{pagetype|}}}|eq=WikiNormals|then={{Topmap|image=WikiNormals Banner.png|name=WikiNormals|ver=20|hor=76}}[[Category:WikiNormals]]|else=}}{{ifeq|if={{{pagetype|}}}|eq=eLearn|then={{Topmap|image=ELearn Banner.png|name=WikiVet Learning Environment|ver=20|hor=76}}|else=}}{{ifeq|if={{{pagetype|}}}|eq=Donkey|then={{Topmap|image=Donkey Banner.png|name=Donkey|ver=20|hor=76}}|else=}}{{ifeq|if={{{pagetype|}}}|eq=Quiz|then={{Topmap|image=WikiQuiz Banner.png|name=WikiQuiz|ver=20|hor=76}}|else=}}
|width="16%" rowspan="99"|{{ifeq|if={{{pagetype|}}}|eq=Anatomy|then=[[Image:WikiAnt and Phys_Banner.png]]|else={{ifeq|if={{{pagetype|}}}|eq=Pathology|then=[[Image:WikiPath_Banner.png]]|else={{ifeq|if={{{pagetype|}}}|eq=Bugs|then=[[Image:WikiBugs_Banner.png]]|else={{ifeq|if={{{pagetype|}}}|eq=Clinical|then=[[Image:WikiClinical_Banner.png]]|else={{ifeq|if={{{pagetype|}}}|eq=Blood|then=[[Image:WikiBlood Banner.png]]|else={{ifeq|if={{{pagetype|}}}|eq=VPN|then=[[Image:WikiVPN Banner.png]]|else=}}}}}}}}}}}}
+
|width="64%" valign="middle"|{{if|1={{{sublink1|}}}|2=<span style="line-height:1;">}}<center>{{if|1={{{tablelink|}}}{{{maplink|}}}|2=<span style="color: rgb(224, 238, 238);"><font size="1">()</font></span>}}{{if|1={{{maplink|}}}|2=<span style="color: rgb(224, 238, 238);"><font size="1">Map</font></span>{{if|1={{{tablelink|}}}|2=<span style="color: rgb(224, 238, 238);"><font size="1">\</font></span>}}}}{{if|1={{{tablelink|}}}|2=<span style="color: rgb(224, 238, 238);"><font size="1">Tab</font></span>}} {{if|1={{{linkpage|}}}|2=[[{{{linkpage|}}}|<font size="2">'''{{uc:{{{linktext|}}}}}'''</font>]]}} <font size="1">{{if|1={{{tablelink|}}}{{{maplink|}}}|2=(}}{{if|1={{{maplink|}}}|2=[[{{{maplink|}}}|Map]]{{if|1={{{tablelink|}}}|2=/}}}}{{if|1={{{tablelink|}}}|2=[[{{{tablelink|}}}|Tab]]}}{{if|1={{{tablelink|}}}{{{maplink|}}}|2=)}}</font></center>{{if|1={{{sunblink1|}}}|2=</span>}}{{if|1={{{thispagenormal|}}}{{{thispagemap|}}}{{{thispagetable|}}}|2={{Toplinksublink|1={{PAGENAME}}|2=CURRENT PAGE|3={{{thispagemap|}}}|4={{{thispagetable|}}}|5={{{thispagenormal|}}}}}}}{{if|1={{{sublink1|}}}|2={{Toplinksublink|1={{{sublink1|}}}|2={{{subtext1|}}}|3={{{maplink1|}}}|4={{{tablelink1|}}}}}}}{{if|1={{{sublink2|}}}|2={{Toplinksublink|1={{{sublink2|}}}|2={{{subtext2|}}}|3={{{maplink2|}}}|4={{{tablelink2|}}}}}}}{{if|1={{{sublink3|}}}|2={{Toplinksublink|1={{{sublink3|}}}|2={{{subtext3|}}}|3={{{maplink3|}}}|4={{{tablelink3|}}}}}}}{{if|1={{{sublink4|}}}|2={{Toplinksublink|1={{{sublink4|}}}|2={{{subtext4|}}}|3={{{maplink4|}}}|4={{{tablelink4|}}}}}}}{{if|1={{{sublink5|}}}|2={{Toplinksublink|1={{{sublink5|}}}|2={{{subtext5|}}}|3={{{maplink5|}}}|4={{{tablelink5|}}}}}}}
|width="66%"|<span style="line-height:1.5;"><center>[[{{{linkpage|}}}|<font size="2">'''{{{linktext|}}}'''</font>]]</center></span>
+
{{if|1={{{sublink6|}}}|2={{Toplinksublink|1={{{sublink6|}}}|2={{{subtext6|}}}|3={{{maplink6|}}}|4={{{tablelink6|}}}}}}}{{if|1={{{sublink7|}}}|2={{Toplinksublink|1={{{sublink7|}}}|2={{{subtext7|}}}|3={{{maplink7|}}}|4={{{tablelink7|}}}}}}}{{if|1={{{sublink8|}}}|2={{Toplinksublink|1={{{sublink8|}}}|2={{{subtext8|}}}|3={{{maplink8|}}}|4={{{tablelink8|}}}}}}}
|align="right" width="18%" {{if|1={{{sublink1|}}}{{{sublink2|}}}{{{sublink3|}}}{{{sublink4|}}}{{{sublink5|}}}{{{sublink6|}}}{{{sublink7|}}}{{{sublink8|}}}{{{thispagenormal|}}}{{{thispagetable|}}}{{{thispagemap|}}}|2=rowspan="1"|3=rowspan="99"}} |<span style="line-height:1.5;"><b>{{toplinksub|1= {{{normallink|}}} |2= {{{tablelink|}}} |3= {{{maplink|}}}|4={{{sublink1|}}}{{{sublink2|}}}{{{sublink3|}}}{{{sublink4|}}}{{{sublink5|}}}{{{sublink6|}}}{{{sublink7|}}}{{{sublink8|}}}{{{thispagenormal|}}}{{{thispagetable|}}}{{{thispagemap|}}}}}</b></span>{{if|1={{{thispagenormal|}}}{{{thispagetable|}}}{{{thispagemap|}}}|2={{jor|1=CURRENT PAGE}}|3={{{empty|}}}}}{{if|1={{{thispagenormal|}}}{{{thispagetable|}}}{{{thispagemap|}}}|2={{vol|1={{{thispagenormal|}}}|2={{{thispagetable|}}}|3={{{thispagemap|}}}|4={{{sublink1|}}}{{{sublink2|}}}{{{sublink3|}}}{{{sublink4|}}}{{{sublink5|}}}{{{sublink6|}}}{{{sublink7|}}}{{{sublink8|}}}{{{thispagenormal|}}}{{{thispagetable|}}}{{{thispagemap|}}}}}|3={{{empty|}}}}}{{if|1={{{sublink1|}}}|2={{Toplinksublink|1 = {{{sublink1}}}|2 = {{{subtext1}}}}}|3={{{empty|}}}}}{{if|1={{{sublink1|}}}|2={{vol|1={{{normallink1|}}}|2={{{tablelink1|}}}|3={{{maplink1|}}}|4={{{sublink1|}}}{{{sublink2|}}}{{{sublink3|}}}{{{sublink4|}}}{{{sublink5|}}}{{{sublink6|}}}{{{sublink7|}}}{{{sublink8|}}}{{{thispagenormal|}}}{{{thispagetable|}}}{{{thispagemap|}}}}}|3={{{empty|}}}}}{{if|1={{{sublink2|}}}|2={{Toplinksublink|1 = {{{sublink2}}}|2 = {{{subtext2}}}}}|3={{{empty|}}}}}{{if|1={{{sublink2|}}}|2={{vol|1={{{normallink2|}}}|2={{{tablelink2|}}}|3={{{maplink2|}}}|4={{{sublink1|}}}{{{sublink2|}}}{{{sublink3|}}}{{{sublink4|}}}{{{sublink5|}}}{{{sublink6|}}}{{{sublink7|}}}{{{sublink8|}}}{{{thispagenormal|}}}{{{thispagetable|}}}{{{thispagemap|}}}}}|3={{{empty|}}}}}{{if|1={{{sublink3|}}}|2={{Toplinksublink|1 = {{{sublink3}}}|2 = {{{subtext3}}}}}|3={{{empty|}}}}}{{if|1={{{sublink3|}}}|2={{vol|1={{{normallink3|}}}|2={{{tablelink3|}}}|3={{{maplink3|}}}|4={{{sublink1|}}}{{{sublink2|}}}{{{sublink3|}}}{{{sublink4|}}}{{{sublink5|}}}{{{sublink6|}}}{{{sublink7|}}}{{{sublink8|}}}{{{thispagenormal|}}}{{{thispagetable|}}}{{{thispagemap|}}}}}|3={{{empty|}}}}}{{if|1={{{sublink4|}}}|2={{Toplinksublink|1 = {{{sublink4}}}|2 = {{{subtext4}}}}}|3={{{empty|}}}}}{{if|1={{{sublink4|}}}|2={{vol|1={{{normallink4|}}}|2={{{tablelink4|}}}|3={{{maplink4|}}}|4={{{sublink1|}}}{{{sublink2|}}}{{{sublink3|}}}{{{sublink4|}}}{{{sublink5|}}}{{{sublink6|}}}{{{sublink7|}}}{{{sublink8|}}}{{{thispagenormal|}}}{{{thispagetable|}}}{{{thispagemap|}}}}}|3={{{empty|}}}}}{{if|1={{{sublink5|}}}|2={{Toplinksublink|1 = {{{sublink5}}}|2 = {{{subtext5}}}}}|3={{{empty|}}}}}{{if|1={{{sublink5|}}}|2={{vol|1={{{normallink5|}}}|2={{{tablelink5|}}}|3={{{maplink5|}}}|4={{{sublink1|}}}{{{sublink2|}}}{{{sublink3|}}}{{{sublink4|}}}{{{sublink5|}}}{{{sublink6|}}}{{{sublink7|}}}{{{sublink8|}}}{{{thispagenormal|}}}{{{thispagetable|}}}{{{thispagemap|}}}}}|3={{{empty|}}}}}{{if|1={{{sublink6|}}}|2={{Toplinksublink|1 = {{{sublink6}}}|2 = {{{subtext6}}}}}|3={{{empty|}}}}}{{if|1={{{sublink6|}}}|2={{vol|1={{{normallink6|}}}|2={{{tablelink6|}}}|3={{{maplink6|}}}|4={{{sublink1|}}}{{{sublink2|}}}{{{sublink3|}}}{{{sublink4|}}}{{{sublink5|}}}{{{sublink6|}}}{{{sublink7|}}}{{{sublink8|}}}{{{thispagenormal|}}}{{{thispagetable|}}}{{{thispagemap|}}}}}|3={{{empty|}}}}}{{if|1={{{sublink7|}}}|2={{Toplinksublink|1 = {{{sublink7}}}|2 = {{{subtext7}}}}}|3={{{empty|}}}}}{{if|1={{{sublink7|}}}|2={{vol|1={{{normallink7|}}}|2={{{tablelink7|}}}|3={{{maplink7|}}}|4={{{sublink1|}}}{{{sublink2|}}}{{{sublink3|}}}{{{sublink4|}}}{{{sublink5|}}}{{{sublink6|}}}{{{sublink7|}}}{{{sublink8|}}}{{{thispagenormal|}}}{{{thispagetable|}}}{{{thispagemap|}}}}}|3={{{empty|}}}}}{{if|1={{{sublink8|}}}|2={{Toplinksublink|1 = {{{sublink8}}}|2 = {{{subtext8}}}}}|3={{{empty|}}}}}{{if|1={{{sublink8|}}}|2={{vol|1={{{normallink8|}}}|2={{{tablelink8|}}}|3={{{maplink8|}}}|4={{{sublink1|}}}{{{sublink2|}}}{{{sublink3|}}}{{{sublink4|}}}{{{sublink5|}}}{{{sublink6|}}}{{{sublink7|}}}{{{sublink8|}}}{{{thispagenormal|}}}{{{thispagetable|}}}{{{thispagemap|}}}}}|3={{{empty|}}}}}
+
|align="right" width="18%"|{{{rspace|}}}
 
|}
 
|}
 
|style="border:1px solid transparent"|
 
|style="border:1px solid transparent"|
|}</span></includeonly>
+
|}
 +
{{if|1={{{Review|}}}|2={{QuizCheck|Review={{{Review|}}}}}}}</includeonly>
 
<noinclude>
 
<noinclude>
 +
<p>''Toplink is the navigational bar found at the top of most of WikiVet pages. This page explains how to use the code and the features available. For instructions on how to use this tempalte on WikiVet please refer to this [[Help:Toplink Deployment|guide]].''</p>
 +
__TOC__
 
==Basic usage==
 
==Basic usage==
 
<p>This template produces a 'Back to' link. Parameters:
 
<p>This template produces a 'Back to' link. Parameters:
Line 17: Line 20:
 
|-
 
|-
 
|style="background-color:#C1F0F6;"|backcolour
 
|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].
+
|style="background-color:#C1F0F6;"|Redundant as of September 2008.
 
|-
 
|-
 
|linkpage
 
|linkpage
Line 25: Line 28:
 
|style="background-color:#C1F0F6;"|Text to display for above link.
 
|style="background-color:#C1F0F6;"|Text to display for above link.
 
|-
 
|-
|normallink
+
|tablelink
|'Homepage' name that has standard WikiVet layout for that section.
+
|'Homepage' name that has the table layout for that section.
 
|-
 
|-
|style="background-color:#C1F0F6;"|tablelink
+
|style="background-color:#C1F0F6;"|maplink
|style="background-color:#C1F0F6;"|'Homepage' name that has the table layout for that section.
+
|style="background-color:#C1F0F6;"|'Homepage' name that has map map layout for that section.
 
|-
 
|-
|maplink
+
|titleborder
|'Homepage' name that has map map layout for that section.
+
|Used to make toplink seem part of the front page design
 
|-
 
|-
 
|style="background-color:#C1F0F6;"|pagetype
 
|style="background-color:#C1F0F6;"|pagetype
|style="background-color:#C1F0F6;"|This applies a logo for that section, but the phrase has to be correct. Use 'Pathology' for WikiPath pages, 'Anatomy' for WikiAnt and Phys pages, 'Bugs' for WikiBugs pages, 'Clinical' for WikiClinical pages 'VPN' for WikiVPN pages and 'Blood' for WikiBlood.
+
|style="background-color:#C1F0F6;"|This applies a logo (with link to section front page) for that section, but the phrase has to be correct. Use 'Pathology' for WikiPath pages, 'Anatomy' for WikiAnt and Phys pages, 'Bugs' for WikiBugs pages, 'Clinical' for WikiClinical pages 'VPH' for WikiVPH pages, 'Blood' for WikiBlood 'Drugs' for WikiDrugs 'WikiNormals' for WikiNormals, 'Donkey' for Donkey pages, 'Quiz' for WikiQuiz pages' and 'Help' for Help pages.
 +
|-
 +
|rspace
 +
|Used to for adding content in right-hand side of toplink
 
|-
 
|-
 
|<br>
 
|<br>
 
|
 
|
 
|-
 
|-
!style="background-color:#C1F0F6;"|For these parameters
+
!style="background-color:#C1F0F6;" align="left"|For these parameters
|style="background-color:#C1F0F6;"|"CURRENT PAGE" is displayed like the sublink headings but without "◄BACK" in text, and with no link allowing for subpages to accommodate their own content maps/table views
+
|style="background-color:#C1F0F6;" align="left"|"CURRENT PAGE" is displayed like the sublink headings with no link allowing for subpages to accommodate their own content maps/table views
 
|-
 
|-
 
|thispagenormal
 
|thispagenormal
Line 58: Line 64:
 
|
 
|
 
|-
 
|-
|style="background-color:#C1F0F6;"|sublink1(to 8)  
+
|sublink1(to 8)  
|style="background-color:#C1F0F6;"|Name of page that you want to link to.
+
|Name of page that you want to link to.
 
|-
 
|-
|subtext1(to 8)
+
|style="background-color:#C1F0F6;"|subtext1(to 8)
|Text to display for above link.
+
|style="background-color:#C1F0F6;"|Text to display for above link.
|-
 
|style="background-color:#C1F0F6;"|normallink1(to 8)  
 
|style="background-color:#C1F0F6;"|'Homepage' name that has standard WikiVet layout for that section.
 
 
|-
 
|-
 
|tablelink1(to 8)
 
|tablelink1(to 8)
Line 72: Line 75:
 
|style="background-color:#C1F0F6;"|maplink1(to 8)  
 
|style="background-color:#C1F0F6;"|maplink1(to 8)  
 
|style="background-color:#C1F0F6;"|'Homepage' name that has standard WikiVet layout for that section.
 
|style="background-color:#C1F0F6;"|'Homepage' name that has standard WikiVet layout for that section.
 +
|-
 +
!align="left"|Others
 +
|
 +
|-
 +
|style="background-color:#C1F0F6;"|Review
 +
|style="background-color:#C1F0F6;"|Text input is placed into [[Template:QuizCheck|QuizCheck]] and displayed in banner under toplink
 
|}
 
|}
The background colour (backcolour) is optional and if not used white will be the default colour.  
+
</p>
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>
+
The template can have as few or as many of the above variables declared. When using map and/or table views make sure that all views are declared on each page. The template will automatically detect the current page and consequently show no link for that page.
 +
<br>
  
==Link for 'homepage'==
+
==Known Issue==
This provides alternative displaying options on the far right.
+
<p>Since the latest update of the mediawiki software some pre-existing pages have problems with the toplink tempalte. Faling to display the links to the left of "CURRENT PAGE". To rectify this issue replace the current page name with <nowiki>{{PAGENAME}}</nowiki>. For example on the content map page use: <pre>thispagemap = {{PAGENAME}}</pre></p><p><b>This issues does not affect newly created pages.</b></p>
<nowiki>{{</nowiki>toplink
 
|backcolour =
 
|linkpage =
 
|linktext =
 
|altstyles =
 
|normallink =
 
|tablelink =
 
|maplink =
 
}}
 
===Example===
 
<nowiki>{{</nowiki>toplink
 
|linkpage =Anatomy and Physiology
 
|linktext =ANATOMY & PHYSIOLOGY
 
|normallink = Lymphatic System - Anatomy & Physiology
 
|tablelink = Lymphatic System (Table) - Anatomy & Physiology
 
|maplink = Lymphatic System (Concept Map) - Anatomy & Physiology
 
|pagetype = Anatomy
 
}}
 
'''Gives'''
 
{{toplink
 
|linkpage =Anatomy and Physiology
 
|linktext =ANATOMY & PHYSIOLOGY
 
|normallink = Lymphatic System - Anatomy & Physiology
 
|tablelink = Lymphatic System  (Table) - Anatomy & Physiology
 
|maplink = Lymphatic System (Concept Map) - Anatomy & Physiology
 
|pagetype = Anatomy
 
}}
 
  
==Link for other pages==
+
==Linking back to other pages==
This provides a link back to a higher section.
+
<p>This provides a link back to a higher section. The page can either be stand alone or supported with additional views.</p>
 +
''Note: The table view is very rarely used on the wiki.''
 
  <nowiki>{{</nowiki>toplink
 
  <nowiki>{{</nowiki>toplink
|backcolour =
 
 
  |linkpage =
 
  |linkpage =
 
  |linktext =
 
  |linktext =
 
  }}
 
  }}
===Example===
+
===Examples===
 
  <nowiki>{{</nowiki>toplink
 
  <nowiki>{{</nowiki>toplink
|backcolour = f5fffa
+
  |linkpage =Lymphatic System Overview - Anatomy & Physiology
  |linkpage =Lymphatic System - Anatomy & Physiology
 
 
  |linktext =Lymphatic System
 
  |linktext =Lymphatic System
|pagetype = Anatomy
+
  }}
}}
 
 
'''Gives'''
 
'''Gives'''
 
{{toplink
 
{{toplink
|backcolour = f5fffa
+
|linkpage =Lymphatic System Overview - Anatomy & Physiology
|linkpage =Lymphatic System - Anatomy & Physiology
 
 
|linktext =Lymphatic System
 
|linktext =Lymphatic System
 
|pagetype = Anatomy
 
|pagetype = Anatomy
Line 131: Line 111:
 
<br>
 
<br>
 
  <nowiki>{{</nowiki>toplink
 
  <nowiki>{{</nowiki>toplink
|backcolour = f5fffa
+
  |linkpage =Lymphatic System Overview - Anatomy & Physiology
  |linkpage =Lymphatic System - Anatomy & Physiology
 
 
  |linktext =Lymphatic System
 
  |linktext =Lymphatic System
 
  |tablelink = Lymphatic System (Table) - Anatomy & Physiology
 
  |tablelink = Lymphatic System (Table) - Anatomy & Physiology
  |maplink = Lymphatic System (Concept Map) - Anatomy & Physiology
+
  |maplink = Lymphatic System (Content Map) - Anatomy & Physiology
 
  |pagetype = Anatomy
 
  |pagetype = Anatomy
 
  }}
 
  }}
 
'''Gives'''
 
'''Gives'''
 
{{toplink
 
{{toplink
|backcolour = f5fffa
+
|linkpage =Lymphatic System Overview - Anatomy & Physiology
|linkpage =Lymphatic System - Anatomy & Physiology
 
 
|linktext =Lymphatic System
 
|linktext =Lymphatic System
 
|tablelink = Lymphatic System (Table) - Anatomy & Physiology
 
|tablelink = Lymphatic System (Table) - Anatomy & Physiology
|maplink = Lymphatic System (Concept Map)- Anatomy & Physiology
+
|maplink = Lymphatic System (Content Map) - Anatomy & Physiology
 
|pagetype = Anatomy
 
|pagetype = Anatomy
 
}}
 
}}
  
==Further usage==
+
==Using sublinks==
This allows several 'back to' links to be used (up to 8).
+
This allows several 'back to' links to be used (up to 8). Sublinks can be used without <code>linkpage</code> or <code>linktext</code> being defined.They are a smaller font than that used for <code>linktext</code>.
 
  <nowiki>{{</nowiki>toplink
 
  <nowiki>{{</nowiki>toplink
|backcolour =
 
 
  |linkpage =
 
  |linkpage =
 
  |linktext =
 
  |linktext =
|normallink =
 
 
  |tablelink =  
 
  |tablelink =  
 
  |maplink =
 
  |maplink =
 
  |sublink1 =  
 
  |sublink1 =  
 
  |subtext1 =  
 
  |subtext1 =  
  |sublink2 =  
+
  |sublink(2-8) =  
  |subtext2 =
+
  |subtext(2-8)=  
|sublink3 =
 
|subtext3 =
 
|sublink4 =
 
|subtext4 =
 
|sublink5 =
 
|subtext5 =
 
|sublink6 =
 
|subtext6 =
 
|sublink7 =
 
|subtext7 =
 
|sublink8 =
 
|subtext8 =  
 
 
  }}
 
  }}
 
===Example===
 
===Example===
 
  <nowiki>{{</nowiki>toplink
 
  <nowiki>{{</nowiki>toplink
 
  |linkpage =Lymphoreticular & Haematopoietic System - Pathology
 
  |linkpage =Lymphoreticular & Haematopoietic System - Pathology
  |linktext =LYMPHORETICULAR & HAEMATOPOIETIC SYSTEM (Pathology)
+
  |linktext =LYMPHORETICULAR & HAEMATOPOIETIC SYSTEM
 
  |sublink1 =Primary Lymphoid System - Pathology
 
  |sublink1 =Primary Lymphoid System - Pathology
  |subtext1 = PRIMARY LYMPHOID SYSTEM (Pathology)
+
  |subtext1 = PRIMARY LYMPHOID SYSTEM
 
  |pagetype = Pathology
 
  |pagetype = Pathology
 
  }}
 
  }}
Line 185: Line 149:
 
{{toplink
 
{{toplink
 
|linkpage =Lymphoreticular & Haematopoietic System - Pathology
 
|linkpage =Lymphoreticular & Haematopoietic System - Pathology
|linktext =LYMPHORETICULAR & HAEMATOPOIETIC SYSTEM (Pathology)
+
|linktext =LYMPHORETICULAR & HAEMATOPOIETIC SYSTEM
 
|sublink1 =Primary Lymphoid System - Pathology
 
|sublink1 =Primary Lymphoid System - Pathology
|subtext1 = PRIMARY LYMPHOID SYSTEM (Pathology)
+
|subtext1 = PRIMARY LYMPHOID SYSTEM
 
|pagetype = Pathology
 
|pagetype = Pathology
 
}}
 
}}
Line 194: Line 158:
 
<p>It is possible to have viewing options for all of the eight sublinks as well as the main link.</p>
 
<p>It is possible to have viewing options for all of the eight sublinks as well as the main link.</p>
 
  <nowiki>{{</nowiki>toplink
 
  <nowiki>{{</nowiki>toplink
|backcolour =
 
 
  |linkpage =
 
  |linkpage =
 
  |linktext =
 
  |linktext =
|normallink =
 
 
  |tablelink =  
 
  |tablelink =  
 
  |maplink =
 
  |maplink =
 
  |pagetype =  
 
  |pagetype =  
 +
|titleborder =
 
  |thispagenormal=
 
  |thispagenormal=
 
  |thispagetable =
 
  |thispagetable =
 
  |thispagemap =  
 
  |thispagemap =  
  |normallink1 =
+
  |sublink1 =
 +
|subtext1 =
 +
|sublink2 =
 +
|subtext2 =
 +
|sublink3 =
 +
|subtext3 =
 +
|sublink4 =
 +
|subtext4 =
 +
|sublink5 =
 +
|subtext5 =
 +
|sublink6 =
 +
|subtext6 =
 +
|sublink7 =
 +
|subtext7 =
 +
|sublink8 =
 +
|subtext8 =  
 
  |tablelink1 =  
 
  |tablelink1 =  
 
  |maplink1 =  
 
  |maplink1 =  
|normallink2 =
 
 
  |tablelink2 =  
 
  |tablelink2 =  
 
  |maplink2 =  
 
  |maplink2 =  
|normallink3 =
 
 
  |tablelink3 =  
 
  |tablelink3 =  
 
  |maplink3 =  
 
  |maplink3 =  
|normallink4 =
 
 
  |tablelink4 =  
 
  |tablelink4 =  
 
  |maplink4 =  
 
  |maplink4 =  
|normallink5 =
 
 
  |tablelink5 =  
 
  |tablelink5 =  
 
  |maplink5 =  
 
  |maplink5 =  
|normallink6 =
 
 
  |tablelink6 =  
 
  |tablelink6 =  
 
  |maplink6 =   
 
  |maplink6 =   
|normallink7 =
 
 
  |tablelink7 =  
 
  |tablelink7 =  
 
  |maplink7 =   
 
  |maplink7 =   
|normallink8 =
 
 
  |tablelink8 =  
 
  |tablelink8 =  
 
  |maplink8 =   
 
  |maplink8 =   
  |sublink1 =
+
  |rspace=
|subtext1 =
 
|sublink2 =
 
|subtext2 =
 
|sublink3 =
 
|subtext3 =
 
|sublink4 =
 
|subtext4 =
 
|sublink5 =
 
|subtext5 =
 
|sublink6 =
 
|subtext6 =
 
|sublink7 =
 
|subtext7 =
 
|sublink8 =
 
|subtext8 =  
 
 
  }}
 
  }}
 
===Example===
 
===Example===
Line 249: Line 205:
 
  |linkpage =Lymphoreticular & Haematopoietic System - Pathology
 
  |linkpage =Lymphoreticular & Haematopoietic System - Pathology
 
  |linktext =LYMPHORETICULAR & HAEMATOPOIETIC SYSTEM (Pathology)
 
  |linktext =LYMPHORETICULAR & HAEMATOPOIETIC SYSTEM (Pathology)
|normallink = ''Put in page name here''
 
 
  |tablelink = ''Put in page name here''
 
  |tablelink = ''Put in page name here''
 
  |maplink = ''Put in page name here''
 
  |maplink = ''Put in page name here''
 
  |pagetype = Pathology
 
  |pagetype = Pathology
|normallink1 =''Put in page name here''
 
 
  |tablelink1 = ''Put in page name here''
 
  |tablelink1 = ''Put in page name here''
 
  |maplink1 = ''Put in page name here''
 
  |maplink1 = ''Put in page name here''
Line 262: Line 216:
 
{{toplink
 
{{toplink
 
|linkpage =Lymphoreticular & Haematopoietic System - Pathology
 
|linkpage =Lymphoreticular & Haematopoietic System - Pathology
|linktext =LYMPHORETICULAR & HAEMATOPOIETIC SYSTEM (Pathology)
+
|linktext =LYMPHORETICULAR & HAEMATOPOIETIC SYSTEM
|tablelink = Template:Pub
+
|tablelink = Template:Toplink
|maplink = Template:Pub
+
|maplink = Template:Toplink
 
|pagetype = Pathology
 
|pagetype = Pathology
|tablelink1 = Template:Pub
+
|maplink1 = Template:Toplink
|maplink1 = Template:Pub
 
 
|sublink1 =Primary Lymphoid System - Pathology
 
|sublink1 =Primary Lymphoid System - Pathology
|subtext1 = PRIMARY LYMPHOID SYSTEM (Pathology)
+
|subtext1 = PRIMARY LYMPHOID SYSTEM
 
|sublink2 =Secondary Lymphoid System - Pathology
 
|sublink2 =Secondary Lymphoid System - Pathology
|subtext2 = SECONDARY LYMPHOID SYSTEM (Pathology)
+
|subtext2 = SECONDARY LYMPHOID SYSTEM
|tablelink2 = Template:Pub
+
|tablelink2 = Template:Toplink
|maplink2 = Template:Pub
 
 
}}</noinclude>
 
}}</noinclude>

Latest revision as of 16:40, 9 December 2020


Toplink is the navigational bar found at the top of most of WikiVet pages. This page explains how to use the code and the features available. For instructions on how to use this tempalte on WikiVet please refer to this guide.

Basic usage

This template produces a 'Back to' link. Parameters:

Parameter Actions
backcolour Redundant as of September 2008.
linkpage Name of page that you want to link to.
linktext Text to display for above link.
tablelink 'Homepage' name that has the table layout for that section.
maplink 'Homepage' name that has map map layout for that section.
titleborder Used to make toplink seem part of the front page design
pagetype This applies a logo (with link to section front page) for that section, but the phrase has to be correct. Use 'Pathology' for WikiPath pages, 'Anatomy' for WikiAnt and Phys pages, 'Bugs' for WikiBugs pages, 'Clinical' for WikiClinical pages 'VPH' for WikiVPH pages, 'Blood' for WikiBlood 'Drugs' for WikiDrugs 'WikiNormals' for WikiNormals, 'Donkey' for Donkey pages, 'Quiz' for WikiQuiz pages' and 'Help' for Help pages.
rspace Used to for adding content in right-hand side of toplink

For these parameters "CURRENT PAGE" is displayed like the sublink headings with no link allowing for subpages to accommodate their own content maps/table views
thispagenormal 'Homepage' name that has standard WikiVet layout for the current page.
thispagetable 'Homepage' name that has standard WikiVet layout for the current page.
thispagemap 'Homepage' name that has standard WikiVet layout for the current page.

Subheadings
sublink1(to 8) Name of page that you want to link to.
subtext1(to 8) Text to display for above link.
tablelink1(to 8) 'Homepage' name that has the table layout for that section.
maplink1(to 8) 'Homepage' name that has standard WikiVet layout for that section.
Others
Review Text input is placed into QuizCheck and displayed in banner under toplink

The template can have as few or as many of the above variables declared. When using map and/or table views make sure that all views are declared on each page. The template will automatically detect the current page and consequently show no link for that page.

Known Issue

Since the latest update of the mediawiki software some pre-existing pages have problems with the toplink tempalte. Faling to display the links to the left of "CURRENT PAGE". To rectify this issue replace the current page name with {{PAGENAME}}. For example on the content map page use:

thispagemap = {{PAGENAME}}

This issues does not affect newly created pages.

Linking back to other pages

This provides a link back to a higher section. The page can either be stand alone or supported with additional views.

Note: The table view is very rarely used on the wiki.

{{toplink
|linkpage =
|linktext =
}}

Examples

{{toplink
|linkpage =Lymphatic System Overview - Anatomy & Physiology
|linktext =Lymphatic System
 }}

Gives

Anatomy and PhysiologyWikiAnt and Phys Banner.png
LYMPHATIC SYSTEM



OR

{{toplink
|linkpage =Lymphatic System Overview - Anatomy & Physiology
|linktext =Lymphatic System
|tablelink = Lymphatic System (Table) - Anatomy & Physiology
|maplink = Lymphatic System (Content Map) - Anatomy & Physiology
|pagetype = Anatomy
}}

Gives

Anatomy and PhysiologyWikiAnt and Phys Banner.png
()Map\Tab LYMPHATIC SYSTEM (Map/Tab)


Using sublinks

This allows several 'back to' links to be used (up to 8). Sublinks can be used without linkpage or linktext being defined.They are a smaller font than that used for linktext.

{{toplink
|linkpage =
|linktext =
|tablelink = 
|maplink =
|sublink1 = 
|subtext1 = 
|sublink(2-8) = 
|subtext(2-8)= 
}}

Example

{{toplink
|linkpage =Lymphoreticular & Haematopoietic System - Pathology
|linktext =LYMPHORETICULAR & HAEMATOPOIETIC SYSTEM
|sublink1 =Primary Lymphoid System - Pathology
|subtext1 = PRIMARY LYMPHOID SYSTEM
|pagetype = Pathology
}}

Gives

WikiPathWikiPath Banner.png
LYMPHORETICULAR & HAEMATOPOIETIC SYSTEM
PRIMARY LYMPHOID SYSTEM


The full code

It is possible to have viewing options for all of the eight sublinks as well as the main link.

{{toplink
|linkpage =
|linktext =
|tablelink = 
|maplink =
|pagetype = 
|titleborder =
|thispagenormal=
|thispagetable =
|thispagemap = 
|sublink1 = 
|subtext1 = 
|sublink2 = 
|subtext2 = 
|sublink3 = 
|subtext3 = 
|sublink4 = 
|subtext4 = 
|sublink5 = 
|subtext5 = 
|sublink6 = 
|subtext6 = 
|sublink7 = 
|subtext7 = 
|sublink8 = 
|subtext8 = 
|tablelink1 = 
|maplink1 = 
|tablelink2 = 
|maplink2 = 
|tablelink3 = 
|maplink3 = 
|tablelink4 = 
|maplink4 = 
|tablelink5 = 
|maplink5 = 
|tablelink6 = 
|maplink6 =  
|tablelink7 = 
|maplink7 =  
|tablelink8 = 
|maplink8 =  
|rspace=
}}

Example

{{toplink
|linkpage =Lymphoreticular & Haematopoietic System - Pathology
|linktext =LYMPHORETICULAR & HAEMATOPOIETIC SYSTEM (Pathology)
|tablelink = Put in page name here
|maplink = Put in page name here
|pagetype = Pathology
|tablelink1 = Put in page name here
|maplink1 = Put in page name here
|sublink1 =Primary Lymphoid System - Pathology
|subtext1 = PRIMARY LYMPHOID SYSTEM (Pathology)
}}
Gives
WikiPathWikiPath Banner.png
()Map\Tab LYMPHORETICULAR & HAEMATOPOIETIC SYSTEM (Map/Tab)
()Map PRIMARY LYMPHOID SYSTEM (Map)
()Tab SECONDARY LYMPHOID SYSTEM (Tab)