Difference between revisions of "Template:Transient infobox"

Jump to navigation Jump to search
no edit summary
Line 17: Line 17:
#if:{{{en research file|}}}|{{#vardefine:transient jp en research file|{{{en research file||}}}}}}}{{
#if:{{{en research file|}}}|{{#vardefine:transient jp en research file|{{{en research file||}}}}}}}{{
#masterdata:Card|{{#var:transient id}}|{{#var:transient template options|{{#if:{{{en research file|}}}||no-research=true}}}}
#masterdata:Card|{{#var:transient id}}|{{#var:transient template options|{{#if:{{{en research file|}}}||no-research=true}}}}
}}{{#vardefine:transient template options|}}|Guru mediation: error mapping Transient title "{{{jp title|}}}" to an ID. Please purge the cache by going to More > Refresh}}</includeonly><noinclude>
}}{{#vardefine:transient template options|}}|Guru mediation: error mapping Transient title "{{{jp title|}}}" to an ID. To avoid this error in the future, please pass an ID to the infobox template.}}</includeonly><noinclude>
== Description ==
== Description ==
This templates is a proxy for the [[Template:Transient extended infobox]] extended template to avoid manually adding internal ID's to units by matching up titles to units. If you absolutely have to create an infobox for a unit that's not in game, please use:
This templates is a proxy for the [[Template:Transient extended infobox]] extended template to avoid manually adding internal ID's to units by matching up titles to units. If you absolutely have to create an infobox for a unit that's not in game, please use:
Line 43: Line 43:
}}
}}
</pre>
</pre>
If just a Japanese title is provided (without an ID), the template will attempt to check if the title has already been defined on the wiki, then attempts to map the title string to an ID. If this fails, an error message is thrown.


[[Category:Infobox templates]][[Category:Subobject templates]][[Category:Deprecated templates]]
[[Category:Infobox templates]][[Category:Subobject templates]][[Category:Deprecated templates]]
</noinclude>
</noinclude>

Navigation menu