Difference between revisions of "Template:Toplink"
Jump to navigation
Jump to search
m |
m (→Example) |
||
Line 112: | Line 112: | ||
|linkpage =Lymphoreticular & Haematopoietic System - Anatomy & Physiology | |linkpage =Lymphoreticular & Haematopoietic System - Anatomy & Physiology | ||
|linktext =Lymphoreticular & Haematopoietic System | |linktext =Lymphoreticular & Haematopoietic System | ||
+ | |pagetype = Anatomy | ||
}} | }} | ||
'''Gives''' | '''Gives''' | ||
Line 118: | Line 119: | ||
|linkpage =Lymphoreticular & Haematopoietic System - Anatomy & Physiology | |linkpage =Lymphoreticular & Haematopoietic System - Anatomy & Physiology | ||
|linktext =Lymphoreticular & Haematopoietic System | |linktext =Lymphoreticular & Haematopoietic System | ||
+ | |pagetype = Anatomy | ||
}} | }} | ||
<br> | <br> | ||
Line 128: | Line 130: | ||
|tablelink = Lymphoreticular & Haematopoietic System (Table)- Anatomy & Physiology | |tablelink = Lymphoreticular & Haematopoietic System (Table)- Anatomy & Physiology | ||
|maplink = Lymphoreticular & Haematopoietic System (map Map)- Anatomy & Physiology | |maplink = Lymphoreticular & Haematopoietic System (map Map)- Anatomy & Physiology | ||
+ | |pagetype = Anatomy | ||
}} | }} | ||
'''Gives''' | '''Gives''' | ||
Line 136: | Line 139: | ||
|tablelink = Lymphoreticular & Haematopoietic System (Table)- Anatomy & Physiology | |tablelink = Lymphoreticular & Haematopoietic System (Table)- Anatomy & Physiology | ||
|maplink = Lymphoreticular & Haematopoietic System (map Map)- Anatomy & Physiology | |maplink = Lymphoreticular & Haematopoietic System (map Map)- Anatomy & Physiology | ||
+ | |pagetype = Anatomy | ||
}} | }} | ||
Revision as of 21:30, 29 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 standard WikiVet layout for that section. |
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 and 'Anatomy' for WikiAnt and Phys pages |
"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 | |
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. |
sublink1(to 8) | Name of page that you want to link to. |
subtext1(to 8) | Text to display for above link. |
normallink1(to 8) | 'Homepage' name that has standard WikiVet layout for that section. |
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 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 = |maplink = }}
Example
{{toplink |linkpage =Anatomy and Physiology |linktext =ANATOMY & PHYSIOLOGY |normallink = Lymphoreticular & Haematopoietic System - Anatomy & Physiology |tablelink = Lymphoreticular & Haematopoietic System (Table)- Anatomy & Physiology |maplink = Lymphoreticular & Haematopoietic System (map Map)- Anatomy & Physiology |pagetype = Anatomy }}
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 |pagetype = Anatomy }}
Gives
|
OR
{{toplink |backcolour = FFE4E1 |linkpage =Lymphoreticular & Haematopoietic System - Anatomy & Physiology |linktext =Lymphoreticular & Haematopoietic System |tablelink = Lymphoreticular & Haematopoietic System (Table)- Anatomy & Physiology |maplink = Lymphoreticular & Haematopoietic System (map Map)- Anatomy & Physiology |pagetype = Anatomy }}
Gives
|
Further usage
This allows several 'back to' links to be used (up to 8).
{{toplink |backcolour = |linkpage = |linktext = |normallink = |tablelink = |maplink = |sublink1 = |subtext1 = |sublink2 = |subtext2 = |sublink3 = |subtext3 = |sublink4 = |subtext4 = |sublink5 = |subtext5 = |sublink6 = |subtext6 = |sublink7 = |subtext7 = |sublink8 = |subtext8 = }}
Example
{{toplink |linkpage =Lymphoreticular & Haematopoietic System - Pathology |linktext =LYMPHORETICULAR & HAEMATOPOIETIC SYSTEM (Pathology) |sublink1 =Primary Lymphoid System - Pathology |subtext1 = PRIMARY LYMPHOID SYSTEM (Pathology) |pagetype = Pathology }}
Gives
|
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 = |normallink = |tablelink = |maplink = |pagetype = |thispagenormal= |thispagetable = |thispagemap = |normallink1 = |tablelink1 = |maplink1 = |normallink2 = |tablelink2 = |maplink2 = |normallink3 = |tablelink3 = |maplink3 = |normallink4 = |tablelink4 = |maplink4 = |normallink5 = |tablelink5 = |maplink5 = |normallink6 = |tablelink6 = |maplink6 = |normallink7 = |tablelink7 = |maplink7 = |normallink8 = |tablelink8 = |maplink8 = |sublink1 = |subtext1 = |sublink2 = |subtext2 = |sublink3 = |subtext3 = |sublink4 = |subtext4 = |sublink5 = |subtext5 = |sublink6 = |subtext6 = |sublink7 = |subtext7 = |sublink8 = |subtext8 = }}
Example
{{toplink |linkpage =Lymphoreticular & Haematopoietic System - Pathology |linktext =LYMPHORETICULAR & HAEMATOPOIETIC SYSTEM (Pathology) |normallink = Put in page name here |tablelink = Put in page name here |maplink = Put in page name here |normallink1 =Put in page name here |tablelink1 = Put in page name here |maplink1 = Put in page name here |sublink1 =Primary Lymphoid System - Pathology |subtext1 = PRIMARY LYMPHOID SYSTEM (Pathology) }}
Gives
|