User:Chris314542: Difference between revisions

From MTG Wiki
Jump to navigation Jump to search
>Chris314542
(Updated test conditions for gatherer template)
>Chris314542
mNo edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Gatherer Search Template ==
== Gatherer Search Template ==
=== New functionality ===
Updated to fix broken and functionality. Added optional display parameter to change text displayed in link.
===== "And" conditions =====
* {{{Aye}}} '''New (works) - ''' Cards that are red and green: {{Gatherer search2|color|R|color|G}}
* {{{Nay}}} '''Old (does not work) - ''' Cards that are red and green: {{Gatherer search|color|R|color|G}}


===== Optional display parameter for inline links =====
* '''New - ''' Kaladesh contained {{Gatherer search2|display=a cycle of colored artifact creatures.|set|Kaladesh|name|Gearhulk}}


=== Test cases ===
=== Test cases ===
* {{Aye}} '''New - ''' Artifact enchantments from Theros: {{Gatherer search|set|Theros|type|Artifact|type|Enchantment}}
* <big><span style=color:green>Yes</span></big> '''New - ''' Artifact enchantments from Theros: {{Gatherer search2|set|Theros|type|Artifact|type|Enchantment}}
* {{Nay}} '''Old - ''' Artifact enchantments from Theros: {{Gatherer search|set|Theros|type|Artifact|type|Enchantment}}
* <big><span style=color:red>No</span></big> '''Old - ''' Artifact enchantments from Theros: {{Gatherer search|set|Theros|type|Artifact|type|Enchantment}}


* {{Aye}} '''New - ''' Cards that are all five colors: {{Gatherer search|color|W|color|U|color|B|color|R|color|G}}
* {{Nay}} '''Old - ''' Cards that are all five colors: {{Gatherer search|color|W|color|U|color|B|color|R|color|G}}


* {{Aye}} '''New - ''' Kaladesh Gearhulks: {{Gatherer search|set|Kaladesh|name|Gearhulk}}
* <big><span style=color:green>Yes</span></big> '''New - ''' Cards that are all five colors: {{Gatherer search2|color|W|color|U|color|B|color|R|color|G}}
* {{Aye}} '''Old - ''' Kaladesh Gearhulks: {{Gatherer search|set|Kaladesh|name|Gearhulk}}
* <big><span style=color:red>No</span></big> '''Old - ''' Cards that are all five colors: {{Gatherer search|color|W|color|U|color|B|color|R|color|G}}


* {{Nay}} '''New - ''' Bolt (as only parameter): {{Gatherer search|bolt}}
* {{Nay}} '''Old - ''' Bolt (as only parameter): {{Gatherer search|bolt}}


* {{Aye}} '''New - ''' Bolt (in rules text): {{Gatherer search|text|bolt}}
* <big><span style=color:green>Yes</span></big> '''New - ''' Kaladesh Gearhulks: {{Gatherer search2|set|Kaladesh|name|Gearhulk}}
* {{Aye}} '''Old - ''' Bolt (in rules text): {{Gatherer search|text|bolt}}
* <big><span style=color:green>Yes</span></big> '''Old - ''' Kaladesh Gearhulks: {{Gatherer search|set|Kaladesh|name|Gearhulk}}
 
 
* <big><span style=color:green>Yes</span></big> '''New - ''' Bolt (in rules text): {{Gatherer search2|text|bolt}}
* <big><span style=color:green>Yes</span></big> '''Old - ''' Bolt (in rules text): {{Gatherer search|text|bolt}}
 
 
* <big><span style=color:red>No</span></big> '''New - ''' Bolt (as only parameter): {{Gatherer search2|bolt}}
* <big><span style=color:red>No</span></big> '''Old - ''' Bolt (as only parameter): {{Gatherer search|bolt}}
 
 
* <big><span style=color:red>No</span></big> '''New - ''' CMC 5: {{Gatherer search2|cmc|5}}
* <big><span style=color:red>No</span></big> '''Old - ''' CMC 5: {{Gatherer search|cmc|5}}
 


==== Inline display text ====
==== Inline display text ====
* {{Aye}} '''New - ''' {{Gatherer search2|display=Display text as the first parameter|set|Alara|color|W|color|U}}
* <big><span style=color:green>Yes</span></big> '''New - ''' {{Gatherer search2|display=Display text as the first parameter|set|Alara|color|W|color|U}}
* {{Aye}} '''New - ''' {{Gatherer search2|set|Alara|color|W|color|U|display=Display text as the last parameter}}
* <big><span style=color:green>Yes</span></big> '''New - ''' {{Gatherer search2|set|Alara|color|W|color|U|display=Display text as the last parameter}}
* {{Aye}} '''New - ''' {{Gatherer search2|set|Alara|display=Display text between two different search criteria|color|W|color|U}}
* <big><span style=color:green>Yes</span></big> '''New - ''' {{Gatherer search2|set|Alara|display=Display text between two different search criteria|color|W|color|U}}
* {{Nay}} '''New - ''' {{Gatherer search2|set|Alara|color|W|display=Display text between two arguments for a single search criteria|color|U}}
* <big><span style=color:green>Yes</span></big> '''New - ''' {{Gatherer search2|set|Alara|color|W|display=Display text between two arguments for a single search criteria|color|U}}

Latest revision as of 21:58, 29 April 2019

Gatherer Search Template

Updated to fix broken and functionality. Added optional display parameter to change text displayed in link.


Test cases







Inline display text