Template:Technique/testcases
Jump to navigation
Jump to search
Testing label and link generation for terms of live Template:Technique:
3 tests failed.
Text | Expected | Actual | Diff. at | |
---|---|---|---|---|
![]() |
{{#invoke:String|replace|{{Technique | lang=en |soapstone}}|<div .*>.*</div>|||false}} | [[:en:Soapstone|soapstone]] | [[:en:Soapstone|soapstone]] | |
![]() |
{{#invoke:String|replace|{{Technique | lang=en |stained glass}}|<div .*>.*</div>|||false}} | [[:en:Stained glass|stained glass]] | [[:en:Stained glass|stained glass]] | |
![]() |
{{#invoke:String|replace|{{Technique | lang=en |zincograph}}|<div .*>.*</div>|||false}} | [[:en:Zincography|zincograph]] | [[:en:Zincography|zincograph]] | |
![]() |
{{#invoke:String|replace|{{Technique | lang=hu |antique laid paper}}|<div .*>.*</div>|||false}} | [[d:Q66433004|antik bordázott papír]] | [[d:Q66433004|antik bordázott papír]] | |
![]() |
{{#invoke:String|replace|{{Technique | lang=en |actinolite}}|<div .*>.*</div>|||false}} | [[:en:Actinolite|actinolite]] | [[:en:Actinolite|actinolite]] | |
![]() |
{{#invoke:String|replace|{{Technique | lang=ar |cloth}}|<div .*>.*</div>|||false}} | <span dir="rtl">[[d:Q5849500|قماش]]</span> | <span dir="rtl">[[:Category:Cloths|قماش]]</span> | 19: 'd' ≠ ':' |
![]() |
{{#invoke:String|replace|{{Technique | lang=el |cloth}}|<div .*>.*</div>|||false}} | [[d:Q5849500|<span lang="en">''cloth''</span>]] | [[:Category:Cloths|<span lang="en">''cloth''</span>]] | 3: 'd' ≠ ':' |
![]() |
{{#invoke:String|replace|{{Technique | lang=en |antique laid paper}}|<div .*>.*</div>|||false}} | [[:en:Laid paper|antique laid paper]] | [[d:Q66433004|antique laid paper]] | 3: ':' ≠ 'd' |
![]() |
{{#invoke:String|replace|{{Technique | lang=en |some unsupported term}}|<div .*>.*</div>|||false}} | <span class="plainlinks">[//commons.wikimedia.org/w/index.php?title=Template:Technique/en&action=edit <span style="color:red">some unsupported term</span>]</span>[[Category:Unsupported technique|some unsupported term]] | <span class="plainlinks">[//commons.wikimedia.org/w/index.php?title=Template:Technique/en&action=edit <span style="color:red">some unsupported term</span>]</span>[[Category:Unsupported technique|some unsupported term]] | |
![]() |
{{#invoke:String|replace|{{Technique | lang=el |some unsupported term}}|<div .*>.*</div>|||false}} | <span class="plainlinks">[//commons.wikimedia.org/w/index.php?title=Template:Technique/el&action=edit <span style="color:red">some unsupported term</span>]</span> | <span class="plainlinks">[//commons.wikimedia.org/w/index.php?title=Template:Technique/el&action=edit <span style="color:red">some unsupported term</span>]</span> | |
![]() |
{{#invoke:String|replace|{{Technique | lang=el |aluminum}}|<div .*>.*</div>|||false}} | [[:el:Αργίλιο|αλουμίνιο]] | [[:el:Αργίλιο|αλουμίνιο]] |
The following tests are deprecated. For up to date tests see Module talk:Technique/testcases! They have been moved there since they were rewritten in Lua which increases functionality and maintainability.
Notes | Example code | {{Technique}} | {{Technique/sandbox}} |
---|---|---|---|
oil on canvas (special case working) | {{Technique |oil|canvas}} | oil on canvas | oil on canvas |
oil on canvas (special case not working) | {{Technique |oil |canvas |compat=yes}} | oil on canvas | oil on canvas |
empty {{{1}}} | {{Technique|oil}} | oil | oil |
empty {{{2}}} | {{Technique||canvas}} | on canvas | on canvas |
wrong {{{1}}} | {{Technique|xx}} | xx | xx |
wrong {{{2}}} | {{Technique||xx}} | on xx | on xx |
use {{{and}}} | {{Technique |oil |and=tempera |canvas |compat=yes}} | oil and tempera on canvas | oil and tempera on canvas |
use {{{over}}} | {{Technique|watercolor|over=graphite|paper}} | watercolor over graphite on paper | watercolor over graphite on paper |
use {{{color}}} and {{{coloron}}} | {{Technique|ink|paper|color=black|coloron=cream}} | black ink on cream-colored paper | black ink on cream-colored paper |
use {{{mounted}}} | {{Technique |oil |canvas |mounted=mahogany |compat=yes}} | oil on canvas mounted on mahogany wood | oil on canvas mounted on mahogany wood |
use {{{mounted}}} | {{Technique |color=dark |1=oil |coloron=white |2=canvas |colormounted=brown |mounted=mahogany |compat=yes}} | dark oil on white canvas mounted on brown mahogany wood | dark oil on white canvas mounted on brown mahogany wood |
use of many parameters | {{Technique|indian ink|vellum|and=gold|over=pencil drawing|color=light|coloron=white}} | light India ink and gold over pencil drawing on white vellum | light India ink and gold over pencil drawing on white vellum |
use of many parameters | {{technique |color=polished|1=pebble |colorand=reddish|and=glass paste |colorand2=cream|and2=moulded glass |colorand3=color|and3=dry plate collodion |colorand4=polychrome|and4=antique laid paper |colorand5=hand colored|and5=rose granite |over=silver albumen photograph |coloron=black|2=gofun |coloron2=purple|on2=hippopotamus ivory |colormounted=glazed|mounted=frescocanvas}} | polished pebble, reddish glass paste, cream-colored molded glass, color dry plate collodion, polychrome antique laid paper and hand-colored rose granite over albumen print on black gofun and on purple hippopotamus ivory mounted on glazed fresco transferred to canvas | polished pebble, reddish glass paste, cream-colored molded glass, color dry plate collodion, polychrome antique laid paper and hand-colored rose granite over albumen print on black gofun and on purple hippopotamus ivory mounted on glazed fresco transferred to canvas |
unsupported term | {{Technique |abcde}} | abcde | abcde |
term not supported by set language | {{Technique |porcelain |lang=hu}} | porcelán | porcelán |
term not supported by set language | {{Technique |alloy |lang=pl}} | stop | stop |