Difference between revisions of "Template:Enumeration"

From Yugipedia
Jump to: navigation, search
(allow current card's name to be manually specified)
(document all the parameters in a comment to (theoretically) make editing easier (some of the details are probably wrong though))
Line 1: Line 1:
 
&nbsp;<!--
 
&nbsp;<!--
 +
 +
1      = Name of property that stores the card numbers, used to fetch the names of the prev/next card
 +
2      = Current card's number (first of its numbers if it has multiple numbers)
 +
3      = (optional) Current card's last number, if it has multiple numbers
 +
pad    = (optional) Number of digits to pad the card number to, defaults to 3 (e.g. 001, 048)
 +
first  = (optional) First card's number, defaults to 1
 +
padded = (optional) Queries prev/next cards using the padded number instead of the unpadded one (useful if the numbers are stored as strings)
 +
last  = Last card's number
 +
curr  = Content to be shown in the middle section, normally includes things like links to video game, card list, and card gallery
 +
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
 +
name  = Name of the current card, if different from {{ #var: $name }}
 +
 
-->{{ #vardefine: $curr_number | {{ #expr: {{{2|}}}    }} }}<!--
 
-->{{ #vardefine: $curr_number | {{ #expr: {{{2|}}}    }} }}<!--
 
-->{{ #vardefine: $prev_number | {{ #expr: {{{2|}}} - 1 }} }}<!--
 
-->{{ #vardefine: $prev_number | {{ #expr: {{{2|}}} - 1 }} }}<!--

Revision as of 21:14, 31 July 2016

 

#000: