Difference between revisions of "Template:Toplink"
Jump to navigation
Jump to search
m (→Basic usage) |
|||
(135 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{|style="margin:0px 0px 0px 0px; background:none;" | <includeonly>{|style="margin:0px 0px 0px 0px; background:none;" | ||
− | |class="MainPageBG" style="width:100%; border:1px solid # | + | |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); | + | {|width="100%" cellpadding="0" cellspacing="0" style="background:rgb(224, 238, 238); height:5px;" |
− | |width="18%" rowspan="99"|{{ifeq|if={{{pagetype|}}}|eq=Anatomy|then= | + | |width="18%" 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=VPH|then=[[Image:WikiVPN Banner.png]]|else=}}}}}}}}}}}} |
− | |width="64%" | + | |width="64%"|<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>}} [[{{{linkpage|}}}|<font size="2">'''{{{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></span>{{if|1={{{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|}}}}}}} |
{{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|}}}}}}} | {{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%"|{{{ | + | |align="right" width="18%"|{{{adspace|}}} |
|} | |} | ||
|style="border:1px solid transparent"| | |style="border:1px solid transparent"| | ||
− | | | + | |}</includeonly> |
− | |||
<noinclude> | <noinclude> | ||
− | |||
− | |||
==Basic usage== | ==Basic usage== | ||
<p>This template produces a 'Back to' link. Parameters: | <p>This template produces a 'Back to' link. Parameters: | ||
Line 28: | Line 25: | ||
|style="background-color:#C1F0F6;"|Text to display for above link. | |style="background-color:#C1F0F6;"|Text to display for above link. | ||
|- | |- | ||
− | + | |style="background-color:#C1F0F6;"|tablelink | |
− | + | |style="background-color:#C1F0F6;"|'Homepage' name that has the table layout for that section. | |
− | |||
− | |style="background-color:#C1F0F6;"| | ||
− | |style="background-color:#C1F0F6;"|'Homepage' name that has | ||
|- | |- | ||
− | | | + | |maplink |
− | | | + | |'Homepage' name that has map map layout for that section. |
|- | |- | ||
|style="background-color:#C1F0F6;"|pagetype | |style="background-color:#C1F0F6;"|pagetype | ||
− | |style="background-color:#C1F0F6;"|This applies a logo | + | |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 'VPH' for WikiVPH pages and 'Blood' for WikiBlood. |
− | |||
− | |||
− | |||
|- | |- | ||
|<br> | |<br> | ||
| | | | ||
|- | |- | ||
− | !style="background-color:#C1F0F6; | + | !style="background-color:#C1F0F6;"|For these parameters |
− | |style="background-color:#C1F0F6; | + | |style="background-color:#C1F0F6;"|"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 75: | Line 66: | ||
|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. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
</p> | </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. | 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> | <br> | ||
− | |||
− | |||
− | |||
==Linking back to other pages== | ==Linking back to other pages== | ||
Line 93: | Line 75: | ||
''Note: The table view is very rarely used on the wiki.'' | ''Note: The table view is very rarely used on the wiki.'' | ||
<nowiki>{{</nowiki>toplink | <nowiki>{{</nowiki>toplink | ||
+ | |backcolour = | ||
|linkpage = | |linkpage = | ||
|linktext = | |linktext = | ||
Line 98: | Line 81: | ||
===Examples=== | ===Examples=== | ||
<nowiki>{{</nowiki>toplink | <nowiki>{{</nowiki>toplink | ||
− | |linkpage =Lymphatic System | + | |backcolour = f5fffa |
+ | |linkpage =Lymphatic System - Anatomy & Physiology | ||
|linktext =Lymphatic System | |linktext =Lymphatic System | ||
− | + | |pagetype = Anatomy | |
+ | }} | ||
'''Gives''' | '''Gives''' | ||
{{toplink | {{toplink | ||
− | |linkpage =Lymphatic System | + | |backcolour = f5fffa |
+ | |linkpage =Lymphatic System - Anatomy & Physiology | ||
|linktext =Lymphatic System | |linktext =Lymphatic System | ||
|pagetype = Anatomy | |pagetype = Anatomy | ||
Line 111: | Line 97: | ||
<br> | <br> | ||
<nowiki>{{</nowiki>toplink | <nowiki>{{</nowiki>toplink | ||
− | |linkpage =Lymphatic System | + | |backcolour = f5fffa |
+ | |linkpage =Lymphatic System - Anatomy & Physiology | ||
|linktext =Lymphatic System | |linktext =Lymphatic System | ||
|tablelink = Lymphatic System (Table) - Anatomy & Physiology | |tablelink = Lymphatic System (Table) - Anatomy & Physiology | ||
Line 119: | Line 106: | ||
'''Gives''' | '''Gives''' | ||
{{toplink | {{toplink | ||
− | |linkpage =Lymphatic System | + | |backcolour = f5fffa |
+ | |linkpage =Lymphatic System - Anatomy & Physiology | ||
|linktext =Lymphatic System | |linktext =Lymphatic System | ||
|tablelink = Lymphatic System (Table) - Anatomy & Physiology | |tablelink = Lymphatic System (Table) - Anatomy & Physiology | ||
Line 127: | Line 115: | ||
==Using sublinks== | ==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). |
<nowiki>{{</nowiki>toplink | <nowiki>{{</nowiki>toplink | ||
+ | |backcolour = | ||
|linkpage = | |linkpage = | ||
|linktext = | |linktext = | ||
Line 158: | Line 147: | ||
<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 = | ||
Line 163: | Line 153: | ||
|maplink = | |maplink = | ||
|pagetype = | |pagetype = | ||
− | |||
|thispagenormal= | |thispagenormal= | ||
|thispagetable = | |thispagetable = | ||
|thispagemap = | |thispagemap = | ||
+ | |tablelink1 = | ||
+ | |maplink1 = | ||
+ | |tablelink2 = | ||
+ | |maplink2 = | ||
+ | |tablelink3 = | ||
+ | |maplink3 = | ||
+ | |tablelink4 = | ||
+ | |maplink4 = | ||
+ | |tablelink5 = | ||
+ | |maplink5 = | ||
+ | |tablelink6 = | ||
+ | |maplink6 = | ||
+ | |tablelink7 = | ||
+ | |maplink7 = | ||
+ | |tablelink8 = | ||
+ | |maplink8 = | ||
|sublink1 = | |sublink1 = | ||
|subtext1 = | |subtext1 = | ||
Line 183: | Line 188: | ||
|sublink8 = | |sublink8 = | ||
|subtext8 = | |subtext8 = | ||
− | | | + | |adspace= |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
}} | }} | ||
===Example=== | ===Example=== | ||
Line 217: | Line 206: | ||
|linkpage =Lymphoreticular & Haematopoietic System - Pathology | |linkpage =Lymphoreticular & Haematopoietic System - Pathology | ||
|linktext =LYMPHORETICULAR & HAEMATOPOIETIC SYSTEM | |linktext =LYMPHORETICULAR & HAEMATOPOIETIC SYSTEM | ||
− | |tablelink = Template: | + | |tablelink = Template:Pub |
− | |maplink = Template: | + | |maplink = Template:Pub |
|pagetype = Pathology | |pagetype = Pathology | ||
− | |maplink1 = Template: | + | |tablelink1 = Template:Pub |
+ | |maplink1 = Template:Pub | ||
|sublink1 =Primary Lymphoid System - Pathology | |sublink1 =Primary Lymphoid System - Pathology | ||
|subtext1 = PRIMARY LYMPHOID SYSTEM | |subtext1 = PRIMARY LYMPHOID SYSTEM | ||
|sublink2 =Secondary Lymphoid System - Pathology | |sublink2 =Secondary Lymphoid System - Pathology | ||
|subtext2 = SECONDARY LYMPHOID SYSTEM | |subtext2 = SECONDARY LYMPHOID SYSTEM | ||
− | |tablelink2 = Template: | + | |tablelink2 = Template:Pub |
+ | |maplink2 = Template:Pub | ||
}}</noinclude> | }}</noinclude> |
Revision as of 17:36, 22 September 2008
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
|
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
|
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
|
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
|