Template:Toplink

From WikiVet English
Jump to navigation Jump to search


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.
pagetype 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 'VPH' for WikiVPH pages and 'Blood' for WikiBlood.

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.

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.

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
|backcolour =
|linkpage =
|linktext =
}}

Examples

{{toplink
|backcolour = f5fffa 
|linkpage =Lymphatic System - Anatomy & Physiology
|linktext =Lymphatic System
|pagetype = Anatomy
}}

Gives

Anatomy and PhysiologyWikiAnt and Phys Banner.png
LYMPHATIC SYSTEM



OR

{{toplink
|backcolour = f5fffa 
|linkpage =Lymphatic System - 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).

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

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)