Difference between revisions of "Template:Gallery/Entry"

From Cube Life: Island Survival Wiki
Jump to: navigation, search
 
Line 7: Line 7:
   
 
<div style="text-align:center">
 
<div style="text-align:center">
  +
{{#if:{{{text|}}}
{{#if:{{{text|}}}|{{{text}}}|{{#if:{{{link|}}}|{{#ifeq:{{lc:{{{link}}}}}|none||[[{{{link}}}]]}}}}}}
 
  +
|<!-- case when text -->
  +
{{#if:{{{link|}}}|[[{{{link}}}|{{{text}}}]]|{{{text}}}<!-- end if link -->}}
  +
|<!-- case when not text -->
 
{{#if:{{{link|}}}|{{#ifeq:{{lc:{{{link}}}}}|none||[[{{{link}}}]]}}}}
  +
<!-- endif -->
  +
}}
 
</div>
 
</div>
 
</li>
 
</li>

Latest revision as of 22:01, 6 December 2020


This template works in tandem with the Template:Gallery template! I'll be adding more details on how it works later...