Template:CR

From MTG Wiki
Jump to: navigation, search
Template documentation[view] [edit] [history] [purge]

Template:CR allows wiki pages to transclude text from the Comprehensive Rules without labor-intensive copy/pasting and formatting. The text returned is neatly formatted and encapsulated, and includes the date of the most recent rules change as an indicator of accuracy.

This template supports searches for defined rules terminology and glossary vocabulary. If absolutely necessary, it can also search for a rules entry by its index (the combination of numbers and letters preceding a specific line in the Comprehensive Rules), but this is not recommended, as new rules changes may alter the text at a given index.

Again, using the title of a rules section is recommended where possible.

Template:CR can also be used to format a wiki-linked table of contents for higher-level article pages.

Usage

Template:CR accepts up to four values, though some combinations do not make sense.

  • lookup
    • The term or index to search for in the Comprehensive Rules. For example, trample, Limited, or 112.
  • exact
    • If included, the returned text will include only the first line of text matching the lookup.
  • toc
    • If included, attempts to generate a table of contents starting at the lookup. Only works with numeric, index-based lookups, not titles.
  • glossary
    • If included, confines the search to the glossary at the end of the CR. Generally not necessary, but may improve performance.

Any parameter other than "exact", "glossary", or "toc" is assumed to be the lookup. Parameters can be explicitly labelled, however. All of the following return the same result.

{{CR|exact|100}}
{{CR|exact|lookup=100}}
{{CR|exact=true|lookup=100}}

Examples

Title vs. index

Code:

{{CR|Ending the Game}}
Result:

From the Comprehensive Rules (October 4, 2019—Throne of Eldraine)

  • 104. Ending the Game
    • 104.1. A game ends immediately when a player wins, when the game is a draw, or when the game is restarted.
    • 104.2. There are several ways to win the game.
      • 104.2a A player still in the game wins the game if that player’s opponents have all left the game. This happens immediately and overrides all effects that would preclude that player from winning the game.
      • 104.2b An effect may state that a player wins the game.
      • 104.2c In a multiplayer game between teams, a team with at least one player still in the game wins the game if all other teams have left the game. Each player on the winning team wins the game, even if one or more of those players had previously lost that game.
      • 104.2d In an Emperor game, a team wins the game if its emperor wins the game. (See rule 809.5.)
    • 104.3. There are several ways to lose the game.
      • 104.3a A player can concede the game at any time. A player who concedes leaves the game immediately. That player loses the game.
      • 104.3b If a player’s life total is 0 or less, that player loses the game the next time a player would receive priority. (This is a state-based action. See rule 704.)
      • 104.3c If a player is required to draw more cards than are left in their library, they draw the remaining cards and then lose the game the next time a player would receive priority. (This is a state-based action. See rule 704.)
      • 104.3d If a player has ten or more poison counters, that player loses the game the next time a player would receive priority. (This is a state-based action. See rule 704.)
      • 104.3e An effect may state that a player loses the game.
      • 104.3f If a player would both win and lose the game simultaneously, that player loses the game.
      • 104.3g In a multiplayer game between teams, a team loses the game if all players on that team have lost the game.
      • 104.3h In a multiplayer game using the limited range of influence option (see rule 801), an effect that states that a player wins the game instead causes all of that player’s opponents within the player’s range of influence to lose the game. This may not cause the game to end.
      • 104.3i In an Emperor game, a team loses the game if its emperor loses the game. (See rule 809.5.)
      • 104.3j In a Commander game, a player that’s been dealt 21 or more combat damage by the same commander over the course of the game loses the game. (This is a state-based action. See rule 704. See also rule 903.10.)
      • 104.3k In a tournament, a player may lose the game as a result of a penalty given by a judge. See rule 100.6.
    • 104.4. There are several ways for the game to be a draw.
      • 104.4a If all the players remaining in a game lose simultaneously, the game is a draw.
      • 104.4b If a game that’s not using the limited range of influence option (including a two-player game) somehow enters a “loop” of mandatory actions, repeating a sequence of events with no way to stop, the game is a draw. Loops that contain an optional action don’t result in a draw.
      • 104.4c An effect may state that the game is a draw.
      • 104.4d In a multiplayer game between teams, the game is a draw if all remaining teams lose simultaneously.
      • 104.4e In a multiplayer game using the limited range of influence option, the effect of a spell or ability that states that the game is a draw causes the game to be a draw for that spell or ability’s controller and all players within their range of influence. Only those players leave the game; the game continues for all other players.
      • 104.4f In a multiplayer game using the limited range of influence option, if the game somehow enters a “loop” of mandatory actions, repeating a sequence of events with no way to stop, the game is a draw for each player who controls an object that’s involved in that loop, as well as for each player within the range of influence of any of those players. Only those players leave the game; the game continues for all other players.
      • 104.4g In a multiplayer game between teams, the game is a draw for a team if the game is a draw for all remaining players on that team.
      • 104.4h In the Emperor variant, the game is a draw for a team if the game is a draw for its emperor. (See rule 809.5.)
      • 104.4i In a tournament, all players in the game may agree to an intentional draw. See rule 100.6.
    • 104.5. If a player loses the game, that player leaves the game. If the game is a draw for a player, that player leaves the game. The multiplayer rules handle what happens when a player leaves the game; see rule 800.4.
    • 104.6. One card (Karn Liberated) restarts the game. All players still in the game when it restarts then immediately begin a new game. See rule 719, “Restarting the Game.”

