Template:Dog info

From BayTeam

Jump to: navigation, search

[edit] Usage

Usage:

For use on the Bay Team members and dogs page. Type this:

 {{dog info 
 | callname = ... 
 | breed = ...
 | birth = ... 
 | death = ...
 | photo = ...
 | oldphoto= ...
 | credit = ...
 | titles = ...
 | rescue = ...
 | oldrescue = ... 
 | video = ...
 | webpage = ...}}

(You can also put it on a single line like this:)

 {{dog info  | callname = ...  | breed = ... | birth = ...  | death = ... 
 | photo = ... | oldphoto= ...  | credit = ...| titles = ...  | rescue = ... 
 | oldrescue = ...  | video = ... | webpage = ...}}

with the following info:

  • callname: Replace ... with dog's call name.
  • breed: Dog's breed (preferably capitalized).
  • birth: Date of birth
  • death: Date of death
  • photo: image name after uploaded to this wiki
  • oldphoto: filename of photo on old web site (assumes is in directory http://www.bayteam.org/photos/membersdogs/)
  • credit: Abbreviation footnote reference for photographer--see end of members page for current list
  • titles: List of titles formatted however is appropriate; championships are usually bolded by surrounding with three single quotes.
  • rescue: named link for this dog on new rescue page (same format as old rescue page)
  • oldrescue: named link for this dog on old rescue page
  • video: URL of video of this dog (or page of links of videos, whatever; just one URL)
  • webpage: URL of page about this dog.

[edit] Example

 {{dog info 
 | callname = Fido 
 | breed = Australian Shepherd
 | birth = 5/31/1995 
 | death = 12/9/2006
 | photo = Image:SmithFido.jpg
 | oldphoto = SmithFido.jpg
 | credit = TT
 | titles = '''ADCH''' [OA, MAJ; EAC, OGC]
 | rescue = KitayFrankie 
 | video = http://www.videosite.net/videos/Frankie.wmv 
 | webpage = http://FrankiesPage.livejoural.com/}} 

This example outputs the following:

photoTT Fido (Australian Shepherd, 5/31/1995 - 12/9/2006) • Video  • Web page
ADCH [OA, MAJ; EAC, OGC]
This dog is a rescue

[edit] Wiki coding

If you click Edit, you'll see the actual coding, which includes a lot of #if conditional flags (which allows most of the arguments to be optional). But basically it boils down to this wiki coding (with conditionals removed, some choices indicated with or), if you're interested in that sort of thing:

 {| 
 |-
 |valign="top"|[[{{{photo}}}|85px|left]] ''or'' 
 [http://www.bayteam.org/photos/memberdogs/{{{oldphoto}}} photo]  <sup>[[#Credits|{{{credit}}}]]</sup>    
 |'''{{{callname}}}''' ({{{breed}}}, {{{birth}}} - {{{death}}}) •  [{{{video}}}  Video]  • [{{{webpage}}}  Web page] 
 :{{{titles}}} 
 :[[Bay Team rescue stories#{{{rescue}}}| This dog is a rescue]]  ''or''
 :[http://www.bayteam.org/memberBios/btRescues.html#{{{oldrescue}}} This dog is a rescue] 
 |}
Views
Personal tools