Template:Extra info: Difference between revisions

Jump to navigation Jump to search
mNo edit summary
(forgot to add body. Also, made base limb info readable without mousing over)
Line 106: Line 106:
-->{{#if: {{{bodytype|}}}
-->{{#if: {{{bodytype|}}}
|<div style="padding:1em 0em;"><hr></div><b>Limbs* ({{{bodytype}}}):</b>
|<div style="padding:1em 0em;"><hr></div><b>Limbs* ({{{bodytype}}}):</b>
<ul><li>Body [[List of Body Parts#Body|(Body)]]</li>
{{#invoke:CargoQuery|main
{{#invoke:CargoQuery|main
  |table=Anatomies=A
  |table=Anatomies=A
  | where = Name="{{{bodytype}}}"
  | 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
  |fields=CONCAT("<li>", COALESCE(CONCAT(Laterality, " "), ""), Type, " [[List of Body Parts#", BaseType, "{{!}}(",BaseType,")]]", (CASE WHEN childType <> "" THEN CONCAT("<ul><li>", COALESCE(CONCAT(childLaterality, " "), ""), childType, " [[List of Body Parts#", childBaseType, "{{!}}(", childBaseType, ")]]</ul>") ELSE "" END))=Page
| format=ul
  | template=single query result
  | template=single query result
  | limit = 20
  | limit = 20
  | default = Oops, this anatomy doesn't exist![[Category:Pages with missing anatomies]]
  | default = Oops, this anatomy doesn't exist![[Category:Pages with missing anatomies]]
}}
}}</ul>
<small>* Excludes limbs granted via mutations</small>}}
<small>* Excludes limbs granted via mutations</small>}}
</includeonly><noinclude><!----
</includeonly><noinclude><!----