Difference between revisions of "Template:Toplink"
Jump to navigation
Jump to search
m (→Example) |
m (→Advanced usage) |
||
Line 109: | Line 109: | ||
}} | }} | ||
− | == | + | ==Further 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 | ||
|backcolour = | |backcolour = | ||
Line 138: | Line 138: | ||
<nowiki>{{</nowiki>toplink | <nowiki>{{</nowiki>toplink | ||
|linkpage =Lymphoreticular/Haemotopoietic System | |linkpage =Lymphoreticular/Haemotopoietic System | ||
− | |linktext =LYMPHORETICULAR/HAEMOTOPOIETIC SYSTEM ( | + | |linktext =LYMPHORETICULAR/HAEMOTOPOIETIC SYSTEM (Path) |
|sublink1 =Lymphoreticular/Haemotopoietic System - Primary Lymphoid System | |sublink1 =Lymphoreticular/Haemotopoietic System - Primary Lymphoid System | ||
|subtext1 = PRIMARY LYMPHOID SYSTEM (Pathology) | |subtext1 = PRIMARY LYMPHOID SYSTEM (Pathology) | ||
Line 145: | Line 145: | ||
{{toplink | {{toplink | ||
|linkpage =Lymphoreticular/Haemotopoietic System | |linkpage =Lymphoreticular/Haemotopoietic System | ||
− | |linktext =LYMPHORETICULAR/HAEMOTOPOIETIC SYSTEM ( | + | |linktext =LYMPHORETICULAR/HAEMOTOPOIETIC SYSTEM (Path) |
|sublink1 =Lymphoreticular/Haemotopoietic System - Primary Lymphoid System | |sublink1 =Lymphoreticular/Haemotopoietic System - Primary Lymphoid System | ||
|subtext1 = PRIMARY LYMPHOID SYSTEM (Pathology) | |subtext1 = PRIMARY LYMPHOID SYSTEM (Pathology) | ||
+ | }} | ||
+ | ==The full code== | ||
+ | <p>It is possible to have viewing options for all of the eight sublinks as well as the main link.</p> | ||
+ | <nowiki>{{</nowiki>toplink | ||
+ | |backcolour = | ||
+ | |linkpage = | ||
+ | |linktext = | ||
+ | |normallink = | ||
+ | |tablelink = | ||
+ | |contentlink = | ||
+ | |normallink1 = | ||
+ | |tablelink1 = | ||
+ | |contentlink1 = | ||
+ | |normallink2 = | ||
+ | |tablelink2 = | ||
+ | |contentlink2 = | ||
+ | |normallink3 = | ||
+ | |tablelink3 = | ||
+ | |contentlink3 = | ||
+ | |normallink4 = | ||
+ | |tablelink4 = | ||
+ | |contentlink4 = | ||
+ | |normallink5 = | ||
+ | |tablelink5 = | ||
+ | |contentlink5 = | ||
+ | |normallink6 = | ||
+ | |tablelink6 = | ||
+ | |contentlink6 = | ||
+ | |normallink7 = | ||
+ | |tablelink7 = | ||
+ | |contentlink7 = | ||
+ | |normallink8 = | ||
+ | |tablelink8 = | ||
+ | |contentlink8 = | ||
+ | |sublink1 = | ||
+ | |subtext1 = | ||
+ | |sublink2 = | ||
+ | |subtext2 = | ||
+ | |sublink3 = | ||
+ | |subtext3 = | ||
+ | |sublink4 = | ||
+ | |subtext4 = | ||
+ | |sublink5 = | ||
+ | |subtext5 = | ||
+ | |sublink6 = | ||
+ | |subtext6 = | ||
+ | |sublink7 = | ||
+ | |subtext7 = | ||
+ | |sublink8 = | ||
+ | |subtext8 = | ||
+ | }} | ||
+ | ===Example=== | ||
+ | <nowiki>{{</nowiki>toplink | ||
+ | |linkpage =Lymphoreticular/Haemotopoietic System | ||
+ | |linktext =LYMPHORETICULAR/HAEMOTOPOIETIC SYSTEM (Path) | ||
+ | |normallink = ''Put in page name here'' | ||
+ | |tablelink = ''Put in page name here'' | ||
+ | |contentlink = ''Put in page name here'' | ||
+ | |normallink1 =''Put in page name here'' | ||
+ | |tablelink1 = ''Put in page name here'' | ||
+ | |contentlink1 = ''Put in page name here'' | ||
+ | |sublink1 =Lymphoreticular/Haemotopoietic System - Primary Lymphoid System | ||
+ | |subtext1 = PRIMARY LYMPHOID SYSTEM (Path) | ||
+ | }} | ||
+ | <div id="Gives">'''Gives'''</div> | ||
+ | {{toplink | ||
+ | |linkpage =Lymphoreticular/Haemotopoietic System | ||
+ | |linktext =LYMPHORETICULAR/HAEMOTOPOIETIC SYSTEM (Path) | ||
+ | |normallink = Template:Pub | ||
+ | |tablelink = Template:Pub | ||
+ | |contentlink = Template:Pub | ||
+ | |normallink1 = Template:Pub | ||
+ | |tablelink1 = Template:Pub | ||
+ | |contentlink1 = Template:Pub | ||
+ | |sublink1 =Lymphoreticular/Haemotopoietic System - Primary Lymphoid System | ||
+ | |subtext1 = PRIMARY LYMPHOID SYSTEM (Path) | ||
}}</noinclude> | }}</noinclude> |
Revision as of 09:16, 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
|
Further 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 (Path) |sublink1 =Lymphoreticular/Haemotopoietic System - Primary Lymphoid System |subtext1 = PRIMARY LYMPHOID SYSTEM (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 = |contentlink = |normallink1 = |tablelink1 = |contentlink1 = |normallink2 = |tablelink2 = |contentlink2 = |normallink3 = |tablelink3 = |contentlink3 = |normallink4 = |tablelink4 = |contentlink4 = |normallink5 = |tablelink5 = |contentlink5 = |normallink6 = |tablelink6 = |contentlink6 = |normallink7 = |tablelink7 = |contentlink7 = |normallink8 = |tablelink8 = |contentlink8 = |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 (Path) |normallink = Put in page name here |tablelink = Put in page name here |contentlink = Put in page name here |normallink1 =Put in page name here |tablelink1 = Put in page name here |contentlink1 = Put in page name here |sublink1 =Lymphoreticular/Haemotopoietic System - Primary Lymphoid System |subtext1 = PRIMARY LYMPHOID SYSTEM (Path) }}
Gives
|