Template:Effect: Difference between revisions

From A KoL Wiki
imported>Fig bucket
m modify that to catch effect fields that are specified but differ from their meta-data
imported>Fig bucket
m but don't wipe the effect
Line 5: Line 5:
</div>
</div>
{{{desc}}}
{{{desc}}}
<p style="text-align:center; color:blue; font-weight:bold;">{{#if:{{{effect|}}}|{{#ifeq:{{{effect}}}|{{Data|{{PAGENAME}}|effect|}}|{{Data|{{PAGENAME}}|effect|}}|[[Category:Incomplete Meta-data]]}}|{{Data|{{PAGENAME}}|effect|}}}}</p></td><td style="vertical-align:top;" width="1%"><div class="infobox" style="text-align:right;font-size:80%">{{#ifexist:Data:{{PAGENAME}}|[[Data:{{PAGENAME}}|View&nbsp;metadata]]|'''<span class="plainlinks">[{{fullurle:Data:{{PAGENAME}}|action=edit&preload=Template:Effect/data}} Create&nbsp;metadata]</span>'''<span style="display:none">[[Data:{{PAGENAME}}]]</span>{{#ifeq:{{{autocat|yes}}}|yes|[[Category:Missing Metadata]]}}}}<br />{{#ifeq:{{{noid|0}}}|0|{{#ifeq:{{{effectid|}}}|!||{{#if:{{{effectid|}}}|'''[[Effects by number {{#ifexpr:{{{effectid}}} < 100||({{#expr:({{{effectid}}} - 50) round -2}}-{{#expr:(({{{effectid}}} + 50) round -2) - 1}})}}|Effect&nbsp;number]]:'''&nbsp;{{{effectid}}}|Effect&nbsp;ID&nbsp;not&nbsp;known![[Category:Incomplete]]}}}}{{#ifeq:{{{descid|}}}|!||<br />{{#if:{{{descid|}}}|'''Description&nbsp;ID:'''&nbsp;{{{descid}}}<br />'''View&nbsp;in-game:'''&nbsp;{{ingame link|path=desc_effect.php?whicheffect={{{descid}}}}}|Description&nbsp;ID&nbsp;not&nbsp;known![[Category:Incomplete]]}}}}}}</div></td></tr></table>{{#ifeq:{{{autocat|yes}}}|yes|[[Category:Effects]]|}}</includeonly><noinclude>
<p style="text-align:center; color:blue; font-weight:bold;">{{#if:{{{effect|}}}|{{#ifeq:{{{effect}}}|{{Data|{{PAGENAME}}|effect|}}|{{Data|{{PAGENAME}}|effect|}}|{{{effect}}}[[Category:Incomplete Meta-data]]}}|{{Data|{{PAGENAME}}|effect|}}}}</p></td><td style="vertical-align:top;" width="1%"><div class="infobox" style="text-align:right;font-size:80%">{{#ifexist:Data:{{PAGENAME}}|[[Data:{{PAGENAME}}|View&nbsp;metadata]]|'''<span class="plainlinks">[{{fullurle:Data:{{PAGENAME}}|action=edit&preload=Template:Effect/data}} Create&nbsp;metadata]</span>'''<span style="display:none">[[Data:{{PAGENAME}}]]</span>{{#ifeq:{{{autocat|yes}}}|yes|[[Category:Missing Metadata]]}}}}<br />{{#ifeq:{{{noid|0}}}|0|{{#ifeq:{{{effectid|}}}|!||{{#if:{{{effectid|}}}|'''[[Effects by number {{#ifexpr:{{{effectid}}} < 100||({{#expr:({{{effectid}}} - 50) round -2}}-{{#expr:(({{{effectid}}} + 50) round -2) - 1}})}}|Effect&nbsp;number]]:'''&nbsp;{{{effectid}}}|Effect&nbsp;ID&nbsp;not&nbsp;known![[Category:Incomplete]]}}}}{{#ifeq:{{{descid|}}}|!||<br />{{#if:{{{descid|}}}|'''Description&nbsp;ID:'''&nbsp;{{{descid}}}<br />'''View&nbsp;in-game:'''&nbsp;{{ingame link|path=desc_effect.php?whicheffect={{{descid}}}}}|Description&nbsp;ID&nbsp;not&nbsp;known![[Category:Incomplete]]}}}}}}</div></td></tr></table>{{#ifeq:{{{autocat|yes}}}|yes|[[Category:Effects]]|}}</includeonly><noinclude>
{{prot_high-use}}
{{prot_high-use}}
{{Code2}}
{{Code2}}

Revision as of 14:13, 9 October 2015

This high-use template has been protected from editing to prevent inaccurate edits and/or vandalism. Please use the talk page to discuss changes, and/or to ask an administrator to make an edit for you.
{{Effect}}
__NOTOC__<table width="100%"><tr><td><div align="center">

[[File:{{Data|{{PAGENAME}}|image|nopic2.gif}}|{{Data|{{PAGENAME}}|name|undefined effect name}}|30px]] '''{{Data|{{PAGENAME}}|name|undefined effect name}}''' </div> {{{desc}}}

<p style="text-align:center; color:blue; font-weight:bold;">{{#if:{{{effect|}}}|{{#ifeq:{{{effect}}}|{{Data|{{PAGENAME}}|effect|}}|{{Data|{{PAGENAME}}|effect|}}|{{{effect}}}[[Category:Incomplete Meta-data]]}}|{{Data|{{PAGENAME}}|effect|}}}}</p></td><td style="vertical-align:top;" width="1%"><div class="infobox" style="text-align:right;font-size:80%">{{#ifexist:Data:{{PAGENAME}}|[[Data:{{PAGENAME}}|View&nbsp;metadata]]|'''<span class="plainlinks">[{{fullurle:Data:{{PAGENAME}}|action=edit&preload=Template:Effect/data}} Create&nbsp;metadata]</span>'''<span style="display:none">[[Data:{{PAGENAME}}]]</span>{{#ifeq:{{{autocat|yes}}}|yes|[[Category:Missing Metadata]]}}}}<br />{{#ifeq:{{{noid|0}}}|0|{{#ifeq:{{{effectid|}}}|!||{{#if:{{{effectid|}}}|'''[[Effects by number {{#ifexpr:{{{effectid}}} < 100||({{#expr:({{{effectid}}} - 50) round -2}}-{{#expr:(({{{effectid}}} + 50) round -2) - 1}})}}|Effect&nbsp;number]]:'''&nbsp;{{{effectid}}}|Effect&nbsp;ID&nbsp;not&nbsp;known![[Category:Incomplete]]}}}}{{#ifeq:{{{descid|}}}|!||<br />{{#if:{{{descid|}}}|'''Description&nbsp;ID:'''&nbsp;{{{descid}}}<br />'''View&nbsp;in-game:'''&nbsp;{{ingame link|path=desc_effect.php?whicheffect={{{descid}}}}}|Description&nbsp;ID&nbsp;not&nbsp;known![[Category:Incomplete]]}}}}}}</div></td></tr></table>{{#ifeq:{{{autocat|yes}}}|yes|[[Category:Effects]]|}}

Usage Notes

  • Any page which uses this template must also incorporate a metadata page to hold the effect's name and image.