Code:

{{CR|lookup=104}}
Result:

From the Comprehensive Rules (October 4, 2019—Throne of Eldraine)

  • 104. Ending the Game
    • 104.1. A game ends immediately when a player wins, when the game is a draw, or when the game is restarted.
    • 104.2. There are several ways to win the game.
      • 104.2a A player still in the game wins the game if that player’s opponents have all left the game. This happens immediately and overrides all effects that would preclude that player from winning the game.
      • 104.2b An effect may state that a player wins the game.
      • 104.2c In a multiplayer game between teams, a team with at least one player still in the game wins the game if all other teams have left the game. Each player on the winning team wins the game, even if one or more of those players had previously lost that game.
      • 104.2d In an Emperor game, a team wins the game if its emperor wins the game. (See rule 809.5.)
    • 104.3. There are several ways to lose the game.
      • 104.3a A player can concede the game at any time. A player who concedes leaves the game immediately. That player loses the game.
      • 104.3b If a player’s life total is 0 or less, that player loses the game the next time a player would receive priority. (This is a state-based action. See rule 704.)
      • 104.3c If a player is required to draw more cards than are left in their library, they draw the remaining cards and then lose the game the next time a player would receive priority. (This is a state-based action. See rule 704.)
      • 104.3d If a player has ten or more poison counters, that player loses the game the next time a player would receive priority. (This is a state-based action. See rule 704.)
      • 104.3e An effect may state that a player loses the game.
      • 104.3f If a player would both win and lose the game simultaneously, that player loses the game.
      • 104.3g In a multiplayer game between teams, a team loses the game if all players on that team have lost the game.
      • 104.3h In a multiplayer game using the limited range of influence option (see rule 801), an effect that states that a player wins the game instead causes all of that player’s opponents within the player’s range of influence to lose the game. This may not cause the game to end.
      • 104.3i In an Emperor game, a team loses the game if its emperor loses the game. (See rule 809.5.)
      • 104.3j In a Commander game, a player that’s been dealt 21 or more combat damage by the same commander over the course of the game loses the game. (This is a state-based action. See rule 704. See also rule 903.10.)
      • 104.3k In a tournament, a player may lose the game as a result of a penalty given by a judge. See rule 100.6.
    • 104.4. There are several ways for the game to be a draw.
      • 104.4a If all the players remaining in a game lose simultaneously, the game is a draw.
      • 104.4b If a game that’s not using the limited range of influence option (including a two-player game) somehow enters a “loop” of mandatory actions, repeating a sequence of events with no way to stop, the game is a draw. Loops that contain an optional action don’t result in a draw.
      • 104.4c An effect may state that the game is a draw.
      • 104.4d In a multiplayer game between teams, the game is a draw if all remaining teams lose simultaneously.
      • 104.4e In a multiplayer game using the limited range of influence option, the effect of a spell or ability that states that the game is a draw causes the game to be a draw for that spell or ability’s controller and all players within their range of influence. Only those players leave the game; the game continues for all other players.
      • 104.4f In a multiplayer game using the limited range of influence option, if the game somehow enters a “loop” of mandatory actions, repeating a sequence of events with no way to stop, the game is a draw for each player who controls an object that’s involved in that loop, as well as for each player within the range of influence of any of those players. Only those players leave the game; the game continues for all other players.
      • 104.4g In a multiplayer game between teams, the game is a draw for a team if the game is a draw for all remaining players on that team.
      • 104.4h In the Emperor variant, the game is a draw for a team if the game is a draw for its emperor. (See rule 809.5.)
      • 104.4i In a tournament, all players in the game may agree to an intentional draw. See rule 100.6.
    • 104.5. If a player loses the game, that player leaves the game. If the game is a draw for a player, that player leaves the game. The multiplayer rules handle what happens when a player leaves the game; see rule 800.4.
    • 104.6. One card (Karn Liberated) restarts the game. All players still in the game when it restarts then immediately begin a new game. See rule 719, “Restarting the Game.”


