Template:Asbox/testcases: Difference between revisions

From Jonesipedia
Jump to navigation Jump to search
m gr
 
m 1 revision imported
 
(No difference)

Latest revision as of 10:58, 29 May 2021

<templatestyles src="Module:Message box/ombox.css"></templatestyles>

{{Asbox}}
{{Asbox
 | demo      = yes
 | image     = Østfold våpen.svg
 | pix       = 30
 | subject   = [[Østfold]] location
 | qualifier = 
 | category  = Østfold geography stubs
}}

{{Asbox}}

<templatestyles src="Asbox/styles.css"></templatestyles>Demo categories: Category:Østfold geography stubs | Category:Østfold geography stubs| *Asbox/testcases | Category:Stub message templates needing attention|NAsbox/testcases | Category:Stub message templates | Category:Exclude in print

{{Asbox/sandbox}}

<templatestyles src="Asbox/sandbox/styles.css"></templatestyles>Demo categories: Category:Østfold geography stubs | Category:Østfold geography stubs| *Asbox/testcases | Category:Stub message templates needing attention|NAsbox/testcases | Category:Stub message templates | Category:Exclude in print
{{Asbox}}
{{Asbox
 | demo      = yes
 | icon      = [[Image:Østfold våpen.svg|30px|border]]
 | subject   = [[Østfold]] location
 | qualifier = 
 | category  = Østfold geography stubs
}}

{{Asbox}}

<templatestyles src="Asbox/styles.css"></templatestyles>Demo categories: Category:Østfold geography stubs | Category:Østfold geography stubs| *Asbox/testcases | Category:Stub message templates needing attention|NAsbox/testcases | Category:Stub message templates | Category:Exclude in print | Category:Stub message templates using icon parameter

{{Asbox/sandbox}}

<templatestyles src="Asbox/sandbox/styles.css"></templatestyles>Demo categories: Category:Østfold geography stubs | Category:Østfold geography stubs| *Asbox/testcases | Category:Stub message templates needing attention|NAsbox/testcases | Category:Stub message templates | Category:Exclude in print | Category:Stub message templates using icon parameter
{{Asbox}}
{{Asbox
 | demo      = yes
 | icon      = 
 | subject   = [[Østfold]] location
 | qualifier = 
 | category  = Østfold geography stubs
}}

{{Asbox}}

<templatestyles src="Asbox/styles.css"></templatestyles>Demo categories: Category:Østfold geography stubs | Category:Østfold geography stubs| *Asbox/testcases | Category:Stub message templates needing attention|NAsbox/testcases | Category:Stub message templates | Category:Exclude in print | Category:Stub message templates without images

{{Asbox/sandbox}}

<templatestyles src="Asbox/sandbox/styles.css"></templatestyles>Demo categories: Category:Østfold geography stubs | Category:Østfold geography stubs| *Asbox/testcases | Category:Stub message templates needing attention|NAsbox/testcases | Category:Stub message templates | Category:Exclude in print | Category:Stub message templates without images
{{Asbox}}
{{Asbox
 | demo      = yes
 | image     = 
 | pix       = 30
 | subject   = [[Østfold]] location
 | qualifier = 
 | category  = Østfold geography stubs
}}

{{Asbox}}

<templatestyles src="Asbox/styles.css"></templatestyles>Demo categories: Category:Østfold geography stubs | Category:Østfold geography stubs| *Asbox/testcases | Category:Stub message templates needing attention|NAsbox/testcases | Category:Stub message templates | Category:Exclude in print | Category:Stub message templates without images

{{Asbox/sandbox}}

Lua error: invalid frame ID.

Hidden unicode char

|category= contains hidden unicode chars, DEL and LRM (if you use Chrome, notice how the spellchecker underlines part of the word as misspelled instead of the whole word when in the editor). However, note that this is still a valid category (link for Category:Østfold geography stubs is blue, not red), so it should not be sorted under 'S' in Category:Stub message templates needing attention (though it should still be sorted under 'N' for having other non-existing cats) and that the invalid char will still be outputted to the article (and would break the pseudo-categories, but should not affect actual categories)

{{Asbox}}
{{Asbox
 | demo      = yes
 | image     = Østfold våpen.svg
 | pix       = 30
 | subject   = [[Østfold]] location
 | qualifier = 
 | category99= Typography stubs
 | category  = Østfold geography stubs
 | category1 = Demo stubs
 | category2 = Template stubs
 | note = notes go here
}}

{{Asbox}}

<templatestyles src="Asbox/styles.css"></templatestyles>Demo categories: Category:Østfold geography stubs | Category:Demo stubs | Category:Template stubs | Category:Typography stubs | Category:Østfold geography stubs| *Asbox/testcases | Category:Demo stubs| *Asbox/testcases | Category:Template stubs| *Asbox/testcases | Category:Typography stubs| *Asbox/testcases | Category:Stub message templates needing attention|NAsbox/testcases | Category:Stub message templates | Category:Exclude in print

{{Asbox/sandbox}}

<templatestyles src="Asbox/sandbox/styles.css"></templatestyles>Demo categories: Category:Østfold geography stubs | Category:Demo stubs | Category:Template stubs | Category:Typography stubs | Category:Østfold geography stubs| *Asbox/testcases | Category:Demo stubs| *Asbox/testcases | Category:Template stubs| *Asbox/testcases | Category:Typography stubs| *Asbox/testcases | Category:Stub message templates needing attention|NAsbox/testcases | Category:Stub message templates | Category:Exclude in print

