Jump to content

Template:Article stub box/testcases

From Wikipedia, the free encyclopedia
{{Article stub box
 | demo      = yes
 | image     = Østfold våpen.svg
 | pix       = 30
 | subject   = [[Østfold]] location
 | qualifier = 
 | category  = Østfold geography stubs
}}

{{Article stub box}}

Demo categories: Category:Østfold geography stubs | Category:Østfold geography stubs| *Article stub box/testcases | Category:Stub message templates

{{Article stub box/sandbox}}

Demo categories: Category:Østfold geography stubs | Category:Østfold geography stubs| *Article stub box/testcases | Category:Stub message templates

{{Article stub box
 | demo      = yes
 | icon      = [[Image:Østfold våpen.svg|30px|border]]
 | subject   = [[Østfold]] location
 | qualifier = 
 | category  = Østfold geography stubs
}}

{{Article stub box}}

Demo categories: Category:Østfold geography stubs | Category:Østfold geography stubs| *Article stub box/testcases | Category:Stub message templates | Category:Stub message templates using icon parameter

{{Article stub box/sandbox}}

Demo categories: Category:Østfold geography stubs | Category:Østfold geography stubs| *Article stub box/testcases | Category:Stub message templates | Category:Stub message templates using icon parameter

{{Article stub box
 | demo      = yes
 | icon      = 
 | subject   = [[Østfold]] location
 | qualifier = 
 | category  = Østfold geography stubs
}}

{{Article stub box}}

Demo categories: Category:Østfold geography stubs | Category:Østfold geography stubs| *Article stub box/testcases | Category:Stub message templates | Category:Stub message templates without images

{{Article stub box/sandbox}}

Demo categories: Category:Østfold geography stubs | Category:Østfold geography stubs| *Article stub box/testcases | Category:Stub message templates | Category:Stub message templates without images

{{Article stub box
 | demo      = yes
 | image     = 
 | pix       = 30
 | subject   = [[Østfold]] location
 | qualifier = 
 | category  = Østfold geography stubs
}}

{{Article stub box}}

Demo categories: Category:Østfold geography stubs | Category:Østfold geography stubs| *Article stub box/testcases | Category:Stub message templates | Category:Stub message templates without images

{{Article stub box/sandbox}}

Demo categories: Category:Østfold geography stubs | Category:Østfold geography stubs| *Article stub box/testcases | Category:Stub message templates | Category:Stub message templates without images

Hidden unicode char

[edit]

|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)

{{Article stub box
 | 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
}}

{{Article stub box}}

Demo categories: Category:Østfold geography stubs | Category:Demo stubs | Category:Template stubs | Category:Typography stubs | Category:Østfold geography stubs| *Article stub box/testcases | Category:Demo stubs| *Article stub box/testcases | Category:Template stubs| *Article stub box/testcases | Category:Typography stubs| *Article stub box/testcases | Category:Stub message templates needing attention|NArticle stub box/testcases | Category:Stub message templates

{{Article stub box/sandbox}}

Demo categories: Category:Østfold geography stubs | Category:Demo stubs | Category:Template stubs | Category:Typography stubs | Category:Østfold geography stubs| *Article stub box/testcases | Category:Demo stubs| *Article stub box/testcases | Category:Template stubs| *Article stub box/testcases | Category:Typography stubs| *Article stub box/testcases | Category:Stub message templates needing attention|NArticle stub box/testcases | Category:Stub message templates

Missing image

[edit]

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|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

[edit]
{{Article stub box
 | demo      = yes
 | icon      = 
 | subject   = 
 | qualifier = 
 | category  =
}}

{{Article stub box}}

Demo categories: Category:Stub message templates needing attention|CArticle stub box/testcases | Category:Stub message templates needing attention|DArticle stub box/testcases | Category:Stub message templates | Category:Stub message templates without images

{{Article stub box/sandbox}}

