Difference between revisions of "Template:Xerte"

From WikiVet English
Jump to navigation Jump to search
Line 13: Line 13:
 
  |case=
 
  |case=
 
  }}
 
  }}
===Explanation===
+
====Explanation====
 
<p>The template accepts three variables <code>level1</code>, <code>level2</code> and <code>case</code>.</p>
 
<p>The template accepts three variables <code>level1</code>, <code>level2</code> and <code>case</code>.</p>
====level1====
+
=====level1=====
 
Accepts only three options and is '''case sensitive'''. If no input if given no link will be displayed. You may use:
 
Accepts only three options and is '''case sensitive'''. If no input if given no link will be displayed. You may use:
 
*<code>small</code>
 
*<code>small</code>
Line 23: Line 23:
 
*<code>farm</code>
 
*<code>farm</code>
 
**Produces link to the [[Farm Animal Practice|farm animal practice]]
 
**Produces link to the [[Farm Animal Practice|farm animal practice]]
====level2====
+
=====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>
 
<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====
+
=====case=====
 
<p>Enter the cases id for the xerte case. This is usually <code>play_XXXX</code>.</p>
 
<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>
 
<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>

Revision as of 14:27, 4 February 2012

This template is used to embed Xerte cases into WikiVet's 'Virtual Veterinary Hospital'.

Basic Code

Copy and paste the below code to embed Xerte cases into a wiki page.

{{xerte
|level1=
|level2=
|case=
}}

Explanation

The template accepts three variables level1, level2 and case.

level1

Accepts only three options and is case sensitive. If no input if given no link will be displayed. You may use:

level2

Provides a second level link to a subsection of the hospital defined in level1.Enter the page name (excluding the namespace as 'VVH:' is automatically added).

case

Enter the cases id for the xerte case. This is usually play_XXXX.

e.g. if the Xerte case has the link http://www.nottingham.ac.uk/toolkits/play_6391 you would simply use play_6391

Example

This code:

{{xerte
|level1=farm
|level2=Sheep Cases
|case=play_4904
}}

Produces this:

VVH-Logo 100.png   Farm Animal Practice > Sheep Cases > Xerte
Error in widget Xerte: unable to write file /var/www/wikivet.net/extensions/Widgets/compiled_templates/wrt67680adbb67543_66192364