Template:Effect: Difference between revisions
From A KoL Wiki
imported>Quietust mNo edit summary |
Make responsive |
||
(38 intermediate revisions by 4 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>__NOTOC__ | <includeonly>__NOTOC__<div class="template-effect responsive-infobox-container"><div style="flex-grow:1;"><div align="center"> | ||
<div | |||
<div align="center"> | |||
[[File:{{Data|{{PAGENAME}}|image|nopic2.gif}}|{{Data|{{PAGENAME}}|name|undefined effect name}}|30px]] | [[File:{{Data|{{PAGENAME}}|image|nopic2.gif}}|{{Data|{{PAGENAME}}|name|undefined effect name}}|30px]] | ||
Line 7: | 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|}}|{{{effect}}}{{#ifeq:{{{autocat|yes}}}|yes|[[Category:Incomplete Meta-data]]}}}}|{{Data|{{PAGENAME}}|effect|}}}}</p></div><div><div class="infobox">{{#ifexist:Data:{{PAGENAME}}|[[Data:{{PAGENAME}}|View metadata]]|'''<span class="plainlinks">[{{fullurle:Data:{{PAGENAME}}|action=edit&preload=Template:Effect/data&preloadparams%5b%5d={{PAGENAMEE}}}} Create 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 number]]:''' {{{effectid}}}|Effect ID not known![[Category:Incomplete]]}}}}{{#ifeq:{{{descid|}}}|!||<br />{{#if:{{{descid|}}}|'''Description ID:''' {{{descid}}}<br />'''View in-game:''' {{ingame link|path=desc_effect.php?whicheffect={{{descid}}}}}|Description ID not known![[Category:Incomplete]]}}}}}}<div style="font-size:smaller;"><span class="plainlinks" style="float:left;">[{{fullurl:{{FULLPAGENAMEE}}|action=purge}} refresh]</span><span class="plainlinks" style="float:right;">[{{fullurl:Data:{{FULLPAGENAMEE}}|action=edit}} edit data]</span></div></div></div></div>{{#ifeq:{{{autocat|yes}}}|yes|[[Category:Effects]]|}}</includeonly><noinclude> | |||
<p style="text-align:center; color:blue; font-weight:bold;">{{{effect}}}</p>{{#ifeq:{{{autocat|yes}}}|yes|[[Category:Effects]]|}}</includeonly><noinclude> | |||
{{prot_high-use}} | {{prot_high-use}} | ||
{{Code2}} | {{Code2}} |
Latest revision as of 13:45, 5 September 2025
[edit]
{{Effect}}
__NOTOC__<div class="template-effect responsive-infobox-container"><div style="flex-grow:1;"><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}}}{{#ifeq:{{{autocat|yes}}}|yes|[[Category:Incomplete Meta-data]]}}}}|{{Data|{{PAGENAME}}|effect|}}}}</p></div><div><div class="infobox">{{#ifexist:Data:{{PAGENAME}}|[[Data:{{PAGENAME}}|View metadata]]|'''<span class="plainlinks">[{{fullurle:Data:{{PAGENAME}}|action=edit&preload=Template:Effect/data&preloadparams%5b%5d={{PAGENAMEE}}}} Create 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 number]]:''' {{{effectid}}}|Effect ID not known![[Category:Incomplete]]}}}}{{#ifeq:{{{descid|}}}|!||<br />{{#if:{{{descid|}}}|'''Description ID:''' {{{descid}}}<br />'''View in-game:''' {{ingame link|path=desc_effect.php?whicheffect={{{descid}}}}}|Description ID not known![[Category:Incomplete]]}}}}}}<div style="font-size:smaller;"><span class="plainlinks" style="float:left;">[{{fullurl:{{FULLPAGENAMEE}}|action=purge}} refresh]</span><span class="plainlinks" style="float:right;">[{{fullurl:Data:{{FULLPAGENAMEE}}|action=edit}} edit data]</span></div></div></div></div>{{#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.