Difference between revisions of "Template:Enumeration"

From Yugipedia
Jump to: navigation, search
(Zero padding has been added to that variable, so it's never going to be empty.)
(require current card name to be passed in explicitly)
 
Line 11: Line 11:
 
curr2  = Set to "none" to disable showing the current card's name/number here, otherwise if it's set the input is shown instead of the current number
 
curr2  = Set to "none" to disable showing the current card's name/number here, otherwise if it's set the input is shown instead of the current number
 
curr2_full = Raw curr2 output
 
curr2_full = Raw curr2 output
name  = Name of the current card, if different from {{ #var: $name }}
+
name  = Name of the current card
  
 
-->{{ #vardefine: $enumeration_query  | {{ #if: {{{1|}}} | {{ ucfirst: {{{1}}} }} | Card number }} }}<!--
 
-->{{ #vardefine: $enumeration_query  | {{ #if: {{{1|}}} | {{ ucfirst: {{{1}}} }} | Card number }} }}<!--
Line 59: Line 59:
 
   }}
 
   }}
 
}}
 
}}
   <div class="curr">{{{curr|}}}{{ #ifeq: {{ lc: {{{curr2}}} }} | none || {{ #if: {{{curr|}}} | <br /> }}{{ #if: {{{curr2_full|}}} | {{{curr2_full}}} | {{{curr2|}}} {{pound}}{{ #var: $enumeration_curr_number }}: <span class="quotes">{{ #if: {{{name|}}} | {{{name}}} | {{ #var: $name }} }}</span> }} }}</div>
+
   <div class="curr">{{{curr|}}}{{ #ifeq: {{ lc: {{{curr2}}} }} | none || {{ #if: {{{curr|}}} | <br /> }}{{ #if: {{{curr2_full|}}} | {{{curr2_full}}} | {{{curr2|}}} {{pound}}{{ #var: $enumeration_curr_number }}: <span class="quotes">{{{name}}}</span> }} }}</div>
 
   </div><noinclude>{{documentation}}</noinclude>
 
   </div><noinclude>{{documentation}}</noinclude>

Latest revision as of 19:45, 15 March 2024

#000: {{{name}}}