Difference between revisions of "Template:Xerte"

From WikiVet English
Jump to navigation Jump to search
(Created page with "<div id="vvh"> {|style="border-width: 0px;padding: 0px; border-collapse: collapse; border-spacing: 0; background-color: rgb(132, 162, 198); margin: 0; vertical-align:middle;" ...")
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div id="vvh">
+
<div id="vvh">
 
{|style="border-width: 0px;padding: 0px; border-collapse: collapse; border-spacing: 0; background-color: rgb(132, 162, 198); margin: 0; vertical-align:middle;"
 
{|style="border-width: 0px;padding: 0px; border-collapse: collapse; border-spacing: 0; background-color: rgb(132, 162, 198); margin: 0; vertical-align:middle;"
 
|width="42px"|[[File:VVH-Logo 100.png|40px|link=Virtual Veterinary Hospital]]
 
|width="42px"|[[File:VVH-Logo 100.png|40px|link=Virtual Veterinary Hospital]]
|style="background-color: rgb(69, 98, 135);font-variant: small-caps; font-size: 20px; font-weight: bolder; color: white;"|&nbsp;&nbsp;{{#if:{{{level1|}}}|{{#ifeq:{{{level1|}}}|small|[[Small Animal Hospital]][[Category:VVH Small Animal Cases]]|{{#ifeq: {{{level1|}}}|equine|[[Equine Yard]][[Category:VVH Equine Cases]]|{{#ifeq:{{{level1|}}}|farm|[[Farm Animal Practice]][[Category:VVH Farm Cases]]|}}}}}}|}}{{#if:{{{level1|}}}|{{#if:{{{level2|}}}|&nbsp;>&nbsp;|}}|}}{{#if:{{{level2|}}}|[[VVH:{{{level2|}}}|{{{level2|}}}]][[Category:VVH {{{level2|}}}]]|}}{{#if:{{{level1|}}}|&nbsp;>&nbsp;|{{#if:{{{level2|}}}|&nbsp;>&nbsp;|}}}}{{PAGENAME}}{{#if:{{{section|}}}|[[Category:VVH {{{section|}}}]]|}}
+
|style="background-color: rgb(69, 98, 135);font-variant: small-caps; font-size: 20px; font-weight: bolder; color: white;"|&nbsp;&nbsp;{{#if: {{{level1|}}}|{{#ifeq: {{{level1|}}}|small|[[Small Animal Hospital]]|{{#ifeq: {{{level1|}}}|equine|[[Equine Yard]]|{{#ifeq: {{{level1|}}}|farm|[[Farm Animal Practice]]|}}}}}}|}}{{#if:{{{level2|}}}|&nbsp;>&nbsp;[[{{{level2|}}}]]|}}
 
|-
 
|-
 
|colspan="2" style="border-width: 0px; padding: 0px; border-collapse: collapse; border-spacing: 0; background-color: rgb(69,98,135);"|{{#widget:Xerte|case={{{case|play_6691}}}}}
 
|colspan="2" style="border-width: 0px; padding: 0px; border-collapse: collapse; border-spacing: 0; background-color: rgb(69,98,135);"|{{#widget:Xerte|case={{{case|play_6691}}}}}
|}</div>[[Category:VVH All Cases]]</includeonly><noinclude>This template is used to embed Xerte cases into WikiVet's 'Virtual Veterinary Hospital'.
+
|}</div>
===Basic Code===
 
Copy and paste the below code to embed Xerte cases into a wiki page.
 
<nowiki>{{xerte</nowiki>
 
|level1=
 
|level2=
 
|case=
 
|section=
 
}}
 
====Explanation====
 
<p>The template accepts three variables <code>level1</code>, <code>level2</code> and <code>case</code>. The case title is automatically added to the navigation bar.</p><p>The section refers to the bodysystem category. i.e 'Small Animal Dermatology Cases'.</p>
 
=====level1=====
 
Accepts only three options and is '''case sensitive'''. If no input if given no link will be displayed. You may use:
 
*<code>small</code>
 
**Produces link to the [[Small Animal Hospital|small animal hospital]]
 
*<code>equine</code>
 
**Produces link to the [[Equine Yard|equine yard]]
 
*<code>farm</code>
 
**Produces link to the [[Farm Animal Practice|farm animal practice]]
 
=====level2=====
 
<p>Provides a second level link to a subsection of the hospital defined in <code>level1</code>.Enter the page name (excluding the namespace as 'VVH:' is automatically added).</p>
 
=====case=====
 
<p>Enter the cases id for the xerte case. This is usually <code>play_XXXX</code>.</p>
 
<p>e.g. if the Xerte case has the link <code>http://www.nottingham.ac.uk/toolkits/play_6391</code> you would simply use <code>play_6391</code></p>
 
===Example===
 
This code:
 
<nowiki>{{</nowiki>xerte
 
|level1=farm
 
|level2=Sheep Cases
 
|case=play_4904
 
}}
 
Produces this:
 
<p>[[VVH:Lameness in a flock of sheep|See here]]
 
</noinclude>
 

Revision as of 14:06, 4 February 2012

VVH-Logo 100.png   
Error in widget Xerte: unable to write file /var/www/wikivet.net/extensions/Widgets/compiled_templates/wrt676926cfaace94_42695928