Usuário(a):Odie5533/SnipManager.user.js

Origem: Wikipédia, a enciclopédia livre.

Nota: Depois de publicar, poderá ter de contornar a cache do seu navegador para ver as alterações.

  • Firefox / Safari: Pressione Shift enquanto clica Recarregar, ou pressione Ctrl-F5 ou Ctrl-R (⌘-R no Mac)
  • Google Chrome: Pressione Ctrl-Shift-R (⌘-Shift-R no Mac)
  • Internet Explorer / Edge: Pressione Ctrl enquanto clica Recarregar, ou pressione Ctrl-F5
  • Opera: Pressione Ctrl-F5.
// <pre><nowiki>
// ==UserScript==
// @name           SnippetManager
// @namespace      http://pt.wikipedia.org/*
// @include        http://*.wikipedia.org/*
 
// @include        https://secure.wikimedia.org/*
// ==/UserScript==
//
// Esse script foi baseado no [[User:Mr.Z-man/refToolbar.js]]
// E foi copiado da versao em ingles de [[User:Odie5533/SnipManager.user.js]]
//
// Credit also to wikiEd for coding examples
window.SnippetManagerWrapper = function() {
 
if (typeof(smConfig) == 'undefined') { window.smConfig = new Object(); }
if (typeof(smConfig['smColumns']) == 'undefined') { window.smConfig['smColumns'] = 2; }
if (typeof(smConfig['smTextWidth']) == 'undefined') { window.smConfig['smTextWidth'] = '220px'; }
if (typeof(smConfig['smSingleForm']) == 'undefined') { window.smConfig['smSingleForm'] = true; }
if (typeof(smConfig['smMenus']) == 'undefined') {
  window.smConfig['smMenus'] = { '+Citações &or;':{ 'Web':'Citar web', 'Entrevista':'Citar entrevista',
    'Livro':'Citar livro', 'Periódico':'Citar periódico', 'Vídeo':'Citar vídeo',
    'S-fontes':'S-fontes','Erros de Ref':'errosderef', 'DOI Bot':'doicite' },
    'General &or;':{ 'Reciclagem':'reciclagem', 'Corrigir':'corrigir'},
    'Intro &or;':{ 'Corrigir variante':'corrigir variante', 'Expandir':'expandir',
    'Reescrever':'Contextualizar', 'Contextualizar2':'Contextualizar2' },
    'Referências &or;':{ 'S-fontes':'S-fontes', 'S-fontes':'S-fontes',
                        'Sem notas':'Sem notas', 'M-notas':'M-notas',
                        'Parcial':'parcial', 'Fontes primárias':'Fontes primárias'
                       },
    'Fact':'fact',
    'Weasel term':'weasel-inline',
    'RafaAzevedo-VDLM':'RafaAzevedo-VDLM'
  };
 
}
if (typeof(smConfig['smForms']) == 'undefined') {
    window.smConfig['smForms'] = {
        'doicite' : [ { 'httpeval':[ 'http://tools.wikimedia.de/~verisimilus/Bot/DOI_bot/doibot.php?edit=false&slow=1&page=%s', "escape(wgPageName).replace('&', '%26');" ] } ],
        'reciclagem' : [ { 'inserttext':'{{Reciclagem}}' } ],
        'corrigir' : [ { 'inserttext':'{{Corrigir}}' } ],
        'corrigir variante' : [ { 'inserttext':'{{corrigir variante}}' } ],
        'expandir' : [ { 'inserttext':'{{expandir}}' } ],
        'contextualizar' : [ { 'inserttext':'{{Contextualizar}}' } ],
        'contextualizar2' : [ { 'inserttext':'{{Contextualizar2}}' } ],
        'Sem notas' : [ { 'inserttext':'{{Sem notas|{{subst:DATA}}}}' } ],
        'M-notas' : [ { 'inserttext':'{{M-notas|{{subst:DATA}}}}' } ],
        'Sem-fontes' : [ { 'inserttext':'{{Sem-fontes|{{subst:DATA}}}}' } ],
        'sem fontes' : [ { 'inserttext':'{{Sem-fontes|{{subst:DATA}}}}' } ],
        'parcial' : [ { 'inserttext':'{{Parcial|artigo|{{subst:DATA}}}}' } ],
        'Suspeito' : [ { 'inserttext':'{{Suspeito|artigo|{{subst:DATA}}}}' } ],
        'Má introdução' : [ { 'inserttext':'{{Má introdução|{{subst:DATA}}}}' } ],
        'F-referências' : [ { 'inserttext':'{{F-referências{{subst:DATA}}}}' } ],
        'Revisão' : [ { 'inserttext':'{{Revisão|artigo|{{subst:DATA}}}}' } ],
        'Direitos-autorais' : [ { 'inserttext':'{{Direitos-autorais|{{subst:DATA}}}}' } ],
        'fact' : [ { 'inserttext':'{{Fact|{{subst:DATE}}}}' } ],
        'weasel-inline' : [ { 'inserttext':'{{Weasel-inline|{{subst:DATE}}}}' } ],
        'Fontes primárias' : [ { 'inserttext':'{{Fontes primárias|{{subst:DATA}}}}' } ],
        'Publicidade' : [ { 'inserttext':'{{Publicidade|{{subst:DATA}}}}' } ],
        'Não enciclopédico' : [ { 'inserttext':'{{Não enciclopédico|{{subst:DATA}}}}' } ],
        'S-fontes' : [ { 'evaluate':'easyCiteMain();citeNamedRef();' } ],
        'referrs' : [ { 'evaluate':'easyCiteMain();dispErrors();' } ],
        'RafaAzevedo-VDLM' : [ { 'prepend':'{{subst:RafaAzevedo-VDLM', 'append':'}}' },
                    {'title':'Page name', 'code':'1' },
                    {'title':'Criterion', 'code':'2' },
                    {'title':'Concern/reason', 'code':'3' },
                    {'title':'Additional text', 'code':'4' }
                    ],
      'Citar web' : [ { 'prepend':'<ref>{{Citar web', 'append':'}}</ref>', 'description':'Essa predefinição é usada para citar fontes onlines em artigos da Wikipédia. {{<a href="/wiki/Predefinição:Citar_periódico" titulo="Predefinição:Citar periódico">Citar periódico</a>}} também pode ser usado para citar fontes de notícias; para mais informações, veja <a href="/wiki/Wikipédia:CITE" title="" class="mw-redirect">Wikipédia:cite</a>.' },
                    {'title':'<strong>Titulo:</strong>', 'code':'titulo', 'help':'Título do documento online. O texto desse campo irá aparecer no lugar do texto da URL. Não é necessário utilizar o mesmo título encontrado no website, mas deve deixar claro ao leitor do artigo qual assunto ele encontrará ao ao clicar no link'},
                    {'title':'<strong>URL:</strong>', 'code':'url', 'help':'URL da fonte'},
                    {'title':'Data:', 'code':'data', 'help':'Data da criação/atualização da página (URL) que contém a obra ou a citação, por exemplo: data=17 de Fevereiro de 2006'},
                    {'title':'Acessodata:', 'code':'acessodata', 'defeval':'smGetTime()', 'help':'Data completa de quando a página (URL) que contém a obra ou a citação foi visitada, por exemplo: acessodata=17 de fevereiro de 2006. Se você tiver a informação do parâmetro data (citado acima), não deixe de citá-lo, pois ele é mais importante e mais informativo que o acessodata.'},
                    {'title':'autor:', 'code':'autor', 'help':'Autor da informação referenciada.'},
                    {'title':'autorlink:', 'code':'autorlink', 'help':'works either with author or with last & first to link to the appropriate wikipedia article. Does not work with URLs.'},
                    {'title':'coautores:', 'code':'coautores', 'help':'allows additional authors'},
                    {'title':'ano:', 'code':'ano', 'help':'ano, mes e dia em que foi visitado.'},
                    {'title':'mes:', 'code':'mes', 'help':'month of publication'},
                    {'title':'formato:', 'code':'formato', 'help':'e.g. PDF. HTML is implied'},
                    {'title':'obra:', 'code':'obra', 'help':'If this item is part of a larger "work", such as a book, periodical or website, write the name of that work.'},
                    {'title':'publicado:', 'code':'publicado', 'help':'Instituição, empresa ou responsável pela homepage da publicação.'},
                    {'title':'páginas:', 'code':'páginas', 'help':'pp. 5–7: first page and optional last page. This is for listing the pages relevant to the citation, not the total number of pages in the book.'},
                    {'title':'língua:', 'code':'língua', 'help':'language of publication (don\'t specify "English" as this is the default).'},
 
                    {'title':'arquivourl:', 'code':'arquivourl', 'help':'The URL of an archived copy of the page, if (or in case) the url becomes unavailable. Typically used to refer to services like WebCite and The Internet Archive. Requires archivedate.'},
                    {'title':'arquivodata:', 'code':'arquivodata', 'help':'Date when the item was archived (requires archiveurl), in ISO 8601 YYYY-MM-DD format, e.g. 2006-02-17. Must not be wikilinked.'},
                    {'title':'citação:', 'code':'citação', 'help':'Relevant quote from online item.'}
                  ],
        'Citar entrevista' : [ { 'prepend':'<ref>{{Citar entrevista', 'append':'}}</ref>' },
                    {'title':'<strong>título:</strong>', 'code':'Título', 'help':'required, rest is optional. Note that title must be on one line in order for the hyperlink to display properly. Do not enclose it in quotations marks, italics or other formatting, though it may be wikilinked.'},
                    {'title':'URL:', 'code':'Url', 'help':'Link to the news item if available online (note this is not for a link to the main web page of the work of publisher, but only to a copy of the item specified in title). Start the url with the communications protocol e.g. http://. '},
                    {'title':'nome:', 'code':'Nome', 'help':'First name of author'},
                    {'title':'sobrenome:', 'code':'Sobrenome', 'help':'Last name of the author'},
                    {'title':'entrevistado:', 'code':'Entrevistado', 'help':'Date of publication. Use the same format as the main text of the article.'},
                    {'title':'entrevistadolink:', 'code':'Entrevistadolink', 'help':'works either with author or with last & first to link to the appropriate Wikipedia article. Does not work with URLs.'},
                    {'title':'entrevistador:', 'code':'Entrevistador', 'help':'Author'},
                    {'title':'entrevistadores:', 'code':'entrevistadores', 'help':'Allows additional authors.'},
                    {'title':'tipo:', 'code':'Tipo', 'help':'e.g. PDF. HTML is implied. Specify as "fee required" if free access is no longer available. Specify as "Reprint" if you use a full original version but not hosted by the original publisher.'},
                    {'title':'formato:', 'code':'Formato', 'help':'The news agency (wire service) that provided the content, e.g. Associated Press, Reuters, etc. Spell out and link the full name.'},
                    {'title':'programa:', 'code':'Programa', 'help':'The publication that ran the item, e.g. Newsweek. Can also be used for the name of a column or subpart of an issue. Do not italicize.'},
                    {'title':'callsign:', 'code':'Callsign', 'help':'Place of the publication, e.g. Toronto for The Globe and Mail. For student newspapers, include the name of the school.'},
                    {'title':'cidade:', 'code':'Cidade', 'help':'The company or organization that publishes the news source. Not necessary for major publications like The New York Times, but may add credibility for local papers that are part of a family of publications like The McClatchy Company.'},
                    {'title':'data:', 'code':'Data', 'help':'A unique identifier, used if none of the above are applicable. In this case, you need to specify the kind of identifier you are using, preferably with a template like {{ASIN}} or {{ISSN}}. (Use one of the more specialized parameters if possible; they are linked automatically. In other words, don\'t use id = ISBN 1-111-22222-9 anymore. Use isbn = 1-111-22222-9.)'},
                    {'title':'ano:', 'code':'Ano', 'help':'The page(s) on which the article is found. page inserts the abbreviation "p." before the number; pages inserts "pp." Use only one of these parameters. If numbers are entered for both, pages overrides page.'},
                    {'title':'mes:', 'code':'Mes', 'help':'The page(s) on which the article is found. page inserts the abbreviation "p." before the number; pages inserts "pp." Use only one of these parameters. If numbers are entered for both, pages overrides page.'},
 
                    {'title':'acessodata:', 'code':'Acessodata', 'defeval':'smGetTime()', 'help':'Full date when item was accessed, in ISO 8601 DD-MM-YYYY format, for example "acessodata = 13-03-2009". Must not be wikilinked.'},
 
                  ],
        'Citar livro' : [ { 'prepend':'<ref>{{Citar livro', 'append':'}}</ref>' },
                    {'title':'sobrenome:', 'code':'sobrenome', 'help':'Sobrenome (apelido).'},
                    {'title':'nome:', 'code':'nome', 'help':'Primeira parte do nome (nomes próprios e primeiros sobrenomes)'},
                    {'title':'autorlink:', 'code':'autorlink', 'help':'TTítulo do verbete da biografia do autor (sem []).'},
                    {'title':'coautor:', 'code':'coautor', 'help':'Coautor(es).'},
                    {'title':'editor:', 'code':'editor', 'help':'editor.'},
                    {'title':'título:', 'code':'título', 'help':'Title of book. This is the only required parameter. Can be wikilinked only to an existing Wikipedia article. Do not use italics.'},
                    {'title':'url:', 'code':'url', 'help':'URL of an online location where the book can be found. Cannot be used if you wikilinked title. If applicable, can point to the specific page(s) referenced.'},
                    {'title':'local:', 'code':'local', 'help':'Format, e.g. PDF. HTML implied if not specified.'},
                    {'title':'acessodata:', 'code':'acessodata', 'defeval':'smGetTime()', 'help':'Full date when url was accessed. Required when url field is used. Must not be wikilinked.'},
                    {'title':'edição:', 'code':'edição', 'help':'When the book has more than one edition. e.g.: "2nd." (note that " ed." is placed after this field, so edition=2nd produces "2nd ed.").'},
                    {'title':'Series:', 'code':'series', 'help':'When the book is part of a series of publications'},
                    {'title':'volume:', 'code':'volume', 'help':'For one book published in several volumes. However, this template displays the text in this field in bold type after the "title" and "series" parameters. An alternative is to include the volume information in the "title" field after the main title (see example below). (NB: there is a separate {{Cite encyclopedia}} template).'},
 
                    {'title':'ano:', 'code':'ano', 'help':'Original publication year, for display alongside the date or year. For clarity, please specify as much information as possible, for instance "First published 1859" or "Composed 1904". This parameter only displays if a there is a value for "year" or "date".'},
 
 
                    {'title':'editora:', 'code':'editora', 'help':'Publisher should not include corporate designation such as "Ltd" or "Inc". '},
                    {'title':'Location:', 'code':'location', 'help':'Geographical place of publication.'},
                    {'title':'idioma:', 'code':'idioma', 'help':'The language the book is written in, if it is not English. The template automatically puts parentheses around the text and adds "in" before the language name.'},
                    {'title':'ISBN:', 'code':'ISSN', 'help':'International Standard Book Number such as 1-111-22222-9. Note that "isbn", like all field names, must be in lowercase.'},
 
                    {'title':'ref:', 'code':'ref', 'help':'A nineteen character Bibcode identifier.'},
                    {'title':'id:', 'code':'id', 'help':'A unique identifier, used if none of the above are applicable. In this case, you need to specify the kind of identifier you are using, preferably with a template like {{ASIN}} or {{ISSN}}. (Use one of the more specialized parameters if possible; they are linked automatically. In other words, don\'t use id = ISBN 1-111-22222-9 anymore. Use isbn = 1-111-22222-9.)'},
                    {'title':'página:', 'code':'página', 'help':'"|pages= 5–7" produces pp. 5–7, while "|page= 5" produces p. 5. The "pp." notation indicating multiple pages, and "p." notation indicating a single page, are placed automatically when you choose between the plural (pages) or singular (page) form of the parameter. These parameters are for listing the pages relevant to the citation, not the total number of pages in the book.'},
                    {'title':'páginas:', 'code':'páginas', 'help':'"|pages= 5–7" produces pp. 5–7, while "|page= 5" produces p. 5. The "pp." notation indicating multiple pages, and "p." notation indicating a single page, are placed automatically when you choose between the plural (pages) or singular (page) form of the parameter. These parameters are for listing the pages relevant to the citation, not the total number of pages in the book.'},
 
                    {'title':'capítulo:', 'code':'capítulo', 'help':'The chapter of the book, written in full. Punctuation other than quotes should be included in the value passed to the parameter, e.g. chapter = Meet Dick and Jane. produces "Meet Dick and Jane." ahead of title.'},
 
                    {'title':'notas:', 'code':'notas', 'help':'Relevant quote from the book.'},
 
 
                  ],
        'Citar periódico' : [ { 'prepend':'<ref>{{Citar periódico', 'append':'}}</ref>' },
                    {'title':'ultimo:', 'code':'ultimo', 'help':'last works with first to produce last, first'}, 
                    {'title':'primeiro:', 'code':'primeiro', 'help':'last works with first to produce last, first'}, 
                    {'title':'autorlink:', 'code':'autorlink', 'help':'authorlink works either with author or with last & first to link to the appropriate article (interwiki link)'}, 
                    {'title':'coautores:', 'code':'coautores', 'help':'allows additional authors'}, 
                    {'title':'data:', 'code':'data', 'help':'January 1, 2006. Full date of publication.'}, 
                    {'title':'ano:', 'code':'ano', 'help':'2006. Year of publication (ignored if the date field is used).'}, 
                    {'title':'mes:', 'code':'mes', 'help':'January. Month of publication (ignored if the date field is used, or if the year field is not used).'}, 
 
                    {'title':'titulo:', 'code':'titulo', 'help':'Title of article. This is the only required parameter. All other parameters are optional.'}, 
                    {'title':'jornal:', 'code':'jornal', 'help':'Name of the journal or periodical.'}, 
                    {'title':'volume:', 'code':'volume', 'help':'Volume number of the journal in which the article is found'}, 
                    {'title':'numero:', 'code':'numero', 'help':'Journal\'s issue number, or issue name.'}, 
 
                    {'title':'paginas:', 'code':'paginas', 'help':'45–47: first page, and optional last page (separated by an en dash –). Manually prepend with p. or pp. if desired.'}, 
                    {'title':'editora:', 'code':'editora', 'help':'Publisher of journal or periodical; should not include corporate designation such as "Ltd" or "Inc". Only include if ISSN and DOI are unavailable.'}, 
                    {'title':'local:', 'code':'local', 'help':'Place of publication for journal or periodical.'}, 
                    {'title':'issn:', 'code':'issn', 'help':'The publication\'s International Standard Serial Number such as 1111-2220. Only include if a DOI is unavailable.'}, 
                    {'title':'pmid:', 'code':'pmid', 'help':'The document\'s PubMed Unique Identifier, such as 15128012'}, 
 
                    {'title':'doi:', 'code':'doi', 'help':'A digital object identifier for the document, such as 10.1130/0091-7613(1990)018<1153:TAFSIA>2.3.CO;2.'}, 
                    {'title':'Bibcode:', 'code':'bibcode', 'help':'The document\'s bibcode in the Astrophysics Data System, e.g., 1924MNRAS..84..308E'}, 
                    {'title':'oclc:', 'code':'oclc', 'help':'The periodical\'s Online Computer Library Center ID number, such as 3185581'}, 
                    {'title':'Id:', 'code':'id', 'help':'A unique identifier, used if none of the above are applicable. In this case, you need to specify the kind of identifier you are using, preferably with a template like {{US patent}}, {{MR}} / {{MathSciNet}}, {{Zbl}}, {{arXiv}} or {{JFM}}. (Use one of the more specialized parameters if possible; they are linked automatically. In other words, don\'t use id = PMID 15128012 anymore. Use pmid = 15128012.)'}, 
                    {'title':'url:', 'code':'url', 'help':'This should point to, in descending order of preference: 1. A free online version of the full text  2. An online version of the full text, for which subscription is required  3. An abstract or information page, if no DOI or PMID record is available. If a DOI or PMID is available, the URL should only be specified if it would point to a different page to that which a DOI or PMID would redirect to.'}, 
                    {'title':'idioma:', 'code':'idioma', 'help':'Language, e.g. Finnish. (English is assumed and should not be specified.)'}, 
                    {'title':'formato:', 'code':'formato', 'help':'Format, e.g. PDF. Don\'t specify for HTML (implied as default). Specify as "fee required" if free access no longer available. Specify as "Reprint" if a full original version but not hosted by the original publisher.'}, 
                    {'title':'acessadoem:', 'code':'acessadoem', 'defeval':'smGetTime()', 'help':'Full date when URL was last checked.'}, 
                    {'title':'aspas:', 'code':'aspas', 'help':'URL of a lay summary, which could be in a popular science magazine or newspaper. '}, 
 
                    {'title':'notas:', 'code':'notas', 'help':'Relevant excerpt from the journal.'}
                ],
        'Citar álbum' : [ { 'prepend':'<ref>{{Citar álbum', 'append':'}}</ref>', 'description':'Essa predefinição é usada para citar fontes de álbuns na Wikipédia.' },
                    {'title':'título', 'code':'título', 'help':'Título.'},
                    {'title':'álbumlink', 'code':'álbumlink', 'help':'URL da fonte'},
                    {'title':'artista:', 'code':'artista', 'help':'artista'},
                    {'title':'ano:', 'code':'ano', 'help':'ano.'},
                    {'title':'publicado:', 'code':'publicado', 'help':'publicado.'},
                    {'title':'títulonotas:', 'code':'títulonotas', 'help':'títulonotas'},
                    {'title':'primeiro:', 'code':'primeiro', 'help':'primeiro.'},
                    {'title':'último:', 'code':'último', 'help':'month of publication'},
                    {'title':'co-autores:', 'code':'co-autores', 'help':'e.g. PDF. HTML is implied'},
                    {'title':'página:', 'code':'página', 'help':'If this item is part of a larger "work", such as a book, periodical or website, write the name of that work.'},
                    {'title':'publicado:', 'code':'publicado', 'help':'Instituição, empresa ou responsável pela homepage da publicação.'},
                    {'title':'páginas:', 'code':'páginas', 'help':'pp. 5–7: first page and optional last page. This is for listing the pages relevant to the citation, not the total number of pages in the book.'},
                    {'title':'idpublicação:', 'code':'idpublicação', 'help':'language of publication (don\'t specify "English" as this is the default).'},
                    {'title':'localização:', 'code':'localização', 'help':'localização.'},
                  ],
        'Citar vídeo' : [ { 'prepend':'<ref>{{Citar vídeo', 'append':'}}</ref>' },
                    {'title':'pessoas:', 'code':'pessoas', 'help':'Deve ser alguém associado com o vídeo. Adicione o papel entre parênteses (Produtor, Diretor, Ator, etc).'},
                    {'title':'data2:', 'code':'date2', 'help':'Data completa de quando a produção foi lançada ou foi ao ar. Ex.: 1 de janeiro de 2000.'},
                    {'title':'ano2:', 'code':'ano2', 'help':'Ano em que a produção foi lançada ou foi ao ar. Deve ser usado apenas quando a data completa é desconhecida. Ex.: 2000. '},
                    {'title':'mês2:', 'code':'mês2', 'help':'Mês em que a produção foi lançada ou foi ao ar. Deve apenas ser usada com ano2.'},
                    {'title':'título:', 'code':'título', 'help':'TTítulo da produção. Este é o único campo obrigatório.'},
                    {'title':'url:', 'code':'url', 'help':'URL do vídeo, se disponível online.'},
                    {'title':'formato:', 'code':'formato', 'help':'Formato do arquivo do link URL, se este conter mídia digital.'},
                    {'title':'tipo:', 'code':'tipo', 'help':'Tipo de produção. Ex.: Documentário, Entrevista, Fita de vídeo, DVD, etc.)'},
                    {'title':'publicado por:', 'code':'publicado por', 'help':' Nome do indivíduo, grupo ou empresa que lançou ou colocou no ar a produção. Ex.: "Paramount Pictures", "Disney" ou "History Channel International". '},
                    {'title':'localização:', 'code':'localização', 'help':'Localização física de quem publicou. Formato: "Cidade, Estado" ou "Cidade, País". Ex.: "Nova Iorque, NI" or "Londres, Inglaterra".'},
                    {'title':'acessodata:', 'code':'acessodata', 'defeval':'smGetTime()', 'help':'Data completa de quando a URL foi acessada. Ex.: 1 de janeiro de 2000. Campo obrigatório quando o campo URL é usado. '},
                    {'title':'acessoano:', 'code':'acessoano', 'help':'Ano de acesso, e acessomes: Nome do mês de acesso. Se você também tiver o dia, então use acessodata ao invés de acessoano e acessomes.'},
                    {'title':'acessomes:', 'code':'acessomes', 'help':'Ano de acesso, e acessomes: Nome do mês de acesso. Se você também tiver o dia, então use acessodata ao invés de acessoano e acessomes.'},
                    {'title':'hora:', 'code':'hora', 'help':' Momento exato do vídeo em que acontece a cena, citação, etc.'},
 
                    {'title':'citação:', 'code':'citação', 'help':'Citação importante do vídeo, para ele ser usado como fonte ou referência!'},
                ],
 
        'Info/Nobre' : [ { 'prepend':'{{Info/Nobre', 'append':'}}', 'description':'' },
                {'title':'<strong>tipo:</strong>', 'code':'tipo', 'help':'the name of the conflict being described (e.g. "Battle of Lützen" or "World War I").'},
                {'title':'<strong>consorte:</strong>', 'code':'consorte', 'help':'the location of the conflict.  For conflicts covering a wide area, a general description (e.g. "[[France]]", or "[[Europe]]", or "Worldwide") may be used.'},
                {'title':'nome:', 'code':'nome', 'help':'the larger conflict containing the event described in the article.  For battles or campaigns, this should be the war during which the event takes place; for particularly large wars, this may include a theatre (e.g. "the Eastern Front of World War II").  For wars, the parameter may be used to link to a larger group of wars (e.g. the [[Italian War of 1521–26]] to the [[Italian Wars]]).  It may be necessary to insert "the" before the name of the war for proper grammar.'},
                {'title':'<strong>titulotexto:</strong>', 'code':'titulotexto', 'help':'the location of the conflict.  For conflicts covering a wide area, a general description (e.g. "[[France]]", or "[[Europe]]", or "Worldwide") may be used.'},
                {'title':'<strong>mais:</strong>', 'code':'mais', 'help':'the location of the conflict.  For conflicts covering a wide area, a general description (e.g. "[[France]]", or "[[Europe]]", or "Worldwide") may be used.'},
                {'title':'imagem:', 'code':'imagem', 'help':'an image for the warbox.  The image must be given in the form [[Image:Example.jpg|300px]]; in particular, the thumb attribute must not be selected.'},
                {'title':'<strong>imgw:</strong>', 'code':'imgw', 'help':'the location of the conflict.  For conflicts covering a wide area, a general description (e.g. "[[France]]", or "[[Europe]]", or "Worldwide") may be used.'},
                {'title':'<strong>alt:</strong>', 'code':'alt', 'help':'the location of the conflict.  For conflicts covering a wide area, a general description (e.g. "[[France]]", or "[[Europe]]", or "Worldwide") may be used.'},
                {'title':'legenda:', 'code':'legenda', 'help':'the text to be placed below the image.'},
                {'title':'sucessão:', 'code':'sucessão', 'help':'the date of the conflict described.  Convention is to give the actual date for battles and the years for wars, but this does not always apply.'},
                {'title':'reinado:', 'code':'reinado', 'help':'"yes" if the "location" microformat property should not be set on the field above.'},
                {'title':'coroação:', 'code':'coroação', 'help':'the location of the structure, given as a coordinate pair by using {{tl|coord}} with display=inline,title.'},
                {'title':'predecessor:', 'code':'predecessor', 'help':'for ongoing conflicts, the current status of the conflict.  This should not be used if a final result (above) is provided.'},
                {'title':'sucessor:', 'code':'sucessor', 'help':'this parameter may use one of several standard terms: "X victory", "Decisive X victory" or "Inconclusive". The choice of term should reflect what the sources say. In cases where the standard terms do not accurately describe the outcome, the preferred method is to enter a link to the section of the article where the result is discussed in detail (such as "See the \'Aftermath\' section").'},
                {'title':'conjugue:', 'code':'conjugue', 'help':'any changes in territorial control as a result of the conflict; this should not be used for overly lengthy descriptions of the peace settlement.'},
                {'title':'nome completo:', 'code':'nome completo', 'help':'any changes in territorial control as a result of the conflict; this should not be used for overly lengthy descriptions of the peace settlement.'},
                {'title':'casa:', 'code':'casa', 'help':'any changes in territorial control as a result of the conflict; this should not be used for overly lengthy descriptions of the peace settlement.'},
                {'title':'pai:', 'code':'pai', 'help':'any changes in territorial control as a result of the conflict; this should not be used for overly lengthy descriptions of the peace settlement.'},
               {'title':'mãe:', 'code':'mãe', 'help':'any changes in territorial control as a result of the conflict; this should not be used for overly lengthy descriptions of the peace settlement.'},
               {'title':'data de nascimento:', 'code':'data de nascimento', 'help':'any changes in territorial control as a result of the conflict; this should not be used for overly lengthy descriptions of the peace settlement.'},
               {'title':'local de nascimento:', 'code':'local de nascimento', 'help':'any changes in territorial control as a result of the conflict; this should not be used for overly lengthy descriptions of the peace settlement.'},
               {'title':'data da morte:', 'code':'data da morte', 'help':'any changes in territorial control as a result of the conflict; this should not be used for overly lengthy descriptions of the peace settlement.'},
               {'title':'local da morte:', 'code':'local da morte', 'help':'any changes in territorial control as a result of the conflict; this should not be used for overly lengthy descriptions of the peace settlement.'},
               {'title':'local da morte:', 'code':'local da morte', 'help':'any changes in territorial control as a result of the conflict; this should not be used for overly lengthy descriptions of the peace settlement.'},
               {'title':'data de enterro:', 'code':'data de enterro', 'help':'any changes in territorial control as a result of the conflict; this should not be used for overly lengthy descriptions of the peace settlement.'},
               {'title':'local de enterro:', 'code':'local de enterro', 'help':'any changes in territorial control as a result of the conflict; this should not be used for overly lengthy descriptions of the peace settlement.'},
               {'title':'ocupaçao:', 'code':'ocupaçao', 'help':'any changes in territorial control as a result of the coflict; this should not be used for overly lengthy descriptions of the peace settlement.'},
               {'title':'assinatura:', 'code':'assinatura', 'help':'any changes in territorial control as a result of the conflict; this should not be used for overly lengthy descriptions of the peace settlement.'}, 
               {'title':'religião:', 'code':'religião', 'help':'any changes in territorial control as a result of the conflict; this should not be used for overly lengthy descriptions of the peace settlement.'},
            ],
        'Info/Biografia' : [ { 'prepend':'{{Info/Biografia', 'append':'}}', 'description':'' },
                {'title':'bgcolour:', 'code':'bgcolour', 'help':'Common name of person (defaults to article name if left blank; provide birth_name (below) if different from name).'},
                 {'title':'nome:', 'code':'nome', 'help':'Common name of person (defaults to article name if left blank; provide birth_name (below) if different from name).'},
                {'title':'imagem:', 'code':'imagem', 'help':'Image name: abc.jpg, xpz.png, 123.gif, etc. If an image is desired but not available, one may add "yes" to the "needs-photo" section of the Template:WPBiography on the talkpage. Do not use Image:Replace this image male.svg, Image:Replace this image female.svg or other placeholder images; the proposal to use such placeholders has been rejected by the community.'},
                {'title':'imagem_tamanho:', 'code':'imagem_tamanho', 'help':'Size to display image: 200px (set width), or 200x300px (max width & max height). This defaults to 225px if empty or omitted.'},
                {'title':'imagem_legenda:', 'code':'imagem_legenda', 'help':'Caption for image, if needed. Try to include date of photo and the photographer.'},
                {'title':'nome_completo :', 'code':'nome_completo', 'help':'Name at birth, if different from name.'},
                {'title':'nascimento_data:', 'code':'nascimento_data', 'help':'Date of birth: {{birth date and age|1930|1|15}} (if living) or {{birth date|1930|1|15}} (if dead). See Template:Birth date for details.'},
                {'title':'nascimento_local:', 'code':'birth_place', 'help':'Place of birth: city, administrative region, sovereign state.'},
                {'title':'morte_data:', 'code':'death_date', 'help':'Date of death: {{death date and age|1995|10|9|1930|1|15}} (if birth date is known) or {{death date|1995|10|9}} (if birth date unknown). See Template:Death date for details.'},
                {'title':'morte_local:', 'code':'morte_local', 'help':'Place of death: city, administrative region, sovereign state.'},
                {'title':'residência:', 'code':'residência ', 'help':'Place where the body was discovered (If different from place of death).'},
                {'title':'ocupação:', 'code':'ocupação', 'help':'Cause of death.'},
                {'title':'nacionalidade:', 'code':'nacionalidade', 'help':'Place of burial, ash-scattering, etc.'},
                {'title':'influências:', 'code':'influências', 'help':'Coordinates for place of burial, ash-scattering etc. Use {{coord}} template.'},
                {'title':'influenciados:', 'code':'influenciados', 'help':'Location(s) where the person notably resides/resided, if different from birth place.'},
                {'title':'prémios:', 'code':'prémios', 'help':'Nationality. May be used instead of citizenship (below) or vice versa in cases where any confusion could result. Should only be used with citizenship when they somehow differ.'},
                {'title':'principais_trabalhos:', 'code':'principais_trabalhos', 'help':'Other notable names for the person, if different from name and birth_name.'},
 
            ],
        'Info/Bio adulto': [ { 'prepend':'{{Info/Bio adulto', 'append':'}}', 'description':'' },
                {'title':'nome:', 'code':'nome', 'help':'The website\'s most recognised name.'},
                {'title':'imagem:', 'code':'imagem', 'help':'The website logo.'},
                {'title':'imagem_legenda:', 'code':'imagem_legenda', 'help':'A screenshot of the entire homepage'},
                {'title':'nascimento_data:', 'code':'nascimento_data', 'help':'Caption saying screenshot of <website> name as of <date>'},
                {'title':'nascimento_local:', 'code':'nascimento_local', 'help':'The most used URL of the website, use Alexa to find the most used URL, e.g. http://www.wikipedia.org/ (required)'},
                {'title':'nome de nascimento :', 'code':'nome de nascimento ', 'help':'The website\'s current Alexa ranking (find on Alexa.com; make sure to cite Alexa\'s page for this info)'},
                {'title':'signo:', 'code':'signo', 'help':'The type of website, search for similar sites for an idea. (required)'},
                {'title':'nacionalidade:', 'code':'nacionalidade', 'help':'The language(s) the website is available in'},
                {'title':'morte_data:', 'code':'morte_data', 'help':'Is there registration, none/optional/required?'},
                {'title':'morte_local :', 'code':'morte_local', 'help':'The current owner, company name/persons name/alias etc (required)'},
                {'title':'medidas:', 'code':'medidas', 'help':'The person or entity that originally created the website (required)'},
                {'title':'altura:', 'code':'altura', 'help':'When the website was launched, consider using the WHOIS data as a last resort if you are unable to determine the launch date.'},
                {'title':'peso:', 'code':'peso', 'help':'Is the site online/offline/sold etc'},
                {'title':'tatuagem:', 'code':'tatuagem', 'help':'The approximate revenue of the site.'},
                {'title':'piercing:', 'code':'piercing', 'help':'The slogan of the website, e.g. "the free encyclopedia that anyone can edit."'},
                {'title':'olhos:', 'code':'olhos', 'help':'The slogan of the website, e.g. "the free encyclopedia that anyone can edit."'},
                {'title':'cabelo:', 'code':'cabelo', 'help':'The slogan of the website, e.g. "the free encyclopedia that anyone can edit."'},
                {'title':'cor de pele:', 'code':'cor de pele', 'help':'The slogan of the website, e.g. "the free encyclopedia that anyone can edit."'},
                {'title':'orientação sexual:', 'code':'orientação sexual', 'help':'The slogan of the website, e.g. "the free encyclopedia that anyone can edit."'},
                {'title':'etnia:', 'code':'etnia', 'help':'The slogan of the website, e.g. "the free encyclopedia that anyone can edit."'},
                {'title':'nomes artísticos:', 'code':'nomes artísticos', 'help':'The slogan of the website, e.g. "the free encyclopedia that anyone can edit."'},
                {'title':'ano de estreia:', 'code':'ano de estreia', 'help':'The slogan of the website, e.g. "the free encyclopedia that anyone can edit."'},
                {'title':'filmes:', 'code':'filmes', 'help':'The slogan of the website, e.g. "the free encyclopedia that anyone can edit."'},
                {'title':'homepage:', 'code':'homepage', 'help':'The slogan of the website, e.g. "the free encyclopedia that anyone can edit."'},
                {'title':'iafd:', 'code':'iafd', 'help':'The slogan of the website, e.g. "the free encyclopedia that anyone can edit."'},
                {'title':'imdb:', 'code':'imdb', 'help':'The slogan of the website, e.g. "the free encyclopedia that anyone can edit."'},
                {'title':'afdb:', 'code':'afdb', 'help':'The slogan of the website, e.g. "the free encyclopedia that anyone can edit."'},
            ],
        'Info/Evento de MMA' : [ { 'prepend':'{{Info/Evento de MMA', 'append':'}}', 'description':'' },
                {'title':'nome :', 'code':'nome', 'help':''},
                {'title':'imagem:', 'code':'imagem', 'help':'Book name. If whole parameter is omitted, inherited from page title.'},
                {'title':'imagem_tamanho:', 'code':'imagem_tamanho', 'help':'Original title, if not in English'},
                {'title':'promoção:', 'code':'promoção', 'help':'Translator(s), if original not in English'},
                {'title':'data:', 'code':'data', 'help':'Image (prefer 1st edition - where permitted)'},
                {'title':'local:', 'code':'local', 'help':'Image caption (should describe the edition used)'},
                {'title':'cidade', 'code':'cidade', 'help':'Author(s)'},
                {'title':'publico:', 'code':'publico', 'help':'Illustrator (where used throughout and a major feature)'},
                {'title':'arrecadado:', 'code':'arrecadado', 'help':'Cover artist'},
                {'title':'bolsa:', 'code':'bolsa', 'help':'Country of original publication'},
                {'title':'anterior:', 'code':'anterior', 'help':'Language of original book (see note)'},
                {'title':'posterior:', 'code':'posterior', 'help':'Series (if any)'},
 
 
            ],
                'Info/LutadorMMA' : [ { 'prepend':'{{Info/LutadorMMA', 'append':'}}', 'description':'' },
                {'title':'nome :', 'code':'nome', 'help':''},
                {'title':'imagem:', 'code':'imagem', 'help':'Book name. If whole parameter is omitted, inherited from page title.'},
                {'title':'Apelido:', 'code':'Apelido', 'help':'Original title, if not in English'},
                {'title':'promoção:', 'code':'promoção', 'help':'Translator(s), if original not in English'},
                {'title':'Altura:', 'code':'Peso', 'help':'Image (prefer 1st edition - where permitted)'},
                {'title':'Data de Nascimento:', 'code':'Data de Nascimento', 'help':'Image caption (should describe the edition used)'},
                {'title':'Nacionalidade', 'code':'Nacionalidade', 'help':'Author(s)'},
                {'title':'Cidade Natal:', 'code':'Cidade Natal', 'help':'Illustrator (where used throughout and a major feature)'},
                {'title':'Modalidade:', 'code':'Modalidade', 'help':'Cover artist'},
                {'title':'Equipe/Associação:', 'code':'Equipe/Associação', 'help':'Country of original publication'},
                {'title':'Faixa:', 'code':'Faixa', 'help':'Language of original book (see note)'},
                {'title':'Total:', 'code':'Total', 'help':'Series (if any)'},
                {'title':'Vitórias:', 'code':'Vitórias', 'help':'Subject or subjects (only use for non-fiction)'},
                {'title':'Nocaute:', 'code':'Nocaute', 'help':'Subject or subjects (only use for non-fiction)'},     
                {'title':'Finalização:', 'code':'Finalização', 'help':'Subject or subjects (only use for non-fiction)'},
                {'title':'Decisão:', 'code':'Decisão', 'help':'Subject or subjects (only use for non-fiction)'},
                {'title':'Outros:', 'code':'Outros', 'help':'Subject or subjects (only use for non-fiction)'},
                {'title':'Derrotas:', 'code':'Derrotas', 'help':'Subject or subjects (only use for non-fiction)'},
                {'title':'Derrota-Nocaute:', 'code':'Derrota-Nocaute', 'help':'Subject or subjects (only use for non-fiction)'},
                {'title':'Derrota-Finalização:', 'code':'Derrota-Finalização', 'help':'Subject or subjects (only use for non-fiction)'},
                {'title':'Derrota-Decisão:', 'code':'Derrota-Decisão', 'help':'Subject or subjects (only use for non-fiction)'}, 
                {'title':'Derrota-Outros:', 'code':'Derrota-Outros', 'help':'Subject or subjects (only use for non-fiction)'},
                {'title':'Empate:', 'code':'Empate', 'help':'Subject or subjects (only use for non-fiction)'},
                {'title':'Sem Resultado:', 'code':'Sem Resultado', 'help':'Subject or subjects (only use for non-fiction)'},
                {'title':'sherdog:', 'code':'sherdog', 'help':'Subject or subjects (only use for non-fiction)'},
                {'title':'fcf:', 'code':'fcf', 'help':'Subject or subjects (only use for non-fiction)'},
            ],
              'Info/Filme Adulto' : [ {'prepend':'{{Info/Filme Adulto', 'append':'}}', 'description':'' },
                {'title':'nome:', 'code':'nome', 'help':''},
                {'title':'imagem:', 'code':'imagem', 'help':'Book name. If whole parameter is omitted, inherited from page title.'},
                {'title':'ano:', 'code':'ano', 'help':'Original title, if not in English'},
                {'title':'cor-pb:', 'code':'cor-pb', 'help':'Translator(s), if original not in English'},
                {'title':'duração:', 'code':'duração', 'help':'Image (prefer 1st edition - where permitted)'},
                {'title':'direção:', 'code':'direção', 'help':'Image caption (should describe the edition used)'},
                {'title':'elenco:', 'code':'elenco', 'help':'Illustrator (where used throughout and a major feature)'},
                {'title':'gênero:', 'code':'gênero', 'help':'Cover artist'},
                {'title':'idioma:', 'code':'idioma', 'help':'Country of original publication'},
                {'title':'estúdio:', 'code':'estúdio', 'help':'Language of original book (see note)'},
                {'title':'lançamento:', 'code':'lançamento', 'help':'Series (if any)'},
                {'title':'precedido_por:', 'code':'precedido_por', 'help':'Subject or subjects (only use for non-fiction)'},
                {'title':'seguido_por:', 'code':'seguido_por', 'help':'Genre or genres (only use for fiction)'},
        ],
              'Info/Single' : [ {'prepend':'{{Info/Single', 'append':'}}', 'description':'' },
                {'title':'nome:', 'code':'nome', 'help':''},
                {'title':'artista:', 'code':'artista', 'help':'Book name. If whole parameter is omitted, inherited from page title.'},
                {'title':'álbum:', 'code':'álbum', 'help':'Original title, if not in English'},
                {'title':'lançado:', 'code':'lançado', 'help':'Translator(s), if original not in English'},
                {'title':'formato:', 'code':'formato', 'help':'Image (prefer 1st edition - where permitted)'},
                {'title':'B-side:', 'code':'B-side', 'help':'Image caption (should describe the edition used)'},
                {'title':'gravado:', 'code':'gravado', 'help':'Illustrator (where used throughout and a major feature)'},
                {'title':'gênero:', 'code':'gênero', 'help':'Cover artist'},
                {'title':'duração:', 'code':'duração', 'help':'Country of original publication'},
                {'title':'gravadora:', 'code':'gravadora', 'help':'Language of original book (see note)'},
                {'title':'compositor:', 'code':'compositor', 'help':'Series (if any)'},
                {'title':'crítica:', 'code':'crítica', 'help':'Subject or subjects (only use for non-fiction)'},
                {'title':'produtor:', 'code':'produtor', 'help':'Genre or genres (only use for fiction)'}, 
                {'title':'último single:', 'code':'último single', 'help':'Genre or genres (only use for fiction)'},
                {'title':'este single:', 'code':'este single', 'help':'Genre or genres (only use for fiction)'},
                {'title':'próximo single :', 'code':'próximo single', 'help':'Genre or genres (only use for fiction)'},
        ],
          'Info/Álbum' : [ {'prepend':'{{Info/Álbum', 'append':'}}', 'description':'' },
                {'title':'nome:', 'code':'nome', 'help':''},
                {'title':'tipo:', 'code':'tipo', 'help':'Book name. If whole parameter is omitted, inherited from page title.'},
                {'title':'álbum:', 'code':'álbum', 'help':'Original title, if not in English'},
                {'title':'imagem:', 'code':'imagem', 'help':'Translator(s), if original not in English'},
                {'title':'tamanho_imagem:', 'code':'tamanho_imagem', 'help':'Image (prefer 1st edition - where permitted)'},
                {'title':'imagem_legenda:', 'code':'imagem_legenda', 'help':'Image caption (should describe the edition used)'},
                {'title':'artista:', 'code':'artista', 'help':'Illustrator (where used throughout and a major feature)'},
                {'title':'lançado:', 'code':'lançado', 'help':'Cover artist'},
                {'title':'gravado :', 'code':'gravado', 'help':'Country of original publication'},
                {'title':'gênero:', 'code':'gênero', 'help':'Language of original book (see note)'},
                {'title':'duração:', 'code':'duração', 'help':'Series (if any)'},
                {'title':'idioma:', 'code':'idioma', 'help':'Subject or subjects (only use for non-fiction)'},
                {'title':'formato:', 'code':'formato', 'help':'Genre or genres (only use for fiction)'}, 
                {'title':'gravadora:', 'code':'gravadora', 'help':'Genre or genres (only use for fiction)'},
                {'title':'diretor:', 'code':'diretor', 'help':'Genre or genres (only use for fiction)'},
                {'title':'produtor:', 'code':'produtor', 'help':'Genre or genres (only use for fiction)'},
                {'title':'arranjador:', 'code':'arranjador', 'help':'Genre or genres (only use for fiction)'},
                {'title':'certificação :', 'code':'certificação', 'help':'Genre or genres (only use for fiction)'},
                {'title':'vídeo clipes:', 'code':'vídeo clipes', 'help':'Genre or genres (only use for fiction)'},
                {'title':'cronologia:', 'code':'cronologia', 'help':'Genre or genres (only use for fiction)'}, 
                {'title':'último álbum:', 'code':'último álbum', 'help':'Genre or genres (only use for fiction)'},
                {'title':'este álbum:', 'code':'este álbum', 'help':'Genre or genres (only use for fiction)'},
                {'title':'próximo álbum:', 'code':'próximo álbum', 'help':'Genre or genres (only use for fiction)'},  
                {'title':'miscelâneo:', 'code':'miscelâneo', 'help':'Genre or genres (only use for fiction)'}, 
        ],
         'Info/Serial Killer' : [ {'prepend':'{{Info/Serial Killer', 'append':'}}', 'description':'' },
                {'title':'nome:', 'code':'nome', 'help':''},
                {'title':'imagem:', 'code':'imagem', 'help':'Book name. If whole parameter is omitted, inherited from page title.'},
                {'title':'imagem_tamanho:', 'code':'imagem_tamanho', 'help':'Original title, if not in English'},
                {'title':'descrição:', 'code':'descrição', 'help':'Translator(s), if original not in English'},
                {'title':'nome_denascimento:', 'code':'nome_denascimento', 'help':'Image (prefer 1st edition - where permitted)'},
                {'title':'outro_nome:', 'code':'outro_nome', 'help':'Image caption (should describe the edition used)'},
                {'title':'nascimento_data:', 'code':'nascimento_data', 'help':'Illustrator (where used throughout and a major feature)'},
                {'title':'nascimento_local:', 'code':'nascimento_local', 'help':'Cover artist'},
                {'title':'nacionalidade:', 'code':'nacionalidade', 'help':'Country of original publication'},
                {'title':'morte_data:', 'code':'morte_data', 'help':'Language of original book (see note)'},
                {'title':'morte_local:', 'code':'morte_local', 'help':'Series (if any)'},
                {'title':'condenação:', 'code':'condenação', 'help':'Subject or subjects (only use for non-fiction)'},
                {'title':'sentença:', 'code':'sentença', 'help':'Genre or genres (only use for fiction)'}, 
                {'title':'vitimas:', 'code':'vitimas', 'help':'Genre or genres (only use for fiction)'},
 
        ],
         'Info/Ator' : [ {'prepend':'{{Info/Ator', 'append':'}}', 'description':'' },
                {'title':'nome:', 'code':'nome', 'help':''},
                {'title':'ocupação:', 'code':'ocupação', 'help':''},
                {'title':'imagem:', 'code':'imagem', 'help':'Book name. If whole parameter is omitted, inherited from page title.'},
                {'title':'imagem_tamanho:', 'code':'imagem_tamanho', 'help':'Original title, if not in English'},
                {'title':'descrição:', 'code':'descrição', 'help':'Translator(s), if original not in English'},
                {'title':'nome_denascimento:', 'code':'nome_denascimento', 'help':'Image (prefer 1st edition - where permitted)'},
                {'title':'outro_nome:', 'code':'outro_nome', 'help':'Image caption (should describe the edition used)'},
                {'title':'nascimento_data:', 'code':'nascimento_data', 'help':'Dia em que nasceu '},
                {'title':'nascimento_local:', 'code':'nascimento_local', 'help':'Cover artist'},
                {'title':'nacionalidade:', 'code':'nacionalidade', 'help':'Country of original publication'},
                {'title':'morte_data:', 'code':'morte_data', 'help':'Language of original book (see note)'},
                {'title':'morte_local:', 'code':'morte_local', 'help':'Series (if any)'},
                {'title':'altura:', 'code':'altura', 'help':'Subject or subjects (only use for non-fiction)'},
                {'title':'cônjuge:', 'code':'cônjuge', 'help':'Genre or genres (only use for fiction)'}, 
                {'title':'atividade:', 'code':'atividade', 'help':'Genre or genres (only use for fiction)'},
                {'title':'oscares_academia:', 'code':'oscares_academia', 'help':'Genre or genres (only use for fiction)'},
                {'title':'emmy:', 'code':'emmy', 'help':'Genre or genres (only use for fiction)'},
                {'title':'tony:', 'code':'tony', 'help':'Genre or genres (only use for fiction)'},
                {'title':'goldenglobe:', 'code':'goldenglobe', 'help':'Genre or genres (only use for fiction)'},
                {'title':'sag_awards:', 'code':'sag_awards', 'help':'Genre or genres (only use for fiction)'},
                {'title':'cannes:', 'code':'cannes', 'help':'Genre or genres (only use for fiction)'},
                {'title':'cesar:', 'code':'cesar', 'help':'Genre or genres (only use for fiction)'},
                {'title':'BAFTA:', 'code':'BAFTA', 'help':'Genre or genres (only use for fiction)'},
                {'title':'urso:', 'code':'urso', 'help':'Genre or genres (only use for fiction)'},
                {'title':'outros_prêmios:', 'code':'outros_prêmios', 'help':'Genre or genres (only use for fiction)'},
                {'title':'indicações:', 'code':'indicações', 'help':'Genre or genres (only use for fiction)'},
                {'title':'site_oficial:', 'code':'site_oficial', 'help':'Genre or genres (only use for fiction)'},
                {'title':'IMDB_id:', 'code':'IMDB_id', 'help':'Genre or genres (only use for fiction)'},
                {'title':'assinatura:', 'code':'assinatura', 'help':'Genre or genres (only use for fiction)'},
        ],
                'Info/Música/artista' : [ {'prepend':'{{Info/Música/artista', 'append':'}}', 'description':'' },
                {'title':'nome:', 'code':'nome', 'help':''},
                {'title':'imagem:', 'code':'imagem', 'help':'Book name. If whole parameter is omitted, inherited from page title.'},
                {'title':'imagem_tamanho:', 'code':'imagem_tamanho', 'help':'Original title, if not in English'},
                {'title':'imagem_legenda:', 'code':'imagem_legenda', 'help':'Translator(s), if original not in English'},
                {'title':'fundo:', 'code':'fundo', 'help':'Translator(s), if original not in English'},
                {'title':'nome completo:', 'code':'nome completo', 'help':'Translator(s), if original not in English'},
                {'title':'apelido:', 'code':'apelido', 'help':'Translator(s), if original not in English'},
                {'title':'nascimento_data:', 'code':'nascimento_data', 'help':'Dia em que nasceu '},
                {'title':'nascimento_cidade:', 'code':'nascimento_cidade', 'help':'Cover artist'},
                {'title':'nascimento_país:', 'code':'nascimento_país', 'help':'Country of original publication'},
                {'title':'origem:', 'code':'origem', 'help':'Country of original publication'},
                {'title':'morte_data:', 'code':'morte_data', 'help':'Language of original book (see note)'},
                {'title':'morte_local:', 'code':'morte_local', 'help':'Series (if any)'},
                {'title':'gênero:', 'code':'gênero', 'help':'Subject or subjects (only use for non-fiction)'},
                {'title':'ocupação:', 'code':'ocupação', 'help':'Genre or genres (only use for fiction)'}, 
                {'title':'instrumento:', 'code':'instrumento', 'help':'Genre or genres (only use for fiction)'},
                {'title':'modelos:', 'code':'modelos', 'help':'Genre or genres (only use for fiction)'},
                {'title':'tipo vocal:', 'code':'tipo vocal', 'help':'Genre or genres (only use for fiction)'},
                {'title':'período:', 'code':'período', 'help':'Genre or genres (only use for fiction)'},
                {'title':'outras ocupações:', 'code':'outras ocupações', 'help':'Genre or genres (only use for fiction)'},
                {'title':'gravadora:', 'code':'gravadora', 'help':'Genre or genres (only use for fiction)'},
                {'title':'afiliações:', 'code':'afiliações', 'help':'Genre or genres (only use for fiction)'},
                {'title':'influências:', 'code':'influências', 'help':'Genre or genres (only use for fiction)'},
                {'title':'influenciados:', 'code':'influenciados', 'help':'Genre or genres (only use for fiction)'},
                {'title':'integrantes:', 'code':'integrantes', 'help':'Genre or genres (only use for fiction)'},
                {'title':'exintegrantes:', 'code':'exintegrantes', 'help':'Genre or genres (only use for fiction)'},
                {'title':'assinatura:', 'code':'assinatura', 'help':'Genre or genres (only use for fiction)'},
                {'title':'website:', 'code':'website', 'help':'Genre or genres (only use for fiction)'},
 
        ],
                'Info/Filme' : [ {'prepend':'{{Info/Filme', 'append':'}}', 'description':'' },
                {'title':'nome:', 'code':'nome', 'help':''},
                {'title':'título-br:', 'code':'título-br', 'help':'Original title, if not in English'},
                {'title':'título-pt:', 'code':'título-pt', 'help':'Original title, if not in English'},
                {'title':'imagem:', 'code':'imagem', 'help':'Book name. If whole parameter is omitted, inherited from page title.'},
                {'title':'imagem_tamanho:', 'code':'imagem_tamanho', 'help':'Original title, if not in English'},
                {'title':'imagem_legenda:', 'code':'imagem_legenda', 'help':'Original title, if not in English'},
                {'title':'país:', 'code':'país', 'help':'Original title, if not in English'},
                {'title':'ano:', 'code':'ano', 'help':'Original title, if not in English'},
                {'title':'cor-pb:', 'code':'cor-pb', 'help':'Translator(s), if original not in English'},
                {'title':'duração:', 'code':'duração', 'help':'Image (prefer 1st edition - where permitted)'},
                {'title':'direção:', 'code':'direção', 'help':'Image caption (should describe the edition used)'},
                {'title':'elenco:', 'code':'elenco', 'help':'Illustrator (where used throughout and a major feature)'},
                {'title':'gênero:', 'code':'gênero', 'help':'Cover artist'},
                {'title':'idioma:', 'code':'idioma', 'help':'Country of original publication'},
                {'title':'estúdio:', 'code':'estúdio', 'help':'Language of original book (see note)'},
                {'title':'lançamento:', 'code':'lançamento', 'help':'Series (if any)'},
                {'title':'produção:', 'code':'produção', 'help':'Subject or subjects (only use for non-fiction)'},
                {'title':'roteiro:', 'code':'roteiro', 'help':'Genre or genres (only use for fiction)'},
        ],
                'Info/Personagem fictícia' : [ {'prepend':'{{Info/Personagem fictícia', 'append':'}}', 'description':'' },
                {'title':'nome:', 'code':'nome', 'help':''},
                {'title':'cor:', 'code':'cor', 'help':''},
                {'title':'imagem:', 'code':'imagem', 'help':'Book name. If whole parameter is omitted, inherited from page title.'},
                {'title':'legenda:', 'code':'legenda', 'help':'Original title, if not in English'},
                {'title':'obra:', 'code':'obra', 'help':'Translator(s), if original not in English'},
                {'title':'origem:', 'code':'origem', 'help':'Image (prefer 1st edition - where permitted)'},
                {'title':'sexo:', 'code':'sexo', 'help':'Image caption (should describe the edition used)'},
                {'title':'nascimento:', 'code':'nascimento', 'help':'Dia em que nasceu '},
                {'title':'falecimento:', 'code':'falecimento', 'help':'Cover artist'},
                {'title':'espécie:', 'code':'espécie', 'help':'Country of original publication'},
                {'title':'características:', 'code':'características', 'help':'Language of original book (see note)'},
                {'title':'amigo:', 'code':'amigo', 'help':'Series (if any)'},
                {'title':'aliás:', 'code':'aliás', 'help':'Subject or subjects (only use for non-fiction)'},
                {'title':'nome org:', 'code':'nome org', 'help':'Genre or genres (only use for fiction)'}, 
                {'title':'atividade:', 'code':'atividade', 'help':'Genre or genres (only use for fiction)'},
                {'title':'inimigo:', 'code':'inimigo', 'help':'Genre or genres (only use for fiction)'},
                {'title':'criador:', 'code':'criador', 'help':'Genre or genres (only use for fiction)'},
                {'title':'série:', 'code':'série', 'help':'Genre or genres (only use for fiction)'},
                {'title':'álbum:', 'code':'álbum', 'help':'Genre or genres (only use for fiction)'},
                {'title':'primeira aparição:', 'code':'primeira aparição', 'help':'Genre or genres (only use for fiction)'},
                {'title':'editor:', 'code':'editor', 'help':'Genre or genres (only use for fiction)'},
 
        ],
                'Info/Futebolista' : [ { 'prepend':'{{Info/Futebolista', 'append':'}}', 'description':'' },
                {'title':'apelido:', 'code':'apelido', 'help':'Common name of person (defaults to article name if left blank; provide birth_name (below) if different from name).'},
                 {'title':'nome:', 'code':'nome', 'help':'Common name of person (defaults to article name if left blank; provide birth_name (below) if different from name).'},
                {'title':'imagem:', 'code':'imagem', 'help':'Image name: abc.jpg, xpz.png, 123.gif, etc. If an image is desired but not available, one may add "yes" to the "needs-photo" section of the Template:WPBiography on the talkpage. Do not use Image:Replace this image male.svg, Image:Replace this image female.svg or other placeholder images; the proposal to use such placeholders has been rejected by the community.'},
                {'title':'imagem_tamanho:', 'code':'imagem_tamanho', 'help':'Size to display image: 200px (set width), or 200x300px (max width & max height). This defaults to 225px if empty or omitted.'},
                {'title':'imagem_legenda:', 'code':'imagem_legenda', 'help':'Caption for image, if needed. Try to include date of photo and the photographer.'},
                {'title':'nomecompleto:', 'code':'nomecompleto', 'help':'Name at birth, if different from name.'},
                {'title':'nascimento_data:', 'code':'nascimento_data', 'help':'Date of birth: {{birth date and age|1930|1|15}} (if living) or {{birth date|1930|1|15}} (if dead). See Template:Birth date for details.'},
                {'title':'nascimento_cidade:', 'code':'birth_place', 'help':'Place of birth: city, administrative region, sovereign state.'},
                {'title':'nascimento_país:', 'code':'nascimento_país', 'help':'Place where the body was discovered (If different from place of death).'},
                {'title':'altura:', 'code':'altura', 'help':'Cause of death.'},
                {'title':'nacionalidade:', 'code':'nacionalidade', 'help':'Place of burial, ash-scattering, etc.'},
                {'title':'peso:', 'code':'peso', 'help':'Coordinates for place of burial, ash-scattering etc. Use {{coord}} template.'},
                {'title':'pé:', 'code':'pé', 'help':'Location(s) where the person notably resides/resided, if different from birth place.'},
                {'title':'atividade:', 'code':'atividade', 'help':'Nationality. May be used instead of citizenship (below) or vice versa in cases where any confusion could result. Should only be used with citizenship when they somehow differ.'},
                {'title':'actualclube:', 'code':'actualclube', 'help':'Other notable names for the person, if different from name and birth_name.'},
                {'title':'actualclube:', 'code':'actualclube', 'help':'Other notable names for the person, if different from name and birth_name.'},
                {'title':'clubenumero:', 'code':'clubenumero', 'help':'Other notable names for the person, if different from name and birth_name.'},
                {'title':'posição:', 'code':'posição', 'help':'Other notable names for the person, if different from name and birth_name.'},
                {'title':'jovemanos:', 'code':'jovemanos', 'help':'Other notable names for the person, if different from name and birth_name.'},
                {'title':'jovemclubes:', 'code':'jovemclubes', 'help':'Other notable names for the person, if different from name and birth_name.'},
                {'title':'ano:', 'code':'ano', 'help':'Other notable names for the person, if different from name and birth_name.'},
                {'title':'clubes:', 'code':'clubes', 'help':'Other notable names for the person, if different from name and birth_name.'},
                {'title':'jogos(golos):', 'code':'jogos(golos)', 'help':'Other notable names for the person, if different from name and birth_name.'},
                {'title':'anoselecao:', 'code':'anoselecao', 'help':'Other notable names for the person, if different from name and birth_name.'},
                {'title':'selecaonacional:', 'code':'selecaonacional', 'help':'Other notable names for the person, if different from name and birth_name.'},
                {'title':'partidasselecao:', 'code':'partidasselecao', 'help':'Other notable names for the person, if different from name and birth_name.'},
                {'title':'pcupdate:', 'code':'pcupdate', 'help':'Other notable names for the person, if different from name and birth_name.'},
                {'title':'tupdate:', 'code':'tupdate', 'help':'Other notable names for the person, if different from name and birth_name.'},
                {'title':'ntupdate:', 'code':'ntupdate', 'help':'Other notable names for the person, if different from name and birth_name.'},
 
            ],
             'Info/Monarca' : [ { 'prepend':'{{Info/Monarca', 'append':'}}', 'description':'' },
                {'title':'nome:', 'code':'nome', 'help':'Nome do monarca.'},
                {'title':'<strong>título:</strong>', 'code':'título', 'help':'título.'},
                {'title':'imagem:', 'code':'imagem', 'help':'an image for the warbox.  The image must be given in the form [[Image:Example.jpg|300px]]; in particular, the thumb attribute must not be selected.'},
                {'title':'legenda', 'code':'legenda', 'help':'legenda.'},
                {'title':'reinado', 'code':'reinado', 'help':'{{Data|ano|mês|dia}} - {{Data|a|m|d}}.'},
                {'title':'coroação:', 'code':'coroação', 'help':'the text to be placed below the image.'},
                {'title':'outrostítulos:', 'code':'outrostítulos', 'help':'outrostítulos.'},
                {'title':'nome completo:', 'code':'nome completo', 'help':'nome completo.'},
                {'title':'suc-tipo:', 'code':'suc-tipo', 'help':'the location of the structure, given as a coordinate pair by using {{tl|coord}} with display=inline,title.'},
                {'title':'antecessor:', 'code':'antecessor', 'help':'for ongoing conflicts, the current status of the conflict.  This should not be used if a final result (above) is provided.'},
                {'title':'sucessor:', 'code':'sucessor', 'help':'sucessor.'},
                {'title':'herdeiro:', 'code':'herdeiro', 'help':'any changes in territorial control as a result of the conflict; this should not be used for overly lengthy descriptions of the peace settlement.'},
                {'title':'rainha:', 'code':'rainha', 'help':'any changes in territorial control as a result of the conflict; this should not be used for overly lengthy descriptions of the peace settlement.'},
                {'title':'consorte:', 'code':'consorte', 'help':'any changes in territorial control as a result of the conflict; this should not be used for overly lengthy descriptions of the peace settlement.'},
                {'title':'esposa 1:', 'code':'esposa 1', 'help':'any changes in territorial control as a result of the conflict; this should not be used for overly lengthy descriptions of the peace settlement.'},
               {'title':'esposa 2:', 'code':'esposa 2', 'help':'any changes in territorial control as a result of the conflict; this should not be used for overly lengthy descriptions of the peace settlement.'},
               {'title':'esposa 3:', 'code':'esposa 3', 'help':'any changes in territorial control as a result of the conflict; this should not be used for overly lengthy descriptions of the peace settlement.'},
               {'title':'esposa 4:', 'code':'esposa 4', 'help':'any changes in territorial control as a result of the conflict; this should not be used for overly lengthy descriptions of the peace settlement.'},
               {'title':'filhos:', 'code':'filhos', 'help':'any changes in territorial control as a result of the conflict; this should not be used for overly lengthy descriptions of the peace settlement.'},
               {'title':'casa real:', 'code':'casa real', 'help':'any changes in territorial control as a result of the conflict; this should not be used for overly lengthy descriptions of the peace settlement.'},
               {'title':'dinastia:', 'code':'dinastia', 'help':'any changes in territorial control as a result of the conflict; this should not be used for overly lengthy descriptions of the peace settlement.'},
               {'title':'hino real:', 'code':'hino real', 'help':'any changes in territorial control as a result of the conflict; this should not be used for overly lengthy descriptions of the peace settlement.'},
               {'title':'pai:', 'code':'pai', 'help':'any changes in territorial control as a result of the conflict; this should not be used for overly lengthy descriptions of the peace settlement.'},
               {'title':'mãe:', 'code':'mãe', 'help':'any changes in territorial control as a result of the coflict; this should not be used for overly lengthy descriptions of the peace settlement.'},
               {'title':'nascimento:', 'code':'nascimento', 'help':'any changes in territorial control as a result of the conflict; this should not be used for overly lengthy descriptions of the peace settlement.'}, 
               {'title':'cidadenatal:', 'code':'cidadenatal', 'help':'cidadenatal.'},
               {'title':'morte:', 'code':'morte', 'help':'{{Falecimento|dia|mês|ano|dn|mn|an}}.'},
               {'title':'cidademorte:', 'code':'cidademorte', 'help':'cidademorte.'},
               {'title':'sepultamento:', 'code':'sepultamento', 'help':'{{Data|ano|mês|dia}}.'},
               {'title':'assinatura:', 'code':'assinatura', 'help':'assinatura.'},
            ],
               'Info/Criminoso' : [ {'prepend':'{{Info/Criminoso', 'append':'}}', 'description':'' },
                {'title':'nome:', 'code':'nome', 'help':''},
                {'title':'imagem:', 'code':'imagem', 'help':'Book name. If whole parameter is omitted, inherited from page title.'},
                {'title':'imagem_tamanho:', 'code':'imagem_tamanho', 'help':'Original title, if not in English'},
                {'title':'imagem_legenda:', 'code':'imagem_legenda', 'help':'Translator(s), if original not in English'},
                {'title':'nome_completo:', 'code':'nome_completo', 'help':'Image (prefer 1st edition - where permitted)'},
                {'title':'pseudônimo:', 'code':'pseudônimo', 'help':'Image caption (should describe the edition used)'},
                {'title':'nascimento_data:', 'code':'nascimento_data', 'help':'Illustrator (where used throughout and a major feature)'},
                {'title':'nascimento_local:', 'code':'nascimento_local', 'help':'Cover artist'},
                {'title':'nacionalidade:', 'code':'nacionalidade', 'help':'Country of original publication'},
                {'title':'morte_data:', 'code':'morte_data', 'help':'Language of original book (see note)'},
                {'title':'morte_local:', 'code':'morte_local', 'help':'Series (if any)'},
                {'title':'crime:', 'code':'crime', 'help':'Subject or subjects (only use for non-fiction)'},
                {'title':'pena:', 'code':'pena', 'help':'Genre or genres (only use for fiction)'}, 
                {'title':'status:', 'code':'status', 'help':'Genre or genres (only use for fiction)'},
 
        ],
                'Info/Político' : [ {'prepend':'{{Info/Político', 'append':'}}', 'description':'' },
                {'title':'nome:', 'code':'nome', 'help':''},
                {'title':'nome_alt:', 'code':'nome_alt', 'help':'Book name. If whole parameter is omitted, inherited from page title.'},
                {'title':'imagem:', 'code':'imagem', 'help':'Book name. If whole parameter is omitted, inherited from page title.'},
                {'title':'imagem_tamanho:', 'code':'imagem_tamanho', 'help':'Original title, if not in English'},
                {'title':'legenda:', 'code':'legenda', 'help':'Translator(s), if original not in English'},
                {'title':'título:', 'code':'título', 'help':'Image (prefer 1st edition - where permitted)'},
                {'title':'mandato:', 'code':'mandato', 'help':'Image caption (should describe the edition used)'},
                {'title':'antecessor:', 'code':'antecessor', 'help':'Illustrator (where used throughout and a major feature)'},
                {'title':'sucessor:', 'code':'sucessor', 'help':'Cover artist'},
                {'title':'nascimento_data:', 'code':'nascimento_data', 'help':'Country of original publication'},
                {'title':'morte_data:', 'code':'morte_data', 'help':'{{morte|19|4|1967|5|1|1876}}'},
                {'title':'morte_local:', 'code':'morte_local', 'help':'Series (if any)'},
                {'title':'nascimento_local:', 'code':'nascimento_local', 'help':'Subject or subjects (only use for non-fiction)'},
                {'title':'partido:', 'code':'partido', 'help':'Genre or genres (only use for fiction)'}, 
 
          ],
        'CompactTOC8' : [ { 'prepend':'{{CompactTOC8', 'append':'}}', 'description':'' },
                {'title':'Name:', 'code':'name', 'help':'change the heading to an alternative name instead of "Contents", or hide it completely by entering "no"'},
                {'title':'Side:', 'code':'side', 'help':'yes: put the "Contents" heading on the left side with a colon, instead of the top without one'},
                {'title':'Right:', 'code':'right', 'help':'yes: align the ToC horizontally to the right of the page (may require <br style="clear:right;" /> after it, depending on page layout), instead of floated left (this parameter is mutually exclusive with the "center" option above, and should be used sparingly and with good reason)'},
                {'title':'Center:', 'code':'center', 'help':'yes: center to ToC in the horizontal middle of the page, instead of floated left'},
                {'title':'Align:', 'code':'align', 'help':'sets the alignment of the links inside the table; default is left; use center, right or left'},
                {'title':'Nobreak:', 'code':'nobreak', 'help':'yes: no linebreak between the A-B-C-etc. stuff and the See also/References/etc. stuff (note: does not affect the heading; use side= for that)'},
                {'title':'Top:', 'code':'top', 'help':'yes: enable the "Top" link; this is only useful if this copy of the ToC is a secondary ToC not at the top of the page, e.g. in the middle of a long glossary. (Every rendered page has a hidden <a name="top" id="top"></a> above the sitenotice which makes this link work without having to do anything but enable it in the template.)'},
                {'title':'Sym:', 'code':'sym', 'help':'yes: enable the "!$@" link for symbolic entries section'},
                {'title':'Num:', 'code':'num', 'help':'yes: enable the "0–9" link for numeric entries section (create a heading of ==0&ndash;9== for the link to work)'},
                {'title':'Symnum:', 'code':'symnum', 'help':'yes: enable the "!–9" link for combined symbolic and numeric entries section (create a heading of ==!&ndash;9== for the link to work)'},
                {'title':'Sep:', 'code':'sep', 'help':'set the separator-text between word-headers (not between "ABCDEF") to "·"; could also be a vertical-bar or &bull; (•), etc.'},
                {'title':'Pre1:', 'code':'pre1', 'help':'list up to 8 extra section headers before (pre-list) the "ABCDEF" list. These appear as [[#pre1|pre1]].'},
                {'title':'Pre1link:', 'code':'pre1link', 'help':'modifies the targets of the pre-list headers: [[pre1link|pre1]].'},
                {'title':'Pre1name:', 'code':'pre1name', 'help':'modifies the way the pre-list section headers appear: [[#pre1|pre1name]]'},
                {'title':'Prebreak:', 'code':'prebreak', 'help':'<br>: set break-line after all pre-list headers; can include text to introduce "ABCDEF".'},
                {'title':'Custom1:', 'code':'custom1', 'help':'add up to 8 extra "custom" sections after the "ABCDEF" list. These appear as [[#custom1|custom1]].'},
                {'title':'Custom1link:', 'code':'custom1link', 'help':'modifies the targets of the custom sections: [[custom1link|custom1]]. Use this only for linking to another page. Use sparingly! About the only legitimate use for this is connecting the sub-pages of multi-page articles, like long lists that have been broken up. Do not repurpose the ToC as a makeshift navbox.'},
                {'title':'Custom1name:', 'code':'custom1name', 'help':'modifies the way the custom section headers appear: [[#custom1|custom1name]]'},
                {'title':'Seealso:', 'code':'seealso', 'help':'yes: enable link to the "See also" section'},
                {'title':'Notesfirst:', 'code':'notesfirst', 'help':'yes: enable link to the "Notes" section, but placed before "References"; do not use with notes (and do observe that it is plural)'},
                {'title':'Refs:', 'code':'refs', 'help':'yes: enable link to the "References" section (observe that it is plural)'},
                {'title':'Notes:', 'code':'notes', 'help':'yes: enable link to the "Notes" section (observe that it is plural)'},
                {'title':'Extlinks:', 'code':'extlinks', 'help':'enable link to the "External links" section'}
            ]
    };
}
if (smConfig['smCustomForms'] != 'undefined') {
	for (key in smConfig['smCustomForms']) {
		smConfig['smForms'][key] = smConfig['smCustomForms'][key];
	}
}
 
window.smRibbon = new Ribbon('smRibbon',{
	"Rows":"2",
	"defaultItemImage":"http://upload.wikimedia.org/wikipedia/commons/thumb/5/5a/Button_Icon_BlueSky.svg/10px-Button_Icon_BlueSky.svg.png",
	"MainClass":"HStrip",
	"GroupClass":"HStripB",
	"LeftClass":"HStripL",
	"CenterClass":"HStripP",
	"CenterImageClass":"HStripPC",
	"RightClass":"HStripR",
	"SingleClass":"HStripLR",
	"SelectedClass":"selected",
	"HoverClass":"hover",
	"ItemHoverClass":"hover",
	"GapClass":"HStripS",
	"MenuBarClass":"HMenuParent",
	"MenuClass":"HMenuItem",
	"onItem":"'smExecuteCode(\\'' + item.code + '\\',\\'' + item.value + '\\')'",
	"Menu":[
		{
			"Name":"Referências",
			"Groups":["Citações","Referências"],
			"show":"", "onShow":"", "onHide":"", "Default":"false"
		},
        {
            "Name":"Limpeza",
            "Groups":["Limpeza","Intro","Style"],
            "show":"", "onShow":"", "onHide":""
        },
        {
            "Name":"Infoboxes",
            "Groups":["Common"],
            "show":"", "onShow":"", "onHide":""
        },
        {
            "Name":"Listas",
            "Groups":["TOC"],
            "show":"", "onShow":"", "onHide":""
        }
		],
	"Groups":
		{
			"Citações": 
			{
				"Name":"Citações",
				"onClick":"",
				"Tabs": 
					[
						{
							"Image":"http://upload.wikimedia.org/wikipedia/en/thumb/9/99/Question_book-new.svg/35px-Question_book-new.svg.png",
							"Items":["Web","Livro","Entrevista","Periódico","Vídeo","Citar álbum","DOI Bot"],
                            "ItemCodes":["Citar web","Citar livro","Citar entrevista","Citar periódico","Citar vídeo","Citar álbum","doicite"]
						}
					]
			},
            "Referências":
            {
                "Name":"Referências",
                "onClick":"",
                "Tabs": [
                    {
                      "Items":["Sem-fontes","S-fontes","Sem notas","M-notas","Parcial","Fontes primárias","Publicidade","Não enciclopédico"],
                      "ItemCodes":["sem fontes","s-fontes","Sem notas","m-notas","parcial","Fontes primárias","publicidade","Não enciclopédico"]
                    }
                ]
            },
			"Limpeza": 
			{
				"Name":"Reciclagem",
				"onClick":"",
				"Tabs": 
					[
						{
                            "Image":"http://upload.wikimedia.org/wikipedia/commons/thumb/2/2c/Broom_icon.svg/35px-Broom_icon.svg.png",
							"Items":["Reciclagem","Corrigir"],
                            "ItemCodes":["reciclagem","corrigir"]
						}
					]
			},
			"Intro": 
			{
				"Name":"Intro",
				"onClick":"",
				"Tabs": 
					[
						{
							"Items":["Corrigir variante","Expandir","Contextualizar","Contextualizar2"],
                            "ItemCodes":["corrigir variante","expandir","contextualizar","contextualizar2"]
						}
					]
			},
            "Style":{
                "Name":"Style",
                "Tabs":[{
                        "Items":["Suspeito","Má introdução","F-referências","Revisão","Direitos-autorais"],
                        "ItemCodes":["Suspeito","Má introdução","F-referências","Revisão","Direitos-autorais"]
                }]
            },
            "Common":{
                "Name":"Common",
                "Tabs":[{
                    "Items":["Nobre", "Pessoa", "Adulto", "Evento de MMA", "Lutador de MMA",  "Filme Adulto", "Single", "Álbum", "Serial Killer", "Ator", "Artista", "Filme", "Personagem", "Futebolista", "Monarca", "Criminoso", "Político"],
                    "ItemCodes":["Info/Nobre", "Info/Biografia", "Info/Bio adulto", "Info/Evento de MMA", "Info/LutadorMMA", "Info/Filme Adulto", "Info/Single", "Info/Álbum", "Info/Serial Killer", "Info/Ator", "Info/Música/artista", "Info/Filme", "Info/Personagem fictícia", "Info/Futebolista", "Info/Monarca", "Info/Criminoso", "Info/Político"]
                }]
            },
            "TOC":{
                "Name":"TOC",
                "Tabs":[{
                    "Items":["CompactTOC8"],
                    "ItemCodes":["CompactTOC8"]
                }]
            }
		}
},'');
 
// Taken from [[Usuário:Willy Weazley/refToolbar.js]]
// All credit for this function goes to him
window.smGetTime = function() {
  var time = new Date();
  var nowdate = time.getUTCDate();
  if (nowdate<10) { nowdate = "0"+ nowdate.toString(); }
  var nowmonth = time.getUTCMonth()+1;
  if (nowmonth<10) { nowmonth = "0"+ nowmonth.toString(); }
  var nowyear = time.getUTCFullYear();
  newtime =  nowyear + '-' + nowmonth + '-' + nowdate;
  return (newtime);
}
 
window.smVisibleMenu = 0;
 
// Creates the menu on the page
function createMenu() {
  var toolbar = document.getElementById('toolbar');
  if (!toolbar)
    toolbar = document.getElementById('wikiEditor-ui-toolbar');
  if (toolbar) {
    // everything is added to the sm_panel
    var sm_panel = document.createElement('div');
    sm_panel.id = 'snipmanager-panel';
    //toolbar.insertBefore(sm_panel, toolbar.childNodes[0]);
    toolbar.appendChild(sm_panel);
 
	window.smFormPanel = document.createElement('div');
    smFormPanel.id = 'snipmanager-form-panel';
	smFormPanel.style.clear = 'both';
 
    var ribbonStrip = document.createElement('div');
    ribbonStrip.className = 'HStrip';
    var ribbonMenu = document.createElement('div');
    ribbonMenu.className = 'HMenu';
 
    sm_panel.appendChild(ribbonMenu);
    sm_panel.appendChild(ribbonStrip);
    sm_panel.appendChild(smFormPanel);    
 
    smRibbon.configuration.Menu[0].Default='true';
    smRibbon.Initialize(ribbonStrip,ribbonMenu);
    smRibbon.state = 'load';
    smRibbon.Render();
  }
}
 
// closes the form that calls it (called from the Close Form button)
window.smCloseForm = function(sender) {
    var formFieldSet = sender;
    while (formFieldSet.className != 'smForm')
        formFieldSet = formFieldSet.parentNode;
	formFieldSet.parentNode.removeChild(formFieldSet);
}
 
function smCompileTemplate(formFieldSet) {
	var templTable = formFieldSet.getElementsByTagName('table')[0];
	var inputs = templTable.getElementsByTagName('input');
 
	var formName = formFieldSet.formName;
	var form = smConfig['smForms'][formName];
 
	var insertText = new Array(form[0]['prepend']);
	for (var i in inputs) {
		var inp = inputs[i];
		if (inp.value && inp.value.length > 0) {
            if (inp.className == "%ref") {
                insertText[0] = insertText[0].replace(/<ref>/,'<ref name="' + inp.value + '">');
                continue;
            }
            insertText.push('|' + inp.className + '=' + inp.value);
		}
	}
	insertText.push(form[0]['append']);
    return insertText.join('');
}
 
function smInsertTags(insert_text) {
    if (typeof(wikEdUseWikEd) != 'undefined' && wikEdUseWikEd) {
        /* wikiEd's insertTags has bugs when inserting at the end of a line */
        insert_text = insert_text.replace(/&/g, '&amp;');
        insert_text = insert_text.replace(/</g, '&lt;');
        insert_text = insert_text.replace(/>/g, '&gt;');
        WikEdFrameExecCommand('inserthtml', insert_text);
    } else {
        insertTags(insert_text, '', '');
    }
}
 
// adds the template to the edit box using insertTags
// called from the add template button on the form
window.smAddTemplate = function(sender) {
    var formFieldSet = sender;
    while (formFieldSet.className != 'smForm')
        formFieldSet = formFieldSet.parentNode;
 
    var insert_text = smCompileTemplate(formFieldSet);
    smInsertTags(insert_text);
}
 
// compiles a template and displays an html preview
// called from the preview button on a form
window.smPreviewTemplate = function(sender) {
    var formFieldSet = sender;
    while (formFieldSet.className != 'smForm')
        formFieldSet = formFieldSet.parentNode;
    var formDivs = formFieldSet.getElementsByTagName('div');
    var previewDiv;
    for (var i = 0; i < formDivs.length; i++) {
        if (formDivs[i].className == 'formPreview') {
            previewDiv = formDivs[i];
            break;
        }
    }
    if (!previewDiv) {
        alert('No preview div found');
        return;
    }
    var templateCode = smCompileTemplate(formFieldSet);
    if (templateCode.indexOf('</ref>') != -1)
        templateCode = templateCode.replace(/<\/?ref.*?>/g, '');
    smWikiPreview(templateCode, function(content) { previewDiv.innerHTML = content; });
}
 
// Replaces %s tokens in a string with replacements
function sprintf(haystack, replacements) {
    for (var i = 1; i < replacements.length; i++) {
        var sub = eval(replacements[i]);
        haystack = haystack.replace('%s', sub);
    }
    return haystack;
}
 
// Called when a button is clicked
// code refers to a form or function
// and name is the name of the form displayed at the top of the form
window.smExecuteCode = function(code, name) {
	var form = smConfig['smForms'][code];
    if (!form || !form['length'] || form['length'] < 1) {
        return;
    }
    if (form[0]['inserttext']) {
        smInsertTags(form[0]['inserttext'], '', '');
    } else if (form[0]['httplink']) {
        window.open(form[0]['httplink']);
    } else if (form[0]['httpeval']) {
        var url = sprintf(form[0]['httpeval'][0], form[0]['httpeval']);
        window.open(url);
    } else if (form[0]['inserteval']) {
        var text = sprintf(form[0]['inserteval'][0], form[0]['inserteval']);
        smInsertTags(text, '', '');
    } else if (form[0]['evaluate']) {
        eval(form[0]['evaluate']);
    } else {
        smShowForm(code, name);
    }
}
 
// Display a template form in the div
window.smShowForm = function(formName, title) {
    // If the smSingleForm option is set, close all previously open forms
    if (smConfig['smSingleForm']) {
        for (var i = 0; i < smFormPanel.childNodes.length; i++) {
            smFormPanel.removeChild(smFormPanel.childNodes[i]);
        }
    }
 
    // Creates a fieldset and adds it to the form panel
    var form = smConfig['smForms'][formName];
	var formFields = smGetFormFields(form);
 
	var fieldSet = document.createElement('fieldset');
    fieldSet.formName = formName;
    smFormPanel.appendChild(fieldSet);
    var legend = document.createElement('legend');
    fieldSet.appendChild(legend);
    fieldSet.className = 'smForm'; //class is used to find the fieldset by
                                   // crawling up from a button node
    legend.innerHTML = '<a href="http://pt.wikipedia.org/wiki/Wikipédia:Predefinições:'+formName+'" target="_blank">'+title+'</a>';
 
    if (typeof(form[0]['description']) != 'undefined') {
        var formDesc = document.createElement('div');
        formDesc.innerHTML = form[0]['description'];
        fieldSet.appendChild(formDesc);
    }
 
    // Creates the table for all the text fields
    var table = document.createElement('table');
	table.cellspacing = 5;
    fieldSet.appendChild(table);
 
	var maxcols = smConfig['smColumns'];
 
	var col = 99;
	var currentTr = 0;
 
    // loop creates the table cells going from left to right maxcols
    // and then top to bottom
	for (var i = 0; i < formFields.length; i++) {
		if (col++ >= maxcols) {
			col = 1;
			currentTr = document.createElement('tr');
			table.appendChild(currentTr);
		}
		var td1 = document.createElement('td');
		td1.innerHTML = formFields[i]['title'];
 
		var td2 = document.createElement('td');
		var textField = createTextField(formFields[i]['code']);
		if (formFields[i]['defeval']) {
			textField.value = eval(formFields[i]['defeval']);
		} else if (formFields[i]['default']) {
			textField.value = formFields[i]['default'];
		}
		textField.title = formFields[i]['help'];
		td2.appendChild(textField);
 
        // each field has two TDs: one for the title and one for the text field
		currentTr.appendChild(td1);
		currentTr.appendChild(td2);
	}
 
    // buttons are added to the bottom of the fieldset as a table
    var buttonTable = document.createElement('table');
    buttonTable.style.width = "100%";
    fieldSet.appendChild(buttonTable);
    var buttonRow = document.createElement('tr');
    buttonTable.appendChild(buttonRow);
 
	var addTemplateButton = addOption("smAddTemplate(this)", "Adicionar Predefinição");
	buttonRow.appendChild(document.createElement('td').appendChild(addTemplateButton));
 
    var previewTemplateButton = addOption("smPreviewTemplate(this)", "Prever Predefinição");
    buttonRow.appendChild(document.createElement('td').appendChild(previewTemplateButton));
 
	var closeButton = addOption("smCloseForm(this)", "Fechar formato");
	buttonRow.appendChild(document.createElement('td').appendChild(closeButton));
 
    var previewPanel = document.createElement('div');
    previewPanel.className = 'formPreview';
    fieldSet.appendChild(previewPanel);
}
 
// Takes a form template and
// returns an array of the fields which have values filled
// Called when showing a form
function smGetFormFields(form) {
	var formFields = new Array();
	for (var i in form) {
		if (!form[i]['title'] || !form[i]['code']) continue;
		formFields.push(form[i]);
	}
	return formFields;
}
 
// Creates a text field for display on the form
// Called while showing a form
function createTextField(id) {
	var inp = document.createElement('input');
	inp.type = 'text';
	inp.className = id;
	inp.tabIndex = 1;
	inp.style.width = smConfig['smTextWidth'];
	return inp;
}
 
// Creates a button for display on the form
// Called when showing a form
function addOption(script, text) {
  option = document.createElement('input');
  option.setAttribute('type', 'button');
  option.setAttribute('onclick', script);
  option.setAttribute('value', text);
  option.setAttribute('tabIndex', 1);
  return option;
}
 
// simple wrapper function for wiki markup preview
// give it the markup and a function(content)
// and it will call the function with the returned preview's HTML content
// Note this function uses wgPageName and sajax_init_object, so must be called
//    from within the page's JS scope
window.smWikiPreview = function(wiki_markup, func) {
  var form = document.editform;
  var addr = mw.config.get('wgServer') + mw.config.get('wgScript') + "?title=" + wgPageName + "&action=submit&wpPreview=true&live=true";
  var qwxmlhttp = sajax_init_object(null);
  qwxmlhttp.overrideMimeType('text/xml');
  qwxmlhttp.open('POST', addr, true);
  var boundary = '--(fR*3briuStOum6#v)--';
  qwxmlhttp.setRequestHeader('Content-type','multipart/form-data; boundary=' + boundary);
  qwxmlhttp.onload = function(event) {
    var content = unescape(qwxmlhttp.responseText.replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/&amp;/g,"&").replace(/&quot;/g,'"'));
    var match = /<hr \/><\/div>([\w\W\n]*)<\/preview>/.exec(content);
    func(match[1]);
  };
  var postData = '--' + boundary + '\nContent-Disposition: form-data; name="wpTextbox1"\n\n' + wiki_markup + '\n--' + boundary;
  qwxmlhttp.send(postData);
}
 
