Template:LocLine: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
Tag: Undo |
(Build up a JSON object to store as a singular smw property) |
||
Line 3: | Line 3: | ||
<td>{{#show: {{{loc}}} |?Episode }}</td> |
<td>{{#show: {{{loc}}} |?Episode }}</td> |
||
<td>{{#if:{{{quantity|}}}|{{{quantity}}}|{{Unknown}}}}</td> |
<td>{{#if:{{{quantity|}}}|{{{quantity}}}|{{Unknown}}}}</td> |
||
</tr>{{#subobject:LOC_{{{loc}}}|Location object={{#if:{{#var:loc_version}}|{{FULLPAGENAME}}#{{#var:loc_version}}|{{FULLPAGENAME}}}}|Located in={{{loc}}}|Location quantity={{#if:{{{quantity|}}}|{{{quantity}}}|Unknown}}}}</includeonly><noinclude>{{/doc}}</noinclude> |
</tr>{{#subobject:LOC_{{{loc}}}|Location object={{#if:{{#var:loc_version}}|{{FULLPAGENAME}}#{{#var:loc_version}}|{{FULLPAGENAME}}}}|Located in={{{loc}}}|Location quantity={{#if:{{{quantity|}}}|{{{quantity}}}|Unknown}}}}{{#vardefine:loc_json|{{#var:loc_json}}{{#if:{{#var:loc_json}}|,|{{(}}}}"{{{loc}}}":{{#if:{{{quantity|}}}|{{{quantity}}}|null}}}}</includeonly><noinclude>{{/doc}}</noinclude> |