Template:CR

From MTG Wiki
Revision as of 21:39, 11 November 2015 by >Corveroth (Prettier output for missing CR indices)
Jump to navigation Jump to search

Usage

Template:CR accepts either a code index or title to transclude. Either of the two following examples should produce the same output, unless a rules update after this edit shifts the numerical indexing within the Comprehensive Rules. Because of that possibility, using the title of a rules section is recommended where possible.

{{CR|lookup=Ending the Game}}
{{CR|lookup=104}}

Result: "No Comprehensive Rules entry currently exists for the specified index." Result: "No Comprehensive Rules entry currently exists for the specified index."


In addition, Template:CR allows two optional parameters for cases where additional granularity is required. By their nature, use of optional parameters requires the use of indices, not titles.

  • toc limits the transcluded text to one level of nesting within the rules, appropriate for making a table of contents or giving an overview.
Wikitext: {{CR|toc=true|lookup=8}}

Result: "No Comprehensive Rules entry currently exists for the specified index."

  • exact limits the transluded text to only the index specified, without any nested subsections.
Wikitext: {{CR|exact=true|lookup=105.2}}

Result: "No Comprehensive Rules entry currently exists for the specified index."