Table of contents

toc limits the transcluded text to one level of nesting within the rules, appropriate for making a table of contents or giving an overview.

Code:

{{CR|toc=true|lookup=8}}
Result:

Exact

exact limits the transluded text to only the index specified, without any nested subsections.

Code:

{{CR|exact=true|lookup=105.2}}
Result:

From the Comprehensive Rules (October 4, 2019—Throne of Eldraine)

  • 105.2. An object can be one or more of the five colors, or it can be no color at all. An object is the color or colors of the mana symbols in its mana cost, regardless of the color of its frame. An object’s color or colors may also be defined by a color indicator or a characteristic-defining ability. See rule 202.2.

Glossary

glossary limits the search to only the glossary of the Comprehensive Rules. If omitted, a search for a non-numeric lookup will attempt to search the glossary if that term is not found in the body of the Rules.

Rules terms

Code:

{{CR|glossary|Double Strike}}
Result:

From the glossary of the Comprehensive Rules (October 4, 2019—Throne of Eldraine)

Double Strike
A keyword ability that lets a creature deal its combat damage twice. See rule 702.4, “Double Strike.”

Code:

{{CR|Double Strike}}
Result:

From the Comprehensive Rules (October 4, 2019—Throne of Eldraine)

  • 702.4. Double Strike
    • 702.4a Double strike is a static ability that modifies the rules for the combat damage step. (See rule 510, “Combat Damage Step.”)
    • 702.4b If at least one attacking or blocking creature has first strike (see rule 702.7) or double strike as the combat damage step begins, the only creatures that assign combat damage in that step are those with first strike or double strike. After that step, instead of proceeding to the end of combat step, the phase gets a second combat damage step. The only creatures that assign combat damage in that step are the remaining attackers and blockers that had neither first strike nor double strike as the first combat damage step began, as well as the remaining attackers and blockers that currently have double strike. After that step, the phase proceeds to the end of combat step.
    • 702.4c Removing double strike from a creature during the first combat damage step will stop it from assigning combat damage in the second combat damage step.
    • 702.4d Giving double strike to a creature with first strike after it has already dealt combat damage in the first combat damage step will allow the creature to assign combat damage in the second combat damage step.
    • 702.4e Multiple instances of double strike on the same creature are redundant.

Non-rules terms

Code:

{{CR|glossary|Dies}}
Result:

From the glossary of the Comprehensive Rules (October 4, 2019—Throne of Eldraine)

Dies
A creature or planeswalker “dies” if it is put into a graveyard from the battlefield. See rule 700.4.

Obsolete terms

Code:

{{CR|glossary|Bury}}
Result:

From the glossary of the Comprehensive Rules (October 4, 2019—Throne of Eldraine)

Bury (Obsolete)
A term that meant “put [a permanent] into its owner’s graveyard.” In general, cards that were printed with the term “bury” have received errata in the Oracle card reference to read, “Destroy [a permanent]. It can’t be regenerated,” or “Sacrifice [a permanent].”

See also