Difference between revisions of "Template:Dragon"
From NorCon MUSH
| Line 3: | Line 3: | ||
|from=dragons | |from=dragons | ||
|where=name='{{#explode:{{BASEPAGENAME}}| |-1}}' | |where=name='{{#explode:{{BASEPAGENAME}}| |-1}}' | ||
| − | |data=dragon=name,hname=hname,color=color,wing=wing,rider=rider,ename=ename,size=size,clutch=clutch,desc=description,home=weyr | + | |data=dragon=name,hname=hname,color=color,wing=wing,rider=rider,ename=ename,size=size,clutch=clutch,desc=description,home=weyr,hatchsecs=hatchsecs |
}}{{#get_db_data: | }}{{#get_db_data: | ||
db=norcon | db=norcon | ||
| Line 26: | Line 26: | ||
|-valign="top" | |-valign="top" | ||
{{#ifeq: {{{date}}} | | | {{!}}'''Hatching Date:''' {{!}}{{!}} {{#ifeq: {{#external_value:hatchdate}} | | {{Date | {{{date|0000.00.00}}} }} | {{Date | {{{date|{{#time:Y.m.d|@{{#external_value:hatchdate}} }} }}}}} }}}} | {{#ifeq: {{{date}}} | | | {{!}}'''Hatching Date:''' {{!}}{{!}} {{#ifeq: {{#external_value:hatchdate}} | | {{Date | {{{date|0000.00.00}}} }} | {{Date | {{{date|{{#time:Y.m.d|@{{#external_value:hatchdate}} }} }}}}} }}}} | ||
| + | |-valign="top" | ||
| + | {{#ifeq: {{#external_value:hatchsecs}} | | | {{!}}'''Current Age:''' {{!}}{{!}} ~{{#expr:trunc {{#expr:{{#expr:{{#expr: {{#time: U | now }}-{{#external_value:hatchsecs}}}}/31536000}}*3}}}} turns}} | ||
|-valign="top" | |-valign="top" | ||
{{#ifeq: {{#external_value:ename}} | | {{#ifeq: {{{egg|}}} | | | {{!}}'''Egg Name:''' {{!}}{{!}} {{{egg}}} }} | {{!}}'''Egg Name:''' {{!}}{{!}} {{#external_value:ename}} Egg }} | {{#ifeq: {{#external_value:ename}} | | {{#ifeq: {{{egg|}}} | | | {{!}}'''Egg Name:''' {{!}}{{!}} {{{egg}}} }} | {{!}}'''Egg Name:''' {{!}}{{!}} {{#external_value:ename}} Egg }} | ||
Revision as of 01:32, 18 April 2015
| {{{name}}} | |
|---|---|
| Impressee | |
| Hatching Date: | Some time in history |
| Lineage: | Here |