Difference between revisions of "Template:Wyrm"

From Cruinndrac Farms
Jump to: navigation, search
m
 
(83 intermediate revisions by 2 users not shown)
Line 5: Line 5:
 
{{Character Infobox
 
{{Character Infobox
 
| Thumbnail=Small image of the wyrm --> File.ext
 
| Thumbnail=Small image of the wyrm --> File.ext
| Data Image=Image of the wyrm and it's data card --> File.ext
+
| DataImage=Image of the wyrm and it's data card --> File.ext
 +
| Gender=
 
| Breed=
 
| Breed=
 
| Species=
 
| Species=
Line 18: Line 19:
 
| Features=Feature,Feature2,Feature3
 
| Features=Feature,Feature2,Feature3
 
| Breedings=(Breedings Available)
 
| Breedings=(Breedings Available)
 +
| BreedingsMax=(Maximum Breedings)
 +
| Clan=
 
}}
 
}}
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
 
</noinclude>
 
</noinclude>
<includeonly>{{#css:
+
<includeonly>
  .CharacterBox {width: 300px; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left; border-radius: 5px; border-spacing:1px;}
+
[[File:{{{Thumbnail}}}|left|100px]]{{#set:Thumbnail={{{Thumbnail}}}}}
  .CharacterBox td,th { padding:0px 0px 0px 5px;}
+
<div style="float: right; text-align: text-top; vertical-align: text-top;">{{#if:{{{DataImage|}}}|[[File:{{{DataImage}}}|top|300px]]}}&nbsp;&nbsp;&nbsp;{{#if:{{{DataCard|}}}|[[File:{{{DataCard}}}|top|300px]]}}</div>
  .CharacterBox th:nth-child(1) { width:100px; }
+
'''Gender''': {{#set:gender={{{Gender}}}}}{{{Gender|None}}} <br />
  .CharacterBox tr:nth-child(2n+1) {background-color: rgba(0,70,70,.2)}
+
'''Type''': {{#set:breed={{{Breed}}}}}{{{Breed|None}}} <br />
  .CharacterBox tr:nth-child(2n+2) {background-color: rgba(0,70,70,.3)}
+
'''Species''': {{#set:species={{{Species}}}}}{{{Species|None}}} <br />
  .CharacterBox tr:nth-last-child(1) td {border-radius:0px 0px 5px 5px;}
+
'''Rarity''': {{#set:rarity={{{Rarity}}}}}{{{Rarity|None}}} <br />
}}{| class="CharacterBox"
+
'''Variety''': {{#set:variety={{{Variety}}}}}{{{Variety|None}}} <br />
! style="text-align: center; background-color:#ccccff; border-radius: 5px 5px 0px 0px;" colspan="2" width="100%" |{{PAGENAME}} |
+
{{#if:{{{Clan|}}}|'''Clan''': {{#set:clan={{{Clan}}}}}{{{Clan|None}}}<br />}}
|-
+
'''Handler''': {{#set:handler={{{Handler}}}}}[[{{{Handler|None}}}]] {{#if:{{#ask: [[{{{Handler}}}]] | ?handlerinfo= | mainlabel=-|format=list}}|({{#ask: [[{{{Handler}}}]] | ?handlerinfo= | mainlabel=-|format=list}})|}} <br />
! Age
+
'''Group''': {{#set:group={{{Group}}}}}{{{Group|None}}}
| {{{age|Undefined}}}
+
----
|-
+
'''Generation''': G{{#set:generation={{{Generation}}}}}{{{Generation|None}}} <br />
! Species
+
'''Sire''': {{#set:dam={{{Sire|None}}}}}{{#ifexist:{{{Sire|None}}}|[[{{{Sire}}}]]{{#ifeq:{{#explode:{{{Sire|None}}}|:|0}}|dragonwiki|[[{{{Sire}}}|{{#explode:{{{Sire|None}}}|:|1}}]]|{{{Sire|None}}} }} }}  <br />
| [[Species::{{{species|Undefined}}}]]
+
'''Dam''': {{#set:dam={{{Dam|None}}}}}{{#ifexist:{{{Dam|None}}}|[[{{{Dam}}}]]| {{#ifeq:{{#explode:{{{Dam|None}}}|:|0}}|dragonwiki|[[{{{Dam}}}|{{#explode:{{{Dam|None}}}|:|1}}]]|{{{Dam|None}}} }} }}  <br />
|-
+
<br />
! Sex
+
'''Genetics''': {{#set:genetics={{{Genetics}}}}}{{{Genetics|None}}} <br />
| [[Sex::{{{sex|Undefined}}}]]
+
'''Features''': <br />
|-
+
{{#arraymap:{{{Features|}}}|,|x|[[feature::x]]|<br />}} <br />
! Height
+
<br />
| {{{height|Undefined}}}
+
'''Breedings''': {{#set:breedings={{{Breedings}}}}}{{#set:BreedingsMax={{{BreedingsMax}}}}}{{#switch:{{{Breedings}}}|0=NONE|{{{Breedings}}}}}<br />
|-
+
'''Offspring''': {{#ask: [[Category:Wyrms]] [[Sire::{{PAGENAME}}]] OR [[Dam::{{PAGENAME}}]] }}
! Weight
+
{{#set:Sculptor={{{Sculptor}}}}}
| {{{weight|Undefined}}}
+
[[Category:Wyrms]]
|-
+
| colspan="2" style="text-align:center;" bgcolor="9e9e9e" | '''Background'''
+
|-
+
! Series
+
| [[Category:{{{series|Final Kingdom}}}]]{{{series|Final Kingdom}}}
+
|-
+
! Combat Styles
+
| {{{styles}}}
+
|-
+
! Hometown
+
| {{#ifeq:{{{hometown|None}}}|None|None|{{#set:hometown={{{hometown}}} }}{{{hometown}}}}}
+
|-
+
! Group
+
| {{#ifeq:{{{group|None}}}|None|None|{{#set:group={{{group}}} }}{{{group}}}}}
+
|-
+
! Occupation/Job
+
| {{#set:occupation={{{occupation|None}}} }}{{{occupation|None}}}
+
|-
+
! Force:
+
| [[alignment::{{{alignment}}}]]
+
|-
+
| colspan="2" style="text-align:center;" bgcolor="9e9e9e" | '''Quote'''
+
|-
+
| colspan="2" style="text-align:center;" | ''{{#set:Quote={{{quote}}} }}{{{quote}}}''
+
|} [[Category:Wyrms]]
+
 
</includeonly>
 
</includeonly>

Latest revision as of 10:08, 21 November 2018

This is the "Wyrm" template. It should be called in the following format:

{{Character Infobox
| Thumbnail=Small image of the wyrm --> File.ext
| DataImage=Image of the wyrm and it's data card --> File.ext
| Gender=
| Breed=
| Species=
| Rarity=
| Variety=
| Handler=
| Generation=
| Group=
| Sire=
| Dam=
| Genetics=
| Features=Feature,Feature2,Feature3
| Breedings=(Breedings Available)
| BreedingsMax=(Maximum Breedings)
| Clan=
}}

Edit the page to see the template text.