Demo categories: Category:Stub message templates needing attention|CArticle stub box/testcases | Category:Stub message templates needing attention|DArticle stub box/testcases | Category:Stub message templates | Category:Stub message templates without images

Automatic Documention

[edit]

if |demo = doc

{{Article stub box
 | 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
}}

{{Article stub box}}

Demo categories: Category:Østfold geography stubs| *Article stub box/testcases | Category:Stub message templates | Category:Stub message templates using icon parameter

{{Article stub box/sandbox}}

Demo categories: Category:Østfold geography stubs| *Article stub box/testcases | Category:Stub message templates | Category:Stub message templates using icon parameter

Ombox messages and error sorting

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

{{Article stub box}}

Demo categories: Category:Stub message templates needing attention|CArticle stub box/testcases | Category:Stub message templates needing attention|DArticle stub box/testcases | Category:Bad stub category name| *Article stub box/testcases | Category:Stub message templates needing attention|SArticle stub box/testcases | Category:Fake stub| *Article stub box/testcases | Category:Stub message templates needing attention|NArticle stub box/testcases | Category:Stub message templates | Category:Stub message templates without images | Category:Stub message templates needing attention|IArticle stub box/testcases

{{Article stub box/sandbox}}

Demo categories: Category:Stub message templates needing attention|CArticle stub box/testcases | Category:Stub message templates needing attention|DArticle stub box/testcases | Category:Bad stub category name| *Article stub box/testcases | Category:Stub message templates needing attention|SArticle stub box/testcases | Category:Fake stub| *Article stub box/testcases | Category:Stub message templates needing attention|NArticle stub box/testcases | Category:Stub message templates | Category:Stub message templates without images | Category:Stub message templates needing attention|IArticle stub box/testcases

Demo article space categories only

[edit]

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)

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

{{Article stub box}}

Demo categories: Category:Bad stub category name | Category:Fake stub

{{Article stub box/sandbox}}

Demo categories: Category:Bad stub category name | Category:Fake stub

Note parameter

[edit]
{{Article stub box
 | demo      = yes
 | subject   = test
 | qualifier = about the note parameter
 | category  = Fake stub
 | note      = This is the text in the note parameter.
}}

{{Article stub box}}

Demo categories: Category:Fake stub | Category:Fake stub| *Article stub box/testcases | Category:Stub message templates needing attention|SArticle stub box/testcases | Category:Stub message templates needing attention|NArticle stub box/testcases | Category:Stub message templates | Category:Stub message templates without images

{{Article stub box/sandbox}}

Demo categories: Category:Fake stub | Category:Fake stub| *Article stub box/testcases | Category:Stub message templates needing attention|SArticle stub box/testcases | Category:Stub message templates needing attention|NArticle stub box/testcases | Category:Stub message templates | Category:Stub message templates without images

Top-margin testing

[edit]

Preceded by paragraph

[edit]

Without line break

[edit]

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

With one line break

[edit]

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

With one empty line

[edit]

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

With two empty lines

[edit]

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


With three empty lines

[edit]

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.


With four empty lines

[edit]

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.



Preceded by navbox

[edit]

Without line break

[edit]

With one line break

[edit]

With one empty line

[edit]

With two empty lines

[edit]


With three empty lines

[edit]


With four empty lines

[edit]



Preceded by list

[edit]

Without line break

[edit]

With one line break

[edit]
  • Item one
  • Item two
  • Item three

With one empty line

[edit]
  • Item one
  • Item two
  • Item three

With two empty lines

[edit]
  • Item one
  • Item two
  • Item three


With three empty lines

[edit]
  • Item one
  • Item two
  • Item three


With four empty lines

[edit]
  • Item one
  • Item two
  • Item three



With multiple stub templates

[edit]

Without line break

[edit]

With one line break

[edit]

With one empty line

[edit]

With two empty lines

[edit]



With three empty lines

[edit]



With four empty lines

[edit]