Difference between revisions of "Template:Xerte"
Jump to navigation
Jump to search
(6 intermediate revisions by the same user not shown) | |||
Line 2: | Line 2: | ||
{|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;"| {{#if:{{{level1|}}}|{{#ifeq:{{{level1|}}}|small|[[Small Animal Hospital | + | |style="background-color: rgb(69, 98, 135);font-variant: small-caps; font-size: 20px; font-weight: bolder; color: white;"| {{#if:{{{level1|}}}|{{#ifeq:{{{level1|}}}|small|[[Small Animal Hospital]]|{{#ifeq: {{{level1|}}}|equine|[[Equine Yard]]|{{#ifeq:{{{level1|}}}|farm|[[Farm Animal Practice]]|}}}}}}|}}{{#if:{{{level1|}}}|{{#if:{{{level2|}}}| > |}}|}}{{#if:{{{level2|}}}|[[VVH:{{{level2|}}}|{{{level2|}}}]]|}}{{#if:{{{level1|}}}| > |{{#if:{{{level2|}}}| > |}}}}{{PAGENAME}} |
|- | |- | ||
|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> | + | |}</div></includeonly><noinclude>This template is used to embed Xerte cases into WikiVet's 'Virtual Veterinary Hospital'. |
===Basic Code=== | ===Basic Code=== | ||
Copy and paste the below code to embed Xerte cases into a wiki page. | Copy and paste the below code to embed Xerte cases into a wiki page. | ||
Line 12: | Line 12: | ||
|level2= | |level2= | ||
|case= | |case= | ||
− | |||
}} | }} | ||
====Explanation==== | ====Explanation==== | ||
− | <p>The template accepts three variables <code>level1</code>, <code>level2</code> and <code>case</code> | + | <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: | ||
Line 37: | Line 36: | ||
}} | }} | ||
Produces this: | Produces this: | ||
− | + | {{xerte | |
+ | |level1=farm | ||
+ | |level2=Sheep Cases | ||
+ | |case=play_4904 | ||
+ | }} | ||
</noinclude> | </noinclude> |
Revision as of 14:50, 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:
small
- Produces link to the small animal hospital
equine
- Produces link to the equine yard
farm
- Produces link to the farm animal practice
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:
Farm Animal Practice > Sheep Cases > Xerte | |
Error in widget Xerte: unable to write file /var/www/wikivet.net/extensions/Widgets/compiled_templates/wrt6768e73aca5392_68756748
|