// The following code is from http://code.google.com/p/jribbon/
// It is listed as GNU GPL, both on the Google Code page and on
// the author's website at http://www.openwebstudio.com/
// WebCite archive: http://www.webcitation.org/5gpjSnfj8
function Ribbon(callerobj,Config) {
	this.configuration = Config;
	this.caller = callerobj;
	this.target = null;
	this.menutarget = null;
	this.selected = null;
	this.state=null;
	this.Editors = new Array();
 
	function RibbonEditor(editor,helper)
	{
		this.cEditor = editor;
		this.cHelper = helper;
		this.RibbonTab = false;
		this.RibbonMenu = false;
	}
 
	this.Initialize = function (target,menutarget,editorIndex)
	{
		this.target = target;
		this.menutarget = menutarget;
		if (this.selected==null&&this.configuration.Menu!=undefined)
		{
			for (var i=0;i<this.configuration.Menu.length;i++)
			{
				if (this.configuration.Menu[i].Default!=undefined && this.configuration.Menu[i].Default.toUpperCase() == 'TRUE')
				{
					this.selected = this.configuration.Menu[i];
					i = this.configuration.Menu.length+1;
				}
			}
		}
		this.Render(editorIndex);
	}
	this.Regenerate = function(txtobj) {
		this.Render(txtobj.EditorIndex);
	}
	this.Toggle = function(groupname,txtobj) {
		var canLoad = true;
		if (typeof this.Editors[groupname] != 'undefined')
		{
			if (txtobj.id == this.Editors[groupname].cEditor.id)
			{
				canLoad = false;
			}
			else
				this.Remove(this.Editors[groupname].cEditor);
		}
		if (canLoad) this.Editors[groupname]=this.Generate(txtobj);
	}
	this.Remove = function(txtobj) {
			if (typeof txtobj.EditorIndex != 'undefined' && txtobj.EditorIndex != null)
			{
				var rEditor = this.Editors[txtobj.EditorIndex];
				this.Editors[txtobj.EditorIndex]=null;
				txtobj.EditorIndex = null;
				txtobj.onkeydown=false;
				txtobj.setAttribute('isLoaded','false');
				txtobj.parentNode.removeChild(rEditor.RibbonTab);
				txtobj.parentNode.removeChild(rEditor.RibbonMenu);
				rEditor.RibbonTab = false;
				rEditor.RibbonMenu = false;
			}
	}
	this.Generate = function(txtobj) {
		var randomnumber=Math.floor(Math.random()*32767)
		//this.HelpTabID='RibbonHelp' + randomnumber;
 
		var editorIndex = 0;
 
		var rEditor = new RibbonEditor(txtobj,'RibbonHelp' + randomnumber);
		this.Editors.push(rEditor);
		editorIndex=this.Editors.length-1;
		txtobj.EditorIndex = editorIndex;
 
		var override=true;
		var rtext = true;
		var isLoadedObj = txtobj.getAttribute('isLoaded');
		if (typeof isLoadedObj=='undefined' || isLoadedObj==null)
			isLoadedObj = false;
		else
			if (isLoadedObj =='false')
				isLoaded=false;
			else
				isLoaded=true;
 
		if(isLoadedObj==true)
			rtext=false;
 
		if(rtext){
			txtobj.setAttribute('isLoaded','true');
			var dv=document.createElement('div');
			dv.className=this.configuration.MainClass;
 
			txtobj.parentNode.insertBefore(dv,txtobj);
			var dvm = document.createElement('div');
 
			this.Initialize(dv,dvm,editorIndex);
 
			txtobj.parentNode.insertBefore(dvm,dv);		
 
			rEditor.RibbonTab = dv;
			rEditor.RibbonMenu = dvm;
		}
		return rEditor;
	}
	this.onItemClick = function (input,group,tab,item)
	{
		if (!isNaN(input))
		input = this.Editors[input].Editor();
 
		tab = eval('this.configuration.Groups.' + group + '.Tabs[' + tab + ']');
		if (tab!=undefined && tab!=null)
		{
			item = tab.ItemEditor[item];
		}
		return false;
	}
	var txtClip = '';
	var txtPasteItem = null;
	this.onMenu = function (menuindex,editorIndex)
	{
		if (this.configuration.Menu!=undefined&&this.configuration.Menu.length > menuindex)
		{
			this.selected = this.configuration.Menu[menuindex];
			if (this.selected.onShow!=undefined && this.selected.onShow.length>0)
			{
				eval(this.selected.onShow);
			}
		}	
		this.Render(editorIndex);
	}
	this.onMenuHover = function (o)
	{
		o.xclassName = o.className;
		if (o.className!=this.configuration.SelectedClass)
			o.className= this.configuration.HoverClass;
	}
	this.onMenuBlur = function (o)
	{
	 o.className=o.xclassName;
	}	
	this.onItemHover = function (o,group,iindex,tindex,editorIndex)
	{
		o.xclassName = o.className;
		o.className=this.configuration.ItemHoverClass;
		if (group!=undefined && group!=null)
		{
			var helptxt = eval('this.configuration.Groups.' + group + '.Tabs[' + tindex + '].ItemHelp[' + iindex + ']');
			if (helptxt!=null && this.Editors[editorIndex]!=null && typeof this.Editors[editorIndex].Helper != 'undefined' && this.Editors[editorIndex].Helper !=null && this.Editors[editorIndex].Helper() != null)
				this.Editors[editorIndex].Helper().innerHTML = helptxt;
		}
	}
	this.onItemBlur = function (o,group,iindex,tindex)
	{
		o.className=o.xclassName;
	}
	this.Render = function (editorIndex)
	{
		arr = new Array();
		if (this.menutarget!=null && this.configuration!=null)
		{
			if (this.configuration.Menu!=null && this.configuration.Menu.length > 0)
				this.renderMenu(arr,editorIndex);
			this.menutarget.innerHTML = arr.join('');
		}
		arr = new Array();
		if (this.target!=null  && this.configuration!=null && this.selected!=null)
		{
			var groups = this.selected.Groups;
			arr.push('<table cellpadding=0 cellspacing=0>');
			if (groups!=null && groups.length > 0)
			{
				arr.push('<TR>');			
				for (var i=0;i<groups.length;i++)
				{
					//RENDER GROUP 
					var group = false;
					eval('group=this.configuration.Groups.' + groups[i]);
					this.renderGroup(this.configuration.Rows,group,arr,editorIndex);
					if (i<groups.length-1)
					{
						arr.push('<TD class="' + this.configuration.GapClass + '"></TD>');
					}
				}
				arr.push('</TR>');							
				arr.push('<TR>');			
				for (var i=0;i<groups.length;i++)
				{
					//RENDER FOOTER
					this.renderGroupFooter(this.configuration.Rows,eval('this.configuration.Groups.' + groups[i]),arr,editorIndex);
					if (i<groups.length-1)
					{
						arr.push('<TD class="' + this.configuration.GapClass + '"></TD>');
					}
				}
				arr.push('</TR>');							
			}
			arr.push('</table>');	
			this.target.innerHTML = arr.join('');
		}
	}
	this.renderGroupFooter = function (rows,group,arr,editorIndex)
	{
		colspan = 0;
		if (group.Tabs != null && group.Tabs.length > 0)
		{
			for (var tti = 0; tti < group.Tabs.length; tti++)
			{
				tabcolumns = 0;
				itemcounter = 0;			
				if (group.Tabs[tti].Columns!=undefined)
					tabcolumns=1;
				else
				{
					if (group.Tabs[tti].Image!=undefined && group.Tabs[tti].Image.length > 0)
					{	itemcounter++;itemcounter++; }
					if (group.Tabs[tti].ImageMap!=undefined && group.Tabs[tti].ImageMap.length > 0)
						itemcounter++;
					if (group.Tabs[tti].Items!=undefined)
						itemcounter = itemcounter + group.Tabs[tti].Items.length;
					tabcolumns = parseInt(itemcounter / rows);
					if (itemcounter / rows > tabcolumns)
						tabcolumns++;				
				}
				colspan = colspan + tabcolumns;
			}
		}		
		if (colspan > 0)
		{
			arr.push('<td class="' + this.configuration.GroupClass + '" colspan=' + colspan + '>' + group.Name + '</td>');
		}
	}
	this.renderMenu = function (arr,editorIndex)
	{
		if (this.configuration.Menu != null && this.configuration.Menu.length > 0)
		{
			arr.push('<div class="' + this.configuration.MenuBarClass + '">');
			for (var mnuI = 0; mnuI < this.configuration.Menu.length; mnuI++)
			{
				if (this.state!=null && this.configuration.Menu[mnuI].show==this.state || this.configuration.Menu[mnuI].show=='')
					this.renderMenuItem(this.configuration.Menu[mnuI],mnuI,arr,editorIndex);
			}
			arr.push('</div>');
		}	
	}
	this.renderMenuItem = function (group,index,arr,editorIndex)
	{
		arr.push('<div ' + (this.selected!=null&&group.Name==this.selected.Name?'class="' + this.configuration.SelectedClass+'"':'class=' + this.configuration.MenuClass + '"') + ' onclick="' + this.caller + '.onMenu(' + index + ',' + (editorIndex==null?'null':editorIndex)  + ');" onmouseover="' + this.caller + '.onMenuHover(this);" onmouseout="' + this.caller + '.onMenuBlur(this);">' + group.Name + '</div>');
	}
	this.renderGroup = function (rows,group,arr,editorIndex)
	{
		if (group.Tabs != null && group.Tabs.length > 0)
		{
			for (var tabI = 0; tabI < group.Tabs.length; tabI++)
			{
				group.Tabs[tabI].Index=tabI;
				this.renderTab(rows,group,group.Tabs[tabI],(tabI==0?true:false),(tabI==group.Tabs.length-1?true:false),arr,editorIndex,tabI);
			}
		}
	}
	this.renderTab = function (rows,group,tab,firsttab,lasttab,arr,editorIndex)
	{
		var thisEditorIndex = -1;
		var classname = '';
		var isLastTab = lasttab;
		var crow = 0;
		if (tab.Image!=undefined && tab.Image.length > 0)
		{ crow+=2; 
		  if (tab.ImageMap!=undefined && tab.ImageMap.length > 0)
			crow++;	
		}
		if ((tab.Columns==undefined && rows-crow < (tab.Items!=undefined?tab.Items.length:0)) || tab.Columns!=undefined && rows-crow < tab.Columns )
		{
			lasttab=false;
		}	
		crow = 0;
		if (editorIndex!=undefined)
			thisEditorIndex = editorIndex;	
 
		if (lasttab && firsttab)
			classname = this.configuration.SingleClass;
		else if (lasttab)
			classname = this.configuration.RightClass;
		else if (firsttab)
			classname = this.configuration.LeftClass;
		else
			classname = this.configuration.CenterClass;
		if (tab.Items==undefined || tab.Items.length == 0)
			classname = this.configuration.CenterImageClass;
 
		var tdc = '<div>';
		var tde = '</div>';
		var tc = 'div';
		if (tab!=null)
		{
			var style = '';
			if (tab.Style!=undefined)
				style = ' style="' + tab.Style + '" ';
 
			if (tab.Image!=undefined && tab.Image.length > 0)
			{
				arr.push('<td class="' + classname + '"' + style + '>' + tdc);
				crow = crow + 2;
				if (tab.ImageMap!=undefined && tab.ImageMap.length > 0)
				{
					arr.push('<img src="' + tab.Image + '" border=0 useMap="' + tab.ImageMap + '">');
					crow++;
				}
				else
				{
					arr.push('<img src="' + tab.Image + '">');
				}
				if (crow == rows)
				{ arr.push(tde + '</td>'); crow = 0; }
			}
			else
			{
				//tdc = '<UL>';
				//tde = '</UL>';
				//tc = 'li';
			}
 
			if (tab.Columns!=undefined)
			{
				arr.push('<td class="' + classname + '"' + style + '>');
				if (tab.Help==undefined || tab.Help.toUpperCase()!='TRUE')
				{
					arr.push('<div class="' + tab.ColumnClass + '">');
					arr.push('<table width=100% border=0 cellpadding=0 cellspacing=0>');
				}
				else
				{
					if (editorIndex!=undefined)
					{
						var chelper=this.Editors[editorIndex].cHelper;
 
						arr.push('<div class="' + tab.ColumnClass + '" id="' + chelper + '">');
						arr.push(tab.DefaultHelp);
					}
				}
			}
			if (tab.Items!=undefined && tab.Items.length > 0)
			{
				for (var ti = 0;tab.Items!=undefined && ti < tab.Items.length; ti++)
				{
					lasttab=false;
					if (tab.Columns==undefined && isLastTab && rows-crow > tab.Items.length-ti-1)
						lasttab=true;
					if (lasttab && firsttab)
						classname = this.configuration.SingleClass;
					else if (lasttab)
						classname = this.configuration.RightClass;
					else if (firsttab && tab.Columns==undefined)
						classname = this.configuration.LeftClass;
					else
						classname = this.configuration.CenterClass;
 
					if (tab.Columns!=undefined)
					{
						if (crow==0)
						{arr.push('<tr>');}
						if (crow >=0)
						{arr.push('<td class="' + classname + '">' + tdc); }
						classname = this.configuration.CenterClass;
					}
					else
					{
						if (crow==0)
						{arr.push('<td class="' + classname + '"' + style + '>' + tdc); }
					}
 
					var item = new function() {
                        this.value = tab.Items[ti];
                        this.code = tab.ItemCodes[ti];
                    }
					var onclick = '';
					var onclickparameters = '()';
 
					if (tab.onclick==undefined||tab.onclick==null||tab.onclick.length==0)
					{
						if (this.configuration.onItem!=undefined && this.configuration.onItem!=null)
						{
							onclick= eval(this.configuration.onItem);
							onclickparameters =	'(' + thisEditorIndex + ')';
						}
					}
					else
					{
						onclick=  eval(tab.onclick);
						onclickparameters = '(' + thisEditorIndex + ')';
					}
					//onclick = onclick.replace(' ','_').replace('-','_').replace('\'','_');
 
					if (editorIndex!=undefined && tab.ItemEditor!=undefined && tab.ItemEditor!=null && tab.ItemEditor.length == tab.Items.length)
					{
						if (tab.ItemEditor[ti]!=null && (tab.ItemEditor[ti].length != undefined || tab.ItemEditor[ti].Text != undefined))
						{
							onclick = this.caller + '.onItemClick';
							onclickparameters = '(' + editorIndex + ',\'' + group.Abbr + '\',' + tab.Index + ',' + ti + ')';
						}
					}
					/*else
					{
						if (eval('!window.' + onclick) && this.configuration.debug!=undefined)
							alert('The Ribbon control requires a definition for function: ' + onclick);
					}*/
 
					var image = null;
					if (this.configuration.defaultItemImage!=undefined)
						image = this.configuration.defaultItemImage;
					if (tab.ItemImages!=undefined && tab.ItemImages[ti].length > 0)
						image = tab.ItemImages[ti];
 
                    onclickparameters = '';
					if (tab.ItemHelp==undefined)
						arr.push('<' + tc + ' onclick="' + onclick + onclickparameters + '" onmouseover="' + this.caller + '.onItemHover(this);" onmouseout="' + this.caller + '.onItemBlur(this);">' + (image!=null?'<img src=' + image + '>':'') + tab.Items[ti] + '</' + tc + '>');	
					else
						arr.push('<' + tc + ' onclick="' + onclick + onclickparameters + '" onmouseover="' + this.caller + '.onItemHover(this,\'' + group.Abbr + '\',' + ti + ',' + tab.Index + ',' + thisEditorIndex + ');" onmouseout="' + this.caller + '.onItemBlur(this,\'' + group.Name + '\',' + ti + ',' + tab.Index + ');">' + (image!=null?'<img src=' + image + '>':'') + tab.Items[ti] + '</' + tc + '>');	
					crow++;
					if (tab.Columns!=undefined)
					{ arr.push(tde + '</td>'); }
 
					if (crow == rows && tab.Columns==undefined)
					{ arr.push(tde + '</td>'); crow = 0; firsttab=false;}
					else if (tab.Columns!=undefined && crow==tab.Columns)
					{ arr.push('</tr>'); crow = 0; firsttab=false; }
				}
			}
			if (crow!=0 && tab.Columns==undefined)
				arr.push(tde + '</td>');
			else if (tab.Columns!=undefined)
			{	
				if (tab.Help==undefined || tab.Help.toUpperCase()!='TRUE')
				{
					var bcrow = false;
					while (crow != tab.Columns && crow > 0)
					{
						bcrow=true;
						arr.push('<td>&nbsp;</td>');
						crow++;
					}
					if (bcrow)
						arr.push('</tr>');
					arr.push('</table>');
				}
				arr.push('</div>');
				arr.push('</td>');
			}
		}
	}
}
 
 
appendCSS('div#snipmanager-panel{}\
div.HMenuParent{clear:both;font-size:8pt;width:100%;height:25px;border-bottom:1px solid #eee;}\
div.HMenuParent div{float:left;padding-top:4px;margin:3px 3px -3px 3px;text-align:center;width:94px;height:18px}\
div.HMenuParent div.selected{padding-top:3px;margin:3px 2px -3px 2px;background-color:#c3d6e1;border:1px solid black;border-bottom:0} /*the selected tab*/\
div.HMenuParent div.hover{padding-top:3px;margin:3px 2px -3px 2px;border:1px dashed black;border-bottom:0;background-color:#eee} /*hovering on a tab*/\
div.HStrip table tr td div{text-align:center}div.HStrip table tr td{vertical-align:middle}\
div.HStrip table tr td.HStripPC{vertical-align:middle}\
div.HStrip table tr td div div{height:18px;text-align:left;margin-bottom:1px;padding-left:5px;padding-right:8px;white-space:nowrap}\
div.HStrip table tr td div div img{margin-right:4px}\
div.HStrip table tr td div div.hover{text-decoration:underline;cursor:pointer;}/*hover on button*/\
div.HStrip {clear:both;border-top:0;margin-bottom:1px}\
div.HStrip table{background:#fafafa; margin:2px 0 2px 2px} /*just button area*/\
td.HStripS{width:2px}\
td.HStripP{padding:0 15px 0 5px;margin:0}\
td.HStripPC{padding:0 0 0 5px;margin:0}\
td.HStripLR{border-right:1px solid #c3d6e1;padding-left:5px;margin-left:8px}\
td.HStripL{ border-left:1px solid #c3d6e1;padding:0 5px 0 5px;margin:0}\
td.HStripR{border-right:1px solid #c3d6e1;padding:0 0 0 5px;margin:0}\
td.HStripB{font-size:0.8em; background:#c3d6e1;border-top:1px solid #c3d6e1;text-align:center;color:black}\
.HStripE td.HStripPC{vertical-align:middle; font-family:arial,helvetica;font-size:8pt; padding:0px 0px 0px 0px;margin:0px 0px 0px 0px}\
#snipmanager-form-panel{background:#fafafa;}');
 
hookEvent("load", createMenu);
}
 
if (window.parent == window) {
    // append wrapper to head if run under Greasemonkey
	if (typeof(GM_getValue) == 'function') {
        var script = document.createElement('script');
        script.id = 'SnippetManager';
        script.type = 'text/javascript';
        script.text = 'smHeadWrapper = ' + SnippetManagerWrapper.toString() + '; smHeadWrapper();';
        document.getElementsByTagName('head')[0].appendChild(script);
	}
    // otherwise run installation directly
	else {
		SnippetManagerWrapper();
	}
}
 
// </nowiki></pre>