Editing Template:Sandbox/User:Alsang
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
<!-- Intented to be a version of LocLine that inherits locations from a parent, and then displays them without making subobjects --> |
|||
<includeonly>{{#invoke:Sandbox/User:Alsang|main|item={{PAGENAME}}}}</includeonly><noinclude>{{/doc}}</noinclude> |
|||
<includeonly> |
|||
<tr> |
|||
{{#vardefine:loc|{{#ask:[[{{{parent}}}]]|?Has subobject.Located in#-|format=plainlist|limit=1|headers=hide|mainlabel=-}}}} |
|||
{{#vardefine:quantity|{{#ask:[[{{{parent}}}]]|?Has subobject.Location quantity#-|format=plainlist|limit=1|headers=hide|mainlabel=-}}}} |
|||
<td>[[{{#var:loc}}]]</td> |
|||
<td>{{#show: {{#var:loc}} |?Episode }}</td> |
|||
<td>{{#if:{{#var:quantity|}}|{{#var:quantity}}|{{Unknown}}}}</td> |
|||
</tr> |
|||
</includeonly><noinclude> |
|||
Syntax is |
|||
<nowiki>{{Sandbox/User:Alsang|parent=parentname}}</nowiki> |
|||
</noinclude> |