8,756
edits
mNo edit summary |
(add bodytype query) |
||
Line 40: | Line 40: | ||
}} {{#if: {{{hurtbydefoliant|}}} |{{#switch:{{{hurtbydefoliant}}}|1=normal|2=significant}} damage by defoliant,,, | }} {{#if: {{{hurtbydefoliant|}}} |{{#switch:{{{hurtbydefoliant}}}|1=normal|2=significant}} damage by defoliant,,, | ||
}} {{#ifeq: {{{hasmentalshield|}}} | yes | mental shield,,, | }} {{#ifeq: {{{hasmentalshield|}}} | yes | mental shield,,, | ||
}} {{#if: {{{bodytype|}}} | bodytype:,,, | |||
}}{{{extrainfo|}}} | }}{{{extrainfo|}}} | ||
| JoinKey = {{FULLPAGENAME}} | | JoinKey = {{FULLPAGENAME}} | ||
Line 98: | Line 99: | ||
}}<!-- | }}<!-- | ||
-->{{#ifeq: {{{hasmentalshield|}}} | yes |<li> Has a [[mental shield]] | -->{{#ifeq: {{{hasmentalshield|}}} | yes |<li> Has a [[mental shield]] | ||
}}<!-- | }} | ||
-->{{#if:{{{ | -->{{#if:{{{extrainfo|}}}|<li>{{{extrainfo}}} }}</ul><!-- | ||
</ul></includeonly><noinclude><!---- | |||
Body type is at the bottom since it takes more formatting | |||
-->{{#if: {{{bodytype|}}} | |||
|<div style="text-align:center;padding:1em"><b>Body Plan: {{{bodytype}}}</b></div> | |||
{{#invoke:CargoQuery|main | |||
|table=Anatomies=A | |||
| where = Name="{{{bodytype}}}" | |||
|fields=CONCAT("<li> [[List of Body Parts#", BaseType, "{{!}}", COALESCE(CONCAT(Laterality, " "), ""), Type, "]]", (CASE WHEN childType <> "" THEN CONCAT("<ul><li> [[List of Body Parts#", childBaseType, "{{!}}", COALESCE(CONCAT(childLaterality, " "), ""), childType, "]]</ul>") ELSE "" END))=Page | |||
| format=ul | |||
| template=single query result | |||
| limit = 10 | |||
}} | |||
</includeonly><noinclude><!---- | |||
Documentation Start | Documentation Start |