Template:Infobox Animal/doc: Difference between revisions

From Eco - English Wiki
[checked revision][checked revision]
(Copy doc from sandbox page.)
 
No edit summary
Tag: 2017 source edit
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{doc/start}}
This template can be used to grab details relevant to an [[Animals|animal]]. It formats the results into an [[:Category:Infobox Templates|infobox]]. [[Template:Infobox_Item]] will generate the following information, using the [[Module:Infobox Animal]], and [[Module:AnimalData]].
This template can be used to grab details relevant to an [[Animals|animal]]. It formats the results into an [[:Category:Infobox Templates|infobox]]. [[Template:Infobox_Item]] will generate the following information, using the [[Module:Infobox Animal/sandbox]], and [[Module:AnimalData]].
 
== Usage==
{{tlx|Infobox Animal/sandbox|''name''}}


=== Parameters ===
=== Parameters ===
Line 10: Line 6:


=== Infobox Properties ===
=== Infobox Properties ===
If .name is found it will generate the following:
If name is found it will generate the following:
<pre>
<pre>
     |name = The name of an item.
     |name = The name of an item.
Line 17: Line 13:


== Examples ==
== Examples ==
{{Infobox Animal/sandbox| name = Otter}}
{{Infobox Animal| name = Otter}}
{{Infobox Animal/sandbox| name = Wolf}}
{{Infobox Animal| name = Wolf}}
{{Infobox Animal/sandbox| name = Bison}}
{{Infobox Animal| name = Bison}}
{{doc/end}}
 
<includeonly>[[Category:Infobox Templates]]</includeonly>
<includeonly>[[Category:Infobox Templates]]</includeonly>

Latest revision as of 13:52, 13 June 2024

This template can be used to grab details relevant to an animal. It formats the results into an infobox. Template:Infobox_Item will generate the following information, using the Module:Infobox Animal, and Module:AnimalData.

Parameters[edit source]

name
The name of an animal. This pulls the data for that animal from Module:AnimalData

Infobox Properties[edit source]

If name is found it will generate the following:

    |name = The name of an item.
More Information Coming Soon

Examples[edit source]

Lua error in Module:Infobox_Animal at line 58: attempt to index global 'Unit' (a nil value).

Lua error in Module:Infobox_Animal at line 58: attempt to index global 'Unit' (a nil value).

Lua error in Module:Infobox_Animal at line 58: attempt to index global 'Unit' (a nil value).