Difference between revisions of "Template:GAR/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Retro
(Improve usefulness of testcases. They reveal a bug (in my proposed code).)
imported>Retro
 
(2 intermediate revisions by the same user not shown)
Line 5: Line 5:
  
 
{{GAR}}
 
{{GAR}}
 +
 +
{{tlc|GAR/sandbox}}:
 +
 
{{GAR/sandbox}}
 
{{GAR/sandbox}}
  
 +
==Rendering preview==
 
{{tlc|GAR|preview{{=}}yes}}:
 
{{tlc|GAR|preview{{=}}yes}}:
  
==Rendering preview==
 
 
{{GAR|preview=yes}}
 
{{GAR|preview=yes}}
 +
 +
{{tlc|GAR/sandbox|preview{{=}}yes}}:
 +
 
{{GAR/sandbox|preview=yes}}
 
{{GAR/sandbox|preview=yes}}
 +
 +
==Namespace test==
 +
{{hatnote|This particular is purely intended for temporary testing purposes; it should not be implemented into the actual template}}
 +
{{tlc|GAR/sandbox|namespace{{=}}Talk}}:
 +
 +
{{GAR/sandbox|namespace=Talk}}
 +
 +
*Comment: This test shows the template works even when not substituted; ideally, it would display some type of error.

Latest revision as of 03:53, 20 June 2019

Normal use

{{GAR}}:

The {{GAR}} template should be substituted at the top of the article talk page.

{{GAR/sandbox}}:

The {{GAR}} template should be substituted at the top of the article talk page.

Rendering preview

{{GAR|preview=yes}}:

The {{GAR}} template should be substituted at the top of the article talk page.

{{GAR/sandbox|preview=yes}}:

Namespace test

{{GAR/sandbox|namespace=Talk}}:

  • Comment: This test shows the template works even when not substituted; ideally, it would display some type of error.