Difference between revisions of "Template:Bird id"
From Pathfinder Wiki
(37 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{| style="position:relative; margin: 0 0 0.5em 1em; border-collapse: collapse; float:right; background:white; clear:right; width:100%;" border="1" cellpadding="2" | {| style="position:relative; margin: 0 0 0.5em 1em; border-collapse: collapse; float:right; background:white; clear:right; width:100%;" border="1" cellpadding="2" | ||
|- style="text-align:center;" | |- style="text-align:center;" | ||
− | ! colspan="2" style="background: pink;"|'''{{{latin_name}}} ({{{name}}})''' | + | ! colspan="2" style="background: pink;"|'''[[w:{{{latin_name}}}|{{{latin_name}}}]] ({{{name}}})''' |
− | |||
|- | |- | ||
| | | | ||
− | {{#if:{{{ | + | {{#if:{{{image_1|}}}|[[image:{{{image_1}}}|thumb|{{{image_width|300px}}}|{{{caption_1}}}]]}} |
| | | | ||
− | {{#if:{{{ | + | {{#if:{{{range_map|}}}|[[image:{{{range_map}}}|thumb|{{{image_width|300px}}}|Range]]}} |
|- | |- | ||
+ | | | ||
+ | {{#if:{{{image_2|}}}|[[image:{{{image_2}}}|thumb|{{{image_width|300px}}}|{{{caption_2}}}]]}} | ||
| | | | ||
− | {{#if:{{{ | + | {{#if:{{{image_3|}}}|[[image:{{{image_3}}}|thumb|{{{image_width|300px}}}|{{{caption_3}}}]]}} |
− | | | + | |- style="text-align:center;" |
− | {{#if:{{{ | + | !colspan="2" style="background: pink;"|'''Description''' |
− | + | |- | |
− | + | |colspan="2" style="text-align:left;"|{{#if:{{{call|}}}|<div style="border: 1px solid #AAAAAA; float:left; padding: 5px; margin-right: 10px;">[[Image:Nuvola apps kmix.png|center|35px]]<br>[[Media:{{{call|}}}|Bird call]]</div>{{{description}}}|{{{description}}}}} | |
|} | |} | ||
+ | <includeonly>[[Category:Field Guide/Birds]]</includeonly> | ||
+ | <noinclude> | ||
+ | {{-}} | ||
+ | <pre> | ||
+ | |||
+ | Notes: 1) 'image width' defaults to 300px and affects all images selected. | ||
+ | Any optional value given must end with 'px'. | ||
+ | 2) Pipe shown below signifies the default value if the (optional) | ||
+ | parameter is left undefined. | ||
+ | 3) Parenthesised clarifications are not part of the parameter name. | ||
+ | |||
+ | |||
+ | latin_name = (top panel display) | ||
+ | name (common) = | ||
+ | level = Inserts a header before the table - a header is N equal signs | ||
+ | surrounding ''name''. That is, if level = 3, header will be | ||
+ | === {{{name}}} === | ||
+ | If level is omitted, no header is included. | ||
+ | |||
+ | image_width|300px= (affects all four possible image panels) | ||
+ | Note: The definition of the image parameter acts as a switch to turn on | ||
+ | handling logic for that image. | ||
+ | |||
+ | image 1 = | ||
+ | caption 1 = | ||
+ | |||
+ | range map = | ||
+ | range note|Range = | ||
+ | |||
+ | image 2 = | ||
+ | caption 2 = | ||
+ | |||
+ | image 3 = | ||
+ | caption 3 = | ||
+ | |||
+ | call = (Audio link--> "[[Media:{{{call}}} ]] | ||
+ | description = (bottom text) | ||
+ | </pre> | ||
+ | {{clear}} |
Latest revision as of 11:58, 27 July 2022
[[w:{{{latin_name}}}|{{{latin_name}}}]] ({{{name}}}) | |
---|---|
Description | |
{{{description}}} |
Notes: 1) 'image width' defaults to 300px and affects all images selected. Any optional value given must end with 'px'. 2) Pipe shown below signifies the default value if the (optional) parameter is left undefined. 3) Parenthesised clarifications are not part of the parameter name. latin_name = (top panel display) name (common) = level = Inserts a header before the table - a header is N equal signs surrounding ''name''. That is, if level = 3, header will be === {{{name}}} === If level is omitted, no header is included. image_width|300px= (affects all four possible image panels) Note: The definition of the image parameter acts as a switch to turn on handling logic for that image. image 1 = caption 1 = range map = range note|Range = image 2 = caption 2 = image 3 = caption 3 = call = (Audio link--> "[[Media:{{{call}}} ]] description = (bottom text)