Difference between revisions of "Template:VVHcases"

From WikiVet English
Jump to navigation Jump to search
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<includeonly><div id="vvh">
 
<includeonly><div id="vvh">
{|width="800px" style="border-width: 0px;padding: 0px; border-collapse: collapse; border-spacing: 0; background-color: rgb(132, 162, 198); margin: 0; vertical-align:middle;"
+
{|width="75%" 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]]|{{#ifeq: {{{level1|}}}|equine|[[Equine Yard]]|{{#ifeq:{{{level1|}}}|farm|[[Farm Animal Practice]]|}}}}}}|}}{{#if:{{{level1|}}}|&nbsp;>&nbsp;{{PAGENAME}}|}}
 
|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:{{{level1|}}}|&nbsp;>&nbsp;{{PAGENAME}}|}}
 
|-
 
|-
 
|colspan="2" style="border-width: 0px; padding: 0px; border-collapse: collapse; border-spacing: 0; background-color: rgb(132, 162, 198); font-variant: small-caps; font-size: 17px; font-weight: bolder; color: white;"|
 
|colspan="2" style="border-width: 0px; padding: 0px; border-collapse: collapse; border-spacing: 0; background-color: rgb(132, 162, 198); font-variant: small-caps; font-size: 17px; font-weight: bolder; color: white;"|
{{{content|}}}
+
<DynamicPageList>
|}</div>[[Category:VVH]]</includeonly><noinclude>
+
category  = {{{content|}}}
 +
</DynamicPageList>
 +
|}</div></includeonly><noinclude>
 
===Basic Code===
 
===Basic Code===
 
Copy and paste the below code to use the standard case list for the '[[Virtual Veterinary Hospital]]'.
 
Copy and paste the below code to use the standard case list for the '[[Virtual Veterinary Hospital]]'.
Line 24: Line 26:
 
**Produces link to the [[Farm Animal Practice|farm animal practice]]
 
**Produces link to the [[Farm Animal Practice|farm animal practice]]
 
=====content=====
 
=====content=====
<p>Enter the code for the Dynamic Page list extension and include the name of category of cases that you want to be listed.</p>
+
<p>Enter name of category of cases that you want to be listed.</p>
 
 
 
===Example===
 
===Example===
 
This code:
 
This code:
 
  <nowiki>{{</nowiki>VVHcases
 
  <nowiki>{{</nowiki>VVHcases
 
  |level1=farm
 
  |level1=farm
  |content=
+
  |content=VVH Sheep Cases‎
<nowiki><DynamicPageList></nowiki>
 
category  = VVH Sheep Cases
 
shownamespace = false
 
</DynamicPageList>
 
 
  }}
 
  }}
 
Produces this:
 
Produces this:
 
{{VVHcases
 
{{VVHcases
 
|level1=farm
 
|level1=farm
|content=
+
|content=VVH Sheep Cases‎
<DynamicPageList>
 
category  = VVH Sheep Cases
 
shownamespace = false
 
</DynamicPageList>‎
 
 
}}
 
}}
 
</noinclude>
 
</noinclude>

Revision as of 15:10, 4 February 2012

Basic Code

Copy and paste the below code to use the standard case list for the 'Virtual Veterinary Hospital'.

{{VVHcases
|level1=
|content=
}}

Explanation

The template accepts two variables level1 and content. The current page title is automatically added to the navigation bar.

level1

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

content

Enter name of category of cases that you want to be listed.

Example

This code:

{{VVHcases
|level1=farm
|content=VVH Sheep Cases‎
}}

Produces this:

VVH-Logo 100.png   Farm Animal Practice > VVHcases

VVH Sheep Cases‎