Difference between revisions of "Template:Transient infobox"

Jump to navigation Jump to search
no edit summary
Line 1: Line 1:
<includeonly>{{#vardefine:transient id|{{{id|}}}}}<!--{{#if:{{#var:transient id|}}||
<includeonly><!--
  {{#vardefine:transient tmp subobj|
ID provided
    {{#ask:
-->{{#vardefine:transient id|{{{id|}}}}}<!--
      [[Has Japanese title::{{{jp title|}}}]]
Lookup against existing SMW subobjects
    }}
-->{{#if:{{#var:transient id|}}|| {{Transient title to ID|{{{jp title|}}}|mode=smw}} }}<!--
  }}
Lookup against the Housamo MediaWiki extension (lately ineffective)
  {{#if:{{#var:transient tmp subobj|}}|
-->{{#if:{{#var:transient id|}}|| {{Transient title to ID|{{{jp title|}}}|mode=ext}} }}<!--
    {{#vardefine:transient id|{{#show:{{#var:transient tmp subobj|}}|?Has ID}}}}
Null if ID = 0
    {{#vardefine:transient id|{{#var:transient id}}}}
-->{{#ifeq:{{#var:transient id|}}|0|{{#vardefine:transient id|}}}}<!--
  }}
Proxy through extended template
}}-->{{#if:{{#var:transient id|}}||
-->{{#if:{{#var:transient id|}}|{{
{{#vardefine:transient id|{{#if:{{{jp title|}}}|{{#masterdata:Card|{{{jp title|}}}|id:name.title}}|0}}}}
}}{{#ifeq:{{#var:transient id|}}|0|{{#vardefine:transient id|}}}}{{#if:{{#var:transient id|}}|{{
#if:{{{en title|}}}|{{#vardefine:transient en title|{{{en title|}}}}}}}{{
#if:{{{en title|}}}|{{#vardefine:transient en title|{{{en title|}}}}}}}{{
#if:{{{en name|}}}|{{#vardefine:transient en name|{{{en name|}}}}}}}{{
#if:{{{en name|}}}|{{#vardefine:transient en name|{{{en name|}}}}}}}{{

Navigation menu