This is the
template test cases page for the
sandbox of
Template:Asbox. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment " NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
{{Asbox | demo = yes | image = Østfold våpen.svg | pix = 30 | subject = [[Østfold]] location | qualifier = | category = Østfold geography stubs }}
{{ Asbox}}
Demo categories: Category:Østfold geography stubs | Category:Østfold geography stubs| *Asbox/testcases | Category:Stub message templates
{{ Asbox/sandbox}}
Demo categories: Category:Østfold geography stubs | Category:Østfold geography stubs| *Asbox/testcases | Category:Stub message templates
{{Asbox | demo = yes | icon = [[Image:Østfold våpen.svg|30px|border]] | subject = [[Østfold]] location | qualifier = | category = Østfold geography stubs }}
{{ Asbox}}
Demo categories: Category:Østfold geography stubs | Category:Østfold geography stubs| *Asbox/testcases | Category:Stub message templates | Category:Stub message templates using icon parameter
{{ Asbox/sandbox}}
Demo categories: Category:Østfold geography stubs | Category:Østfold geography stubs| *Asbox/testcases | Category:Stub message templates | Category:Stub message templates using icon parameter
{{Asbox | demo = yes | icon = | subject = [[Østfold]] location | qualifier = | category = Østfold geography stubs }}
{{ Asbox}}
Demo categories: Category:Østfold geography stubs | Category:Østfold geography stubs| *Asbox/testcases | Category:Stub message templates | Category:Stub message templates without images
{{ Asbox/sandbox}}
Demo categories: Category:Østfold geography stubs | Category:Østfold geography stubs| *Asbox/testcases | Category:Stub message templates | Category:Stub message templates without images
{{Asbox | demo = yes | image = | pix = 30 | subject = [[Østfold]] location | qualifier = | category = Østfold geography stubs }}
{{ Asbox}}
Demo categories: Category:Østfold geography stubs | Category:Østfold geography stubs| *Asbox/testcases | Category:Stub message templates | Category:Stub message templates without images
{{ Asbox/sandbox}}
Demo categories: Category:Østfold geography stubs | Category:Østfold geography stubs| *Asbox/testcases | Category:Stub message templates | Category:Stub message templates without images
|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 | 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}}
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
{{ Asbox/sandbox}}
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
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 }}}}
{{Asbox | demo = yes | icon = | subject = | qualifier = | category = }}
{{ Asbox}}
Demo categories: Category:Stub message templates needing attention|CAsbox/testcases | Category:Stub message templates needing attention|DAsbox/testcases | Category:Stub message templates | Category:Stub message templates without images
{{ Asbox/sandbox}}
Demo categories: Category:Stub message templates needing attention|CAsbox/testcases | Category:Stub message templates needing attention|DAsbox/testcases | Category:Stub message templates | Category:Stub message templates without images
if |demo = doc
{{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}}
Demo categories: Category:Østfold geography stubs| *Asbox/testcases | Category:Stub message templates | Category:Stub message templates using icon parameter
This template is used to identify a Østfold location stub in the street of Demo. It uses {{ asbox}}, which is a meta-template designed to ease the process of creating and maintaining stub templates.
Typing {{Asbox/testcases}}
produces the message shown at the beginning, and adds the article to the following category:
This is a stub template. A brief explanation of these templates follows; for full details please consult Wikipedia:Stub.
A stub is an article containing only a few sentences of text which is too short to provide encyclopedic coverage of a subject.
{{stub}}
.Further information can be found at:
New stub templates and categories (collectively "stub types") should not be created without prior proposal at Wikipedia:WikiProject Stub sorting/Proposals. This allows for the proper coordination of all stub types across Wikipedia, and for the checking of any new stub type for possible problems prior to its creation.
{{ Asbox/sandbox}}
Demo categories: Category:Østfold geography stubs| *Asbox/testcases | Category:Stub message templates | Category:Stub message templates using icon parameter
This template is used to identify a Østfold location stub in the street of Demo. It uses {{ asbox}}, which is a meta-template designed to ease the process of creating and maintaining stub templates.
Typing {{Asbox/testcases}}
produces the message shown at the beginning, and adds the article to the following category:
This is a stub template. A brief explanation of these templates follows; for full details please consult Wikipedia:Stub.
A stub is an article containing only a few sentences of text which is too short to provide encyclopedic coverage of a subject.
{{stub}}
.Further information can be found at:
New stub templates and categories (collectively "stub types") should not be created without prior proposal at Wikipedia:WikiProject Stub sorting/Proposals. This allows for the proper coordination of all stub types across Wikipedia, and for the checking of any new stub type for possible problems prior to its creation.
{{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}}
Demo categories: Category:Stub message templates needing attention|CAsbox/testcases | Category:Stub message templates needing attention|DAsbox/testcases | Category:Bad stub category name| *Asbox/testcases | Category:Stub message templates needing attention|SAsbox/testcases | Category:Fake stub| *Asbox/testcases | Category:Stub message templates needing attention|NAsbox/testcases | Category:Stub message templates | Category:Stub message templates without images | Category:Stub message templates needing attention|IAsbox/testcases
The |category parameter is not set. Please add an appropriate stub category. |
This stub template contains no description! At least one of the parameters |subject , |article or |qualifier must be defined. |
The following parameters define stub categories that do not exist: |category1 and |category4 |
This template is used to identify a stub. It uses {{ asbox}}, which is a meta-template designed to ease the process of creating and maintaining stub templates.
Typing {{Asbox/testcases}}
produces the message shown at the beginning, and adds the article to the following categories:
This is a stub template. A brief explanation of these templates follows; for full details please consult Wikipedia:Stub.
A stub is an article containing only a few sentences of text which is too short to provide encyclopedic coverage of a subject.
{{stub}}
.Further information can be found at:
New stub templates and categories (collectively "stub types") should not be created without prior proposal at Wikipedia:WikiProject Stub sorting/Proposals. This allows for the proper coordination of all stub types across Wikipedia, and for the checking of any new stub type for possible problems prior to its creation.
{{ Asbox/sandbox}}
Demo categories: Category:Stub message templates needing attention|CAsbox/testcases | Category:Stub message templates needing attention|DAsbox/testcases | Category:Bad stub category name| *Asbox/testcases | Category:Stub message templates needing attention|SAsbox/testcases | Category:Fake stub| *Asbox/testcases | Category:Stub message templates needing attention|NAsbox/testcases | Category:Stub message templates | Category:Stub message templates without images | Category:Stub message templates needing attention|IAsbox/testcases
The |category parameter is not set. Please add an appropriate stub category. |
This stub template contains no description! At least one of the parameters |subject , |article or |qualifier must be defined. |
The following parameters define stub categories that do not exist: |category1 and |category4 |
This template is used to identify a stub. It uses {{ asbox}}, which is a meta-template designed to ease the process of creating and maintaining stub templates.
Typing {{Asbox/testcases}}
produces the message shown at the beginning, and adds the article to the following categories:
This is a stub template. A brief explanation of these templates follows; for full details please consult Wikipedia:Stub.
A stub is an article containing only a few sentences of text which is too short to provide encyclopedic coverage of a subject.
{{stub}}
.Further information can be found at:
New stub templates and categories (collectively "stub types") should not be created without prior proposal at Wikipedia:WikiProject Stub sorting/Proposals. This allows for the proper coordination of all stub types across Wikipedia, and for the checking of any new stub type for possible problems prior to its creation.
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 | 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}}
Demo categories: Category:Bad stub category name | Category:Fake stub
{{ Asbox/sandbox}}
Demo categories: Category:Bad stub category name | Category:Fake stub
{{Asbox | demo = yes | subject = test | qualifier = about the note parameter | category = Fake stub | note = This is the text in the note parameter. }}
{{ Asbox}}
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:Stub message templates without images
{{ Asbox/sandbox}}
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:Stub message templates without images
This is the
template test cases page for the
sandbox of
Template:Asbox. to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki; see the HTML comment " NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins and parsers with these links: |
{{Asbox | demo = yes | image = Østfold våpen.svg | pix = 30 | subject = [[Østfold]] location | qualifier = | category = Østfold geography stubs }}
{{ Asbox}}
Demo categories: Category:Østfold geography stubs | Category:Østfold geography stubs| *Asbox/testcases | Category:Stub message templates
{{ Asbox/sandbox}}
Demo categories: Category:Østfold geography stubs | Category:Østfold geography stubs| *Asbox/testcases | Category:Stub message templates
{{Asbox | demo = yes | icon = [[Image:Østfold våpen.svg|30px|border]] | subject = [[Østfold]] location | qualifier = | category = Østfold geography stubs }}
{{ Asbox}}
Demo categories: Category:Østfold geography stubs | Category:Østfold geography stubs| *Asbox/testcases | Category:Stub message templates | Category:Stub message templates using icon parameter
{{ Asbox/sandbox}}
Demo categories: Category:Østfold geography stubs | Category:Østfold geography stubs| *Asbox/testcases | Category:Stub message templates | Category:Stub message templates using icon parameter
{{Asbox | demo = yes | icon = | subject = [[Østfold]] location | qualifier = | category = Østfold geography stubs }}
{{ Asbox}}
Demo categories: Category:Østfold geography stubs | Category:Østfold geography stubs| *Asbox/testcases | Category:Stub message templates | Category:Stub message templates without images
{{ Asbox/sandbox}}
Demo categories: Category:Østfold geography stubs | Category:Østfold geography stubs| *Asbox/testcases | Category:Stub message templates | Category:Stub message templates without images
{{Asbox | demo = yes | image = | pix = 30 | subject = [[Østfold]] location | qualifier = | category = Østfold geography stubs }}
{{ Asbox}}
Demo categories: Category:Østfold geography stubs | Category:Østfold geography stubs| *Asbox/testcases | Category:Stub message templates | Category:Stub message templates without images
{{ Asbox/sandbox}}
Demo categories: Category:Østfold geography stubs | Category:Østfold geography stubs| *Asbox/testcases | Category:Stub message templates | Category:Stub message templates without images
|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 | 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}}
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
{{ Asbox/sandbox}}
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
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 }}}}
{{Asbox | demo = yes | icon = | subject = | qualifier = | category = }}
{{ Asbox}}
Demo categories: Category:Stub message templates needing attention|CAsbox/testcases | Category:Stub message templates needing attention|DAsbox/testcases | Category:Stub message templates | Category:Stub message templates without images
{{ Asbox/sandbox}}
Demo categories: Category:Stub message templates needing attention|CAsbox/testcases | Category:Stub message templates needing attention|DAsbox/testcases | Category:Stub message templates | Category:Stub message templates without images
if |demo = doc
{{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}}
Demo categories: Category:Østfold geography stubs| *Asbox/testcases | Category:Stub message templates | Category:Stub message templates using icon parameter
This template is used to identify a Østfold location stub in the street of Demo. It uses {{ asbox}}, which is a meta-template designed to ease the process of creating and maintaining stub templates.
Typing {{Asbox/testcases}}
produces the message shown at the beginning, and adds the article to the following category:
This is a stub template. A brief explanation of these templates follows; for full details please consult Wikipedia:Stub.
A stub is an article containing only a few sentences of text which is too short to provide encyclopedic coverage of a subject.
{{stub}}
.Further information can be found at:
New stub templates and categories (collectively "stub types") should not be created without prior proposal at Wikipedia:WikiProject Stub sorting/Proposals. This allows for the proper coordination of all stub types across Wikipedia, and for the checking of any new stub type for possible problems prior to its creation.
{{ Asbox/sandbox}}
Demo categories: Category:Østfold geography stubs| *Asbox/testcases | Category:Stub message templates | Category:Stub message templates using icon parameter
This template is used to identify a Østfold location stub in the street of Demo. It uses {{ asbox}}, which is a meta-template designed to ease the process of creating and maintaining stub templates.
Typing {{Asbox/testcases}}
produces the message shown at the beginning, and adds the article to the following category:
This is a stub template. A brief explanation of these templates follows; for full details please consult Wikipedia:Stub.
A stub is an article containing only a few sentences of text which is too short to provide encyclopedic coverage of a subject.
{{stub}}
.Further information can be found at:
New stub templates and categories (collectively "stub types") should not be created without prior proposal at Wikipedia:WikiProject Stub sorting/Proposals. This allows for the proper coordination of all stub types across Wikipedia, and for the checking of any new stub type for possible problems prior to its creation.
{{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}}
Demo categories: Category:Stub message templates needing attention|CAsbox/testcases | Category:Stub message templates needing attention|DAsbox/testcases | Category:Bad stub category name| *Asbox/testcases | Category:Stub message templates needing attention|SAsbox/testcases | Category:Fake stub| *Asbox/testcases | Category:Stub message templates needing attention|NAsbox/testcases | Category:Stub message templates | Category:Stub message templates without images | Category:Stub message templates needing attention|IAsbox/testcases
The |category parameter is not set. Please add an appropriate stub category. |
This stub template contains no description! At least one of the parameters |subject , |article or |qualifier must be defined. |
The following parameters define stub categories that do not exist: |category1 and |category4 |
This template is used to identify a stub. It uses {{ asbox}}, which is a meta-template designed to ease the process of creating and maintaining stub templates.
Typing {{Asbox/testcases}}
produces the message shown at the beginning, and adds the article to the following categories:
This is a stub template. A brief explanation of these templates follows; for full details please consult Wikipedia:Stub.
A stub is an article containing only a few sentences of text which is too short to provide encyclopedic coverage of a subject.
{{stub}}
.Further information can be found at:
New stub templates and categories (collectively "stub types") should not be created without prior proposal at Wikipedia:WikiProject Stub sorting/Proposals. This allows for the proper coordination of all stub types across Wikipedia, and for the checking of any new stub type for possible problems prior to its creation.
{{ Asbox/sandbox}}
Demo categories: Category:Stub message templates needing attention|CAsbox/testcases | Category:Stub message templates needing attention|DAsbox/testcases | Category:Bad stub category name| *Asbox/testcases | Category:Stub message templates needing attention|SAsbox/testcases | Category:Fake stub| *Asbox/testcases | Category:Stub message templates needing attention|NAsbox/testcases | Category:Stub message templates | Category:Stub message templates without images | Category:Stub message templates needing attention|IAsbox/testcases
The |category parameter is not set. Please add an appropriate stub category. |
This stub template contains no description! At least one of the parameters |subject , |article or |qualifier must be defined. |
The following parameters define stub categories that do not exist: |category1 and |category4 |
This template is used to identify a stub. It uses {{ asbox}}, which is a meta-template designed to ease the process of creating and maintaining stub templates.
Typing {{Asbox/testcases}}
produces the message shown at the beginning, and adds the article to the following categories:
This is a stub template. A brief explanation of these templates follows; for full details please consult Wikipedia:Stub.
A stub is an article containing only a few sentences of text which is too short to provide encyclopedic coverage of a subject.
{{stub}}
.Further information can be found at:
New stub templates and categories (collectively "stub types") should not be created without prior proposal at Wikipedia:WikiProject Stub sorting/Proposals. This allows for the proper coordination of all stub types across Wikipedia, and for the checking of any new stub type for possible problems prior to its creation.
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 | 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}}
Demo categories: Category:Bad stub category name | Category:Fake stub
{{ Asbox/sandbox}}
Demo categories: Category:Bad stub category name | Category:Fake stub
{{Asbox | demo = yes | subject = test | qualifier = about the note parameter | category = Fake stub | note = This is the text in the note parameter. }}
{{ Asbox}}
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:Stub message templates without images
{{ Asbox/sandbox}}
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:Stub message templates without images