Actions

Template

Infobox pet: Difference between revisions

From The Canon of Nora Wiki

No edit summary
No edit summary
Tag: Reverted
Line 1: Line 1:
<noinclude>{{#cargo_declare:
<noinclude>
{{#cargo_declare:
_table=Pets
_table=Pets
|Name=String
|Name=String
Line 6: Line 7:
|Sex=String
|Sex=String
|Color=String
|Color=String
|Owner=Page
|Owner=String
|FirstAppearance=Page
|FirstAppearance=String
|LastAppearance=Page
|LastAppearance=String
|Series=Page
|Series=String
|Status=String
|Status=String
|Role=String
|Role=String
|Importance=String
|Importance=String
|Image=String
}}
}}
This template creates the infobox and stores pet data in the Cargo '''Pets''' table.
== Usage ==
<pre>
{{Infobox pet
|name=
|image=
|species=
|breed=
|sex=
|color=
|owner=
|first_appearance=
|last_appearance=
|series=
|status=
|role=
|importance=
}}
</pre>
</noinclude><includeonly>
</noinclude><includeonly>
{{#cargo_store:
{{#cargo_store:
_table=Pets
_table=Pets
Line 52: Line 31:
|Role={{{role|Companion}}}
|Role={{{role|Companion}}}
|Importance={{{importance|Supporting}}}
|Importance={{{importance|Supporting}}}
|Image={{{image|}}}
}}
}}


{| class="infobox"
{| class="infobox" style="width: 300px; font-size: 90%; float: right; clear: right; margin: 0 0 2em 4em;"
|-
|-
! colspan="2" style="text-align:center;font-size:120%;" | {{{name|{{PAGENAME}}}}}
! colspan="2" style="text-align:center; font-size: 150%;" | {{{name|{{PAGENAME}}}}}
|-
|-
| colspan="2" style="text-align:center;" |
| colspan="2" style="text-align:center;" | {{#if:{{{image|}}}|[[File:{{{image}}}|200px]]|''No image available''}}
{{{image|[[File:Placeholder Pet.png|250px]]}}}
|-
|-
! Species
! colspan="2" style="background:#cccccc;" | Pet
| {{{species|}}}
|-
|-
! Breed
| '''Species''' || {{{species|}}}
| {{{breed|}}}
|-
|-
! Sex
| '''Breed''' || {{{breed|}}}
| {{{sex|Unknown}}}
|-
|-
! Color
| '''Sex''' || {{{sex|Unknown}}}
| {{{color|}}}
|-
|-
! Owner
| '''Color''' || {{{color|}}}
| {{{owner|}}}
|-
|-
! First Appearance
| '''Owner''' || {{{owner|}}}
| {{{first_appearance|}}}
|-
|-
! Last Appearance
! colspan="2" style="background:#cccccc;" | Canon
| {{{last_appearance|}}}
|-
|-
! Series
| '''First appearance''' || {{{first_appearance|}}}
| {{{series|}}}
|-
|-
! Status
| '''Last appearance''' || {{{last_appearance|}}}
| {{{status|Alive}}}
|-
|-
! Role
| '''Series''' || {{{series|}}}
| {{{role|Companion}}}
|-
|-
! Importance
| '''Status''' || {{{status|Alive}}}
| {{{importance|Supporting}}}
|-
| '''Role''' || {{{role|Companion}}}
|-
| '''Importance''' || {{{importance|Supporting}}}
|}
|}
[[Category:Pets]]{{#if:{{{species|}}}|[[Category:{{{species}}}s]]}}{{#if:{{{series|}}}|[[Category:{{{series}}}]]}}</includeonly><noinclude>
== Usage ==
<pre>
{{Infobox pet
|name=
|image=
|species=
|breed=
|sex=
|color=
|owner=
|first_appearance=
|last_appearance=
|series=
|status=
|role=
|importance=
}}
</pre>


</includeonly>
</noinclude>

Revision as of 20:15, 25 June 2026

This template defines the table "Pets". View table.


Usage

{{Infobox pet
|name=
|image=
|species=
|breed=
|sex=
|color=
|owner=
|first_appearance=
|last_appearance=
|series=
|status=
|role=
|importance=
}}