Difference between revisions of "Template:NorConDragonLogic"

From NorCon MUSH
 
(74 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{{1}}}
+
<includeonly>{{#set:Dragon={{#ifeq:{{{3}}}||{{{4}}} {{{2}}}|{{{3}}} {{{2}}}}}}} {{#ifeq:{{{9}}}| | |{{#set:Clutch=Clutch:{{{9}}}}}}} {{#ifeq:{{{15}}}||{{#set:Clutched={{{10}}}}}|{{#set:Clutched={{{15}}}}}}}
{{{2}}}
+
{{{3}}}
+
{{{4}}}
+
{{{5}}}
+
{{{6}}}
+
{{{7}}}
+
{{{8}}}
+
{{{9}}}
+
{{{10}}}
+
{{{11}}}
+
{{{12}}}
+
{{{13}}}
+
{{{14}}}
+
{{{15}}}
+
 
+
 
{|class="table table-striped" style="background-color: #FFFFFF !important; float:right; width:280px; margin:0 0 1em 1em; text-align:left;" cellpadding=5px
 
{|class="table table-striped" style="background-color: #FFFFFF !important; float:right; width:280px; margin:0 0 1em 1em; text-align:left;" cellpadding=5px
 
|-
 
|-
!colspan=2 style="text-align:center; padding-top: 5px; padding-bottom: 5px; font-size: larger; background-color:{{Template:{{{15}}}}}; border:Template:{{{14}}}2 2px solid; color:#FFFFFF; text-shadow: 2px 2px #000000;"| '''{{{2}}} {{{3}}}'''
+
!colspan=2 style="text-align:center; padding-top: 5px; padding-bottom: 5px; font-size: larger; background-color:{{#ifexist: Template:{{{15}}}|{{ {{{15}}} }}|{{#ifexist: Template:{{{10}}}|{{ {{ {{{10}}} }} }}|<nowiki>#000000</nowiki>}}}}; border:{{#ifexist: Template:{{{15}}}2|{{ {{{15}}}2 }}|<nowiki>#000000</nowiki>}} 2px solid; color:#FFFFFF; text-shadow: 2px 2px #000000;"| '''{{{3}}} {{{2}}}'''
 
|-valign="top"  
 
|-valign="top"  
 
|style="width:100px;" | '''Impressee''' {{!}}{{!}} [[{{{6}}}]]
 
|style="width:100px;" | '''Impressee''' {{!}}{{!}} [[{{{6}}}]]
 
|-valign="top"
 
|-valign="top"
{{#ifeq: {{{14}}} | | | {{!}}'''Hatching Date:''' {{!}}{{!}} {{#time: d F, Y | @{{{14}}}}} }}
+
{{#ifeq: {{{14|}}} | | | {{!}}'''Hatching Date:''' {{!}}{{!}} {{#time: d F, Y | @{{{14}}}}} <br>{{#ifeq: {{{14}}}|||{{ICDate |secs={{{14}}}}}}} }}
 
|-valign="top"
 
|-valign="top"
{{#ifeq: {{{11}}} | | | {{!}}'''Current Age:''' {{!}}{{!}} {{#expr:trunc {{#expr:{{#expr:{{#expr: {{#time: U | now }}-{{{11}}}}}/31536000}}*3}}}} turns }}
+
{{#ifeq: {{{11|}}} | | | {{!}}'''Current Age:''' {{!}}{{!}} {{#expr:trunc {{#expr:{{#expr:{{#expr: {{#time: U | now }}-{{{11}}}}}/31536000}}*3}}}} turns }}
 
|-valign="top"
 
|-valign="top"
{{#ifeq: {{{7}}} | | {{#ifeq: {{{egg|}}} | | | {{!}}'''Egg Name:''' {{!}}{{!}} {{{egg}}} }} | {{!}}'''Egg Name:''' {{!}}{{!}} {{{7}}} Egg }}
+
{{#ifeq: {{{7|}}} | | {{#ifeq: {{{egg|}}} | | | {{!}}'''Egg Name:''' {{!}}{{!}} {{{egg}}} }} | {{!}}'''Egg Name:''' {{!}}{{!}} {{{7}}} Egg }}
 
|-valign="top"
 
|-valign="top"
{{#ifeq: {{{8}}} | | {{#ifeq: {{{size|}}} | | | {{!}}'''Size:''' {{!}}{{!}} {{{size}}} feet }} | {{!}}'''Size:''' {{!}}{{!}} {{{8}}} feet}}
+
{{#ifeq: {{{8|}}} | | | {{!}}'''Size:''' {{!}}{{!}} {{{8}}} feet}}
 
|-valign="top"
 
|-valign="top"
{{#ifeq: {{#external_value:dam}} | | {{#ifeq: {{{dam| }}} | | | {{!}}'''Dam:''' {{!}}{{!}} [[Dam::Dragon:{{{dam}}}|{{{dam}}}]] }} | {{!}}'''Dam:''' {{!}}{{!}} [[Dam::Dragon:{{#external_value:dam}}{{!}}{{#ifeq: {{#external_value:dam2}} | | | {{#external_value:dam2}}}} {{#external_value:dam}} ]]}}
+
{{#ifeq: {{{12}}} | | | {{!}}'''Dam:''' {{!}}{{!}} {{#ifeq:{{#ask:[[Dragon-name::{{{12}}}]] [[DragonData::+]]|?Dragon-hname=|?Dragon-name=|template=Parents|format=Template}}||[[Dragon:{{{12}}}{{!}}{{{12}}}]]|{{#ask:[[Dragon-name::{{{12}}}]] [[DragonData::+]] |?Dragon-hname=|?Dragon-name=|template=Parents|format=Template}}}} {{#set:Dam=Dragon:{{{12}}}}}}}
 
|-valign="top"
 
|-valign="top"
{{#ifeq: {{#external_value:sire}} | |{{#ifeq: {{{sire| }}} | | | {{!}}'''Sire:''' {{!}}{{!}} [[Sire::Dragon:{{{sire}}}|{{{sire}}}]] }} | {{!}}'''Sire:''' {{!}}{{!}} [[Sire::Dragon:{{#external_value:sire}}{{!}}{{#ifeq: {{#external_value:sire2}} | | | {{#external_value:sire2}}}} {{#external_value:sire}} ]]}}
+
{{#ifeq: {{{13}}} | | | {{!}}'''Sire:''' {{!}}{{!}} {{#ifeq:{{#ask:[[Dragon-name::{{{13}}}]] [[DragonData::+]] |?Dragon-hname=|?Dragon-name=|template=Parents|format=Template}}||[[Dragon:{{{13}}}{{!}}{{{13}}}]]|{{#ask:[[Dragon-name::{{{13}}}]] [[DragonData::+]] |?Dragon-hname=|?Dragon-name=|template=Parents|format=Template}}}} {{#set:Sire=Dragon:{{{13}}}}}}}
 
|-valign="top"
 
|-valign="top"
{{!}}'''Lineage:''' {{!}}{{!}} [http://ncmush.net/index.php?title=Special:FamilyTree&Special:FamilyTree&page={{FULLPAGENAMEE}}&amp;type=ancestors&amp;gen=5&amp;page2= Here]
+
{{!}}'''Lineage:''' {{!}}{{!}} [http://norcon.louisebennett.name/index.php?title=Special:FamilyTree&Special:FamilyTree&page={{FULLPAGENAME}}&amp;type=ancestors&amp;gen=5&amp;page2= Here]
 
|-valign="top"
 
|-valign="top"
{{#ifeq: {{{clutch| }}} | | | {{!}}'''Clutch:''' {{!}}{{!}} [[Clutch::{{#ifeq:{{{weyr|}}} | | {{#ifeq:{{#external_value:weyr}}| | | {{#external_value:weyr}}Clutch:{{{clutch}}}|Clutch {{{clutch}}}}} |{{{weyr}}}Clutch:{{{clutch}}}}}]]}}  
+
{{#ifeq: {{{9}}} | | | {{!}}'''Clutch:''' {{!}}{{!}} [[Clutch:{{{9}}}]] }}
|-valign="top"
+
|-valign="top"</includeonly>
{{#ifeq: {{{egg credit| }}} | | | {{!}}'''Egg Credit:''' {{!}}{{!}} {{{egg credit}}} }}
+
<noinclude>Nothing to see here!</noinclude>
|-valign="top"
+
{{#ifeq: {{{dragon credit| }}} | | | {{!}}'''Dragon Credit:''' {{!}}{{!}} {{{dragon credit}}} }}
+
|-valign="top"
+
{{#ifeq: {{{puppeteer| }}} | | | {{!}}'''Puppeteer:''' {{!}}{{!}} {{{puppeteer}}} }}
+
|-
+
|colspan=2 style="text-align:center; padding: 5px; font-size: larger; background-color:{{#ifexist: Template:{{#external_value:weyr}}|{{ {{#external_value:weyr}} }}|{{#ifeq:{{{weyr|}}}| |<nowiki>#000000</nowiki>|{{{{{weyr}}}}}}}}}; border: {{#ifexist: Template:{{#external_value:weyr}}2|{{ {{#external_value:weyr}}2 }}|{{#ifeq:{{{weyr|}}}| |<nowiki>#000000</nowiki>|{{{{{weyr}}}2}}}}}} 2px solid; box-shadow: 0 1px 10px rgba(0,0,0,0.1); color:{{{fgcolor|#FFFFFF}}};" {{!}}
+
{{!}}}
+
{{#ifeq: {{#external_value:desc}} | | |{{#external_value:desc}}<br><br> }}
+
{{{body|}}}
+
 
+
 
+
 
+
{{#ifeq: {{{clutch|}}} | | | {{{!}}class="table table-striped" style="background-color:#FFFFFF; float:center;  text-align: left" cellpadding="3" cellspacing="0" width="100%" align="center"
+
{{!}}-
+
!colspan=2 style="text-align:center; padding-top: 5px; padding-bottom: 5px; font-size: larger; background-color:{{#ifexist: Template:{{#external_value:weyr}}|{{ {{#external_value:weyr}} }}|{{#ifeq:{{{weyr|}}}| |<nowiki>#000000</nowiki>|{{{{{weyr}}}}}}}}}; border: {{#ifexist: Template:{{#external_value:weyr}}2|{{ {{#external_value:weyr}}2 }}|{{#ifeq:{{{weyr|}}}| |<nowiki>#000000</nowiki>|{{{{{weyr}}}2}}}}}} 2px solid; color:#FFFFFF; text-shadow: 2px 2px #000000;"{{!}} '''{{#ifeq:{{#external_value:weyr}}| | {{#ifeq:{{{weyr|}}} | | | {{{weyr}}} }} | {{#external_value:weyr}} }} Clutch {{{clutch}}} '''
+
{{!}}-valign="top"
+
{{!}}{{#ask:[[Clutch::{{#ifeq: {{#external_value:weyr}}| | {{{weyr}}}|{{#external_value:weyr}} }}Clutch:{{{clutch}}}]] [[Insta::Insta{{!}}{{!}}PC]]
+
|?Dragon
+
|?Impressee=
+
|format=ul
+
|link=none
+
|template=DragonNames
+
|headers=show
+
|searchlabel=... further results
+
|class=sortable wikitable smwtable
+
|columns=2
+
}}
+
{{!}}-
+
{{!}}colspan=2 style="text-align:center; padding: 5px; font-size: larger; background-color:{{#ifexist: Template:{{#external_value:weyr}}|{{ {{#external_value:weyr}} }}|{{#ifeq:{{{weyr|}}}| |<nowiki>#000000</nowiki>|{{{{{weyr}}}}}}}}}; border: {{#ifexist: Template:{{#external_value:weyr}}2|{{ {{#external_value:weyr}}2 }}|{{#ifeq:{{{weyr|}}}| |<nowiki>#000000</nowiki>|{{{{{weyr}}}2}}}}}} 2px solid; box-shadow: 0 1px 10px rgba(0,0,0,0.1); color:{{{fgcolor|#FFFFFF}}};" {{!}}
+
{{!}}} }}
+
{{#set:Color={{#ifeq:{{#external_value:color}}| |{{#ifeq:{{{color|}}}| | |{{{color}}}}}|{{#external_value:color}}}}}} [[Page has default form::Dragon| ]] {{#ifeq: {{{insta| }}} | | {{#set:Insta=PC}}| }}  {{#ifeq: {{{insta|}}} | NPC | {{#set:Insta=NPC}} | }} {{#ifeq: {{{insta|}}} | Yes | {{#set:Insta=Insta}} | }}{{#ifeq:{{#external_value:home}} | | | {{#set:DragonHome={{#external_value:home}} }} }} {{#set:Clutched={{#ifeq:{{#external_value:weyr}}| |{{#ifeq:{{{weyr|}}}| | | {{{weyr}}} }}| {{#external_value:weyr}}}}}} {{#set:Dragon={{#ifeq:{{#external_value:dragon}}| |{{{name}}}|{{#ifeq:{{#external_value:hname}}| | |{{#external_value:hname}}&nbsp;}}{{#external_value:dragon}}}}}}
+
{{#pagetitle:{{#ifeq:{{#external_value:dragon}}| |{{{name}}}|{{#ifeq:{{#external_value:hname}}| | |{{#external_value:hname}}&nbsp;}}{{#external_value:dragon}}}}}}
+

Latest revision as of 12:51, 6 March 2021

Nothing to see here!