Missing image

If making a major revision to the template, you may remove pre tags from below to see compare how the current and sandbox versions handle missing images. Remember to pre tag again in order to avoid cluttering Category:Templates with missing files.

{{test case nowiki|collapsible=yes|title=Missing image file|code={{__TEMPLATENAME__
 | demo      = yes
 | icon      = [[Image:Ostfold vapen missing.png|30px|border]]
 | subject   = [[Østfold]] location
 | qualifier = 
 | category  = Østfold geography stubs
}}}}

Missing params

Missing image file
{{Asbox
 | demo      = yes
 | icon      = 
 | subject   = 
 | qualifier = 
 | category  =
}}

{{Asbox}}

<templatestyles src="Asbox/styles.css"></templatestyles>Demo categories: Category:Stub message templates needing attention|CAsbox/testcases | Category:Stub message templates needing attention|DAsbox/testcases | Category:Stub message templates | Category:Exclude in print | Category:Stub message templates without images

{{Asbox/sandbox}}

<templatestyles src="Asbox/sandbox/styles.css"></templatestyles>Demo categories: Category:Stub message templates needing attention|CAsbox/testcases | Category:Stub message templates needing attention|DAsbox/testcases | Category:Stub message templates | Category:Exclude in print | Category:Stub message templates without images

Automatic Documention

if |demo = doc

{{Asbox}}
{{Asbox
 | demo      = doc
 | icon      = [[Image:Østfold våpen.svg|30px|border]]
 | subject   = [[Østfold]] location
 | qualifier = in the street of Demo
 | category  = Østfold geography stubs
 | note      = Notes go here
}}

{{Asbox}}

<templatestyles src="Asbox/styles.css"></templatestyles>Demo categories: Category:Østfold geography stubs| *Asbox/testcases | Category:Stub message templates needing attention|NAsbox/testcases | Category:Stub message templates | Category:Exclude in print | Category:Stub message templates using icon parameter<templatestyles src="Module:Message box/ombox.css"></templatestyles><templatestyles src="Module:Documentation/styles.css"></templatestyles>

{{Asbox/sandbox}}

<templatestyles src="Asbox/sandbox/styles.css"></templatestyles>Demo categories: Category:Østfold geography stubs| *Asbox/testcases | Category:Stub message templates needing attention|NAsbox/testcases | Category:Stub message templates | Category:Exclude in print | Category:Stub message templates using icon parameter<templatestyles src="Module:Message box/ombox.css"></templatestyles><templatestyles src="Module:Documentation/styles.css"></templatestyles>

Ombox messages and error sorting

{{Asbox}}
{{Asbox
 | demo      = doc
 | category1  = Bad stub category name
 | category4  = Fake stub
 | imagealt = dummy
 | name = note: this param only checked if not demo and not article
}}

{{Asbox}}

<templatestyles src="Asbox/styles.css"></templatestyles>Demo categories: Category:Stub message templates needing attention|CAsbox/testcases | Category:Stub message templates needing attention|DAsbox/testcases | Category:Stub message templates | Category:Exclude in print | Category:Stub message templates without images<templatestyles src="Module:Message box/ombox.css"></templatestyles><templatestyles src="Module:Message box/ombox.css"></templatestyles><templatestyles src="Module:Documentation/styles.css"></templatestyles>

{{Asbox/sandbox}}

Lua error in Module:Asbox/sandbox at line 79: assign to undeclared variable 'allowedHiddenChars'.

Demo article space categories only

Same as above, but this time emulating article space (note lack of error/hidden categories and ombox; also demo cats link will not show in actual article space)

{{Asbox}}
{{Asbox
 | demo      = art
 | category1  = Bad stub category name
 | category4  = Fake stub
 | imagealt = dummy
 | name = note: this param only checked if not demo and not article
}}

{{Asbox}}

<templatestyles src="Asbox/styles.css"></templatestyles>Demo categories: Category:Bad stub category name | Category:Fake stub

{{Asbox/sandbox}}

<templatestyles src="Asbox/sandbox/styles.css"></templatestyles>Demo categories: Category:Bad stub category name | Category:Fake stub

Note parameter

{{Asbox}}
{{Asbox
 | demo      = yes
 | subject   = test
 | qualifier = about the note parameter
 | category  = Fake stub
 | note      = This is the text in the note parameter.
}}

{{Asbox}}

<templatestyles src="Asbox/styles.css"></templatestyles>Demo categories: Category:Fake stub | Category:Fake stub| *Asbox/testcases | Category:Stub message templates needing attention|SAsbox/testcases | Category:Stub message templates needing attention|NAsbox/testcases | Category:Stub message templates | Category:Exclude in print | Category:Stub message templates without images

{{Asbox/sandbox}}

<templatestyles src="Asbox/sandbox/styles.css"></templatestyles>Demo categories: Category:Fake stub | Category:Fake stub| *Asbox/testcases | Category:Stub message templates needing attention|SAsbox/testcases | Category:Stub message templates needing attention|NAsbox/testcases | Category:Stub message templates | Category:Exclude in print | Category:Stub message templates without images