Esta é a página de exemplos para testes de predefinições para a página de testes de Predefinição:Asbox. para atualizar os exemplos. Se houver muitos exemplos de uma predefinição complicada, os últimos poderão deixar de funcionar devido aos limites do MediaWiki, veja o comentário HTML "NewPP limit report" na página renderizada. Também pode utilizar Especial:Expandir predefinições para examinar o resultado dos usos da predefinição. Pode testar como esta página aparece em diferentes skins com estes links: |
{{Asbox}} | |
---|---|
{{Asbox | demo = yes | imagem = Østfold våpen.svg | pix = 30 | assunto = [[Østfold]] location | qualificador = | categoria = <!-- Østfold geography stubs --> }} {{Asbox}} {{Asbox/Testes}}
|
{{Asbox}} | |
---|---|
{{Asbox | demo = yes | ícone = [[imagem:Østfold våpen.svg|30px|border]] | assunto = [[Østfold]] location | qualificador = | categoria = <!-- Østfold geography stubs --> }} {{Asbox}} {{Asbox/Testes}}
|
{{Asbox}} | |
---|---|
{{Asbox | demo = yes | ícone = | assunto = [[Østfold]] location | qualificador = | categoria = <!-- Østfold geography stubs --> }} {{Asbox}} {{Asbox/Testes}}
|
{{Asbox}} | |
---|---|
{{Asbox | demo = yes | imagem = | pix = 30 | assunto = [[Østfold]] location | qualificador = | categoria = <!-- Østfold geography stubs --> }} {{Asbox}} {{Asbox/Testes}}
|
Hidden unicode char[editar]
|categoria=
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, nota that this is still a valid categoria (link for categoria:Østfold geography stubs is blue, not red), so it should not be sorted under 'S' in categoria: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 | imagem = Østfold våpen.svg | pix = 30 | assunto = [[Østfold]] location | qualificador = | categoria99= <!-- Typography stubs --> | categoria = <!-- Østfold geography stubs --> | categoria1 = <!-- Demo stubs --> | categoria2 = <!-- Template stubs --> | nota = notas go here }} {{Asbox}} {{Asbox/Testes}}
|
Missing imagem[editar]
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 imagems. Remember to pre tag again in order to avoid cluttering categoria:Templates with missing files.
{{test case nowiki|collapsible=yes|title=Missing imagem file|code={{__TEMPLATENAME__ | demo = yes | ícone = [[imagem:Ostfold vapen missing.png|30px|border]] | assunto = [[Østfold]] location | qualificador = | categoria = <!-- Østfold geography stubs --> }}}}
Missing params[editar]
Missing imagem file | |
---|---|
{{Asbox | demo = yes | ícone = | assunto = | qualificador = | categoria = }} {{Asbox}} {{Asbox/Testes}}
|
Automatic Documention[editar]
if |demo = doc
{{Asbox}} | |
---|---|
{{Asbox | demo = doc | ícone = [[imagem:Østfold våpen.svg|30px|border]] | assunto = [[Østfold]] location | qualificador = in the street of Demo | categoria = <!-- Østfold geography stubs --> | nota = notas go here }} {{Asbox}} {{Asbox/Testes}}
|
Ombox messages and error sorting[editar]
{{Asbox}} | |
---|---|
{{Asbox | demo = doc | categoria1 = <!-- Bad stub categoria nome --> | categoria4 = <!-- Fake stub --> | altimage = dummy | nome = nota: this param only checked if not demo and not article }} {{Asbox}} {{Asbox/Testes}}
|
Demo article space categories only[editar]
Same as above, but this time emulating article space (nota lack of error/hidden categories and ombox; also demo cats link will not show in actual article space)
{{Asbox}} | |
---|---|
{{Asbox | demo = art | categoria1 = <!-- Bad stub categoria nome --> | categoria4 = <!-- Fake stub --> | altimage = dummy | nome = nota: this param only checked if not demo and not article }} {{Asbox}} {{Asbox/Testes}}
|