Usuário(a):Angus Guilherme/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==
// @nome            SnipManager
// @id              snipmanager
// @autor           odie5533
// @adaptado        Willy Weazley
// @descrição       SnipManager é um script para Wikipédia que adiciona uma barra de ferramentas no topo da caixa de edição com diversas infoboxes e predefinições. É compativel com o wikEd (e TW/HW).
// @homepage        http://pt.wikipedia.org/wiki/Usuário:Willy Weazley/SnipManager
// @screenshot      http://upload.wikimedia.org/wikipedia/commons/2/29/SnipManager.png
// @namespace       http://pt.wikipedia.org/*
// @include         http://*.wikipedia.org/*
// @include         https://secure.wikimedia.org/*
// @updateURL       http://pt.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=Usuário:Willy Weazley/SnipManager.user.js
// ==/UserScript==
//
// Esse script foi baseado no [[User:Mr.Z-man/refToolbar.js]]
// Seria impossível a criação dele sem os códigos iniciais. 
//
// 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['smTemplateurl']) == 'undefined') { window.smConfig['smTemplateurl'] = 'http://pt.wikipedia.org/wiki/Wikipédia:Predefinições:'; }
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}}' } ],
        'Resp' : [ { 'inserttext':'{{Resp}}' } ],
        '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. O conteúdo em "Acesso data" é automático; a data é inserida normalmente sem edições. {{<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':'Acesso data:', 'code':'acessodata', 'default':'{{subst:#timel: d-m-Y}}', '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':'Link do autor:', '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 em:', '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':'Arquivo da url:', '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':'Arquivo data:', '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':'Link do entrevistado:', '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':'Data de acesso:', 'code':'Acessodata','default':'{{subst:#timel: d-m-Y}}', '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':'Link do autor:', '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':'Data de acesso:', 'code':'acessodata', 'default':'{{subst:#timel: d-m-Y}}', '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':'Séries:', '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':'Local:', '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':'Último:', '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':'Link do autor:', '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':'Título:', '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':'Acessado em:', 'code':'acessadoem', 'default':'{{subst:#timel: d-m-Y}}', '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':'Link do álbum', '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ítulo notas:', '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':'ID da publicaçã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':'Data:', 'code':'date2', 'help':'Data completa de quando a produção foi lançada ou foi ao ar. Ex.: 1 de janeiro de 2000.'},
                    {'title':'Ano:', '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ês:', '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':'Data de acesso:', 'code':'acessodata', 'default':'{{subst:#timel: d-m-Y}}', 'help':'Data completa de quando a URL foi acessada. Ex.: 1 de janeiro de 2000. Campo obrigatório quando o campo URL é usado. '},
                    {'title':'Ano de acesso:', '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':'Mes de acesso:', '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/Á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 da imagem:', 'code':'tamanho_imagem', 'help':'Image (prefer 1st edition - where permitted)'},
                {'title':'Legenda da imagem:', '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/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':'Tamanho imagem:', 'code':'imagem_tamanho', 'help':'Original title, if not in English'},
                {'title':'Legenda imagem:', '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':'Data de nascimento:', 'code':'nascimento_data','default':'{{dni|dia|mês|ano}}', 'help':'Dia em que nasceu '},
                {'title':'Cidade de nascimento:', 'code':'nascimento_cidade', 'help':'Cover artist'},
                {'title':'País de nascimento:', 'code':'nascimento_país', 'help':'Country of original publication'},
                {'title':'Origem:', 'code':'origem', 'help':'Country of original publication'},
                {'title':'Data de morte:', 'code':'morte_data', 'default':'{{morte |dia|mês|ano|dia-nascimento|mês-nasc.|ano-nasc.}}','help':'Language of original book (see note)'},
                {'title':'Local de morte:', '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':'Ex-integrantes:', '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/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':'Tamanho de imagem:', '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 de nascimento:', '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':'Data de nascimento:', 'code':'nascimento_data', 'default':'{{dni|dia|mês|ano}}', 'help':'Dia em que nasceu '},
                {'title':'Local de nascimento:', 'code':'nascimento_local', 'help':'Cover artist'},
                {'title':'Nacionalidade:', 'code':'nacionalidade', 'help':'Country of original publication'},
                {'title':'Data de morte:', 'code':'morte_data', 'default':'{{morte |dia|mês|ano|dia-nascimento|mês-nasc.|ano-nasc.}}','help':'Language of original book (see note)'},
                {'title':'Local de morte:', '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 na 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:', 'code':'IMDB_id', 'help':'Genre or genres (only use for fiction)'},
                {'title':'Assinatura:', 'code':'assinatura', 'help':'Genre or genres (only use for fiction)'},
        ],
 
            'Info/Biografia' : [ { 'prepend':'{{Info/Biografia', 'append':'}}', 'description':'' },
                {'title':'Cor de fundo:', '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':'Tamanho da imagem:', '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':'Legenda da imagem:', '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':'Data de nascimento:', 'code':'nascimento_data','default':'{{dni|dia|mês|ano}}','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':'Local de nascimento:', 'code':'birth_place', 'help':'Place of birth: city, administrative region, sovereign state.'},
                {'title':'Data de morte:', 'code':'death_date', 'default':'{{morte |dia|mês|ano|dia-nascimento|mês-nasc.|ano-nasc.}}',  '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':'Local de morte:', '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':'Legenda de imagem:', 'code':'imagem_legenda', 'help':'A screenshot of the entire homepage'},
                {'title':'Data de nascimento:', 'code':'nascimento_data', 'default':'{{dni|dia|mês|ano}}', 'help':'Caption saying screenshot of <website> name as of <date>'},
                {'title':'Local de nascimento:', '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':'Data de morte:', 'code':'morte_data','default':'{{morte |dia|mês|ano|dia-nascimento|mês-nasc.|ano-nasc.}}', 'help':'Is there registration, none/optional/required?'},
                {'title':'Local de morte:', '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/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','default':'{{dni|dia|mês|ano}}', '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','default':'{{morte |dia|mês|ano|dia-nascimento|mês-nasc.|ano-nasc.}}', '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/Escritor': [ { 'prepend':'{{Info/Escritor', 'append':'}}', 'description':'' },
                {'title':'Imagem:', 'code':'imagem', 'help':'The website\'s most recognised name.'},
                {'title':'Legenda:', 'code':'legenda', 'help':'The website logo.'},
                {'title':'Nome:', 'code':'nome_nascimento', 'help':'A screenshot of the entire homepage'},
                {'title':'Data de nascimento:', 'code':'data_nascimento', 'default':'{{dni|dia|mês|ano}}', 'help':'Caption saying screenshot of <website> name as of <date>'},
                {'title':'Local de nascimento:', 'code':'local_nascimento', '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':'Pseudonimo:', 'code':'pseudonimo', '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':'Data de morte:', 'code':'data_morte','default':'{{morte |dia|mês|ano|dia-nascimento|mês-nasc.|ano-nasc.}}', 'help':'Is there registration, none/optional/required?'},
                {'title':'Local de morte:', 'code':'local_morte', 'help':'The current owner, company name/persons name/alias etc (required)'},
                {'title':'Ocupacao:', 'code':'ocupacao', 'help':'The person or entity that originally created the website (required)'},
                {'title':'Grupo etnico:', 'code':'grupo_etnico', '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':'Cidadania:', 'code':'cidadania', 'help':'Is the site online/offline/sold etc'},
                {'title':'instrucao:', 'code':'tatuagem', 'help':'The approximate revenue of the site.'},
                {'title':'Instrucao:', 'code':'instrucao', 'help':'The slogan of the website, e.g. "the free encyclopedia that anyone can edit."'},
                {'title':'Alma mater:', 'code':'alma_mater', 'help':'The slogan of the website, e.g. "the free encyclopedia that anyone can edit."'},
                {'title':'Periodo:', 'code':'periodo', 'help':'The slogan of the website, e.g. "the free encyclopedia that anyone can edit."'},
                {'title':'Genero:', 'code':'genero', 'help':'The slogan of the website, e.g. "the free encyclopedia that anyone can edit."'},
                {'title':'Temas:', 'code':'temas', 'help':'The slogan of the website, e.g. "the free encyclopedia that anyone can edit."'},
                {'title':'Movimento:', 'code':'movimento', 'help':'The slogan of the website, e.g. "the free encyclopedia that anyone can edit."'},
                {'title':'Obras destaque:', 'code':'obras_destaque', 'help':'The slogan of the website, e.g. "the free encyclopedia that anyone can edit."'},
                {'title':'Premios:', 'code':'premios', 'help':'The slogan of the website, e.g. "the free encyclopedia that anyone can edit."'},
                {'title':'Conjuge:', 'code':'conjuge', 'help':'The slogan of the website, e.g. "the free encyclopedia that anyone can edit."'},
                {'title':'Uniao estavel:', 'code':'uniao_estavel', 'help':'The slogan of the website, e.g. "the free encyclopedia that anyone can edit."'},
                {'title':'Filhos:', 'code':'filhos', 'help':'The slogan of the website, e.g. "the free encyclopedia that anyone can edit."'},
                {'title':'Parentes:', 'code':'parentes', 'help':'The slogan of the website, e.g. "the free encyclopedia that anyone can edit."'},
                {'title':'Influencias:', 'code':'afdb', 'help':'The slogan of the website, e.g. "the free encyclopedia that anyone can edit."'},
                {'title':'Influenciou:', 'code':'influenciou', 'help':'The slogan of the website, e.g. "the free encyclopedia that anyone can edit."'},
                {'title':'Assinatura:', 'code':'assinatura', 'help':'The slogan of the website, e.g. "the free encyclopedia that anyone can edit."'},
                {'title':'Website:', 'code':'website', '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':'Tamanho da imagem:', 'code':'imagem_tamanho', 'help':'Original title, if not in English'},
                {'title':'Organizador:', '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':'Público:', 'code':'publico', 'help':'Illustrator (where used throughout and a major feature)'},
                {'title':'Dinheiro 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/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':'Tamanho imagem:', 'code':'imagem_tamanho', 'help':'Original title, if not in English'},
                {'title':'Legenda imagem:', '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/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/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':'Tamanho imagem:', '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':'nomecompleto', 'help':'Name at birth, if different from name.'},
                {'title':'Data de nascimento:', 'code':'nascimento_data', 'default':'{{dni|dia|mês|ano}}','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':'Cidade de nascimento:', 'code':'birth_place', 'help':'Place of birth: city, administrative region, sovereign state.'},
                {'title':'País de nascimento:', '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':'Clube atual:', 'code':'actualclube', 'help':'Other notable names for the person, if different from name and birth_name.'},
                {'title':'Número clube:', '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':'jovem anos:', 'code':'jovemanos', 'help':'Other notable names for the person, if different from name and birth_name.'},
                {'title':'Jovem clubes:', '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(gols):', 'code':'jogos(golos)', 'help':'Other notable names for the person, if different from name and birth_name.'},
                {'title':'Ano selecao:', 'code':'anoselecao', 'help':'Other notable names for the person, if different from name and birth_name.'},
                {'title':'Selecao nacional:', 'code':'selecaonacional', 'help':'Other notable names for the person, if different from name and birth_name.'},
                {'title':'Partidas selecao:', '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/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 por Nocaute:', 'code':'Derrota-Nocaute', 'help':'Subject or subjects (only use for non-fiction)'},
                {'title':'Derrota por Finalização:', 'code':'Derrota-Finalização', 'help':'Subject or subjects (only use for non-fiction)'},
                {'title':'Derrota por Decisão:', 'code':'Derrota-Decisão', 'help':'Subject or subjects (only use for non-fiction)'}, 
                {'title':'Derrota por 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/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':'Outros tí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', 'default':'{{dni|dia|mês|ano}}', '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':'Cidade natal:', 'code':'cidadenatal', 'help':'cidadenatal.'},
               {'title':'Morte:', 'code':'morte', 'default':'{{morte |dia|mês|ano|dia-nascimento|mês-nasc.|ano-nasc.}}','help':'{{Falecimento|dia|mês|ano|dn|mn|an}}.'},
               {'title':'Cidade morte:', 'code':'cidademorte', 'help':'cidademorte.'},
               {'title':'Sepultamento:', 'code':'sepultamento', 'help':'{{Data|ano|mês|dia}}.'},
               {'title':'Assinatura:', 'code':'assinatura', 'help':'assinatura.'},
            ],
            'Info/Musical' : [ {'prepend':'{{Info/Musical', 'append':'}}', 'description':'' },
                {'title':'Nome:', 'code':'nome', 'help':''},
                {'title':'Imagem:', 'code':'imagem', 'help':'Book name. If whole parameter is omitted, inherited from page title.'},
                {'title':'Subtítulo:', 'code':'subtítulo', 'help':'Original title, if not in English'},
                {'title':'Legenda da imagem:', 'code':'imagem_legenda', 'help':'Translator(s), if original not in English'},
                {'title':'Música:', 'code':'música', 'help':'Image (prefer 1st edition - where permitted)'},
                {'title':'Libreto:', 'code':'libreto', 'help':'Image caption (should describe the edition used)'},
                {'title':'Letra:', 'code':'letra', 'help':'Illustrator (where used throughout and a major feature)'},
                {'title':'Baseado:', 'code':'baseado', 'help':'Cover artist'},
                {'title':'Produção:', 'code':'produção', 'help':'Country of original publication'},
                {'title':'Personagens:', 'code':'personagens', 'help':'Language of original book (see note)'},
                {'title':'Guionista:', 'code':'guionista', 'help':'Series (if any)'},
                {'title':'Género:', 'code':'Género', 'help':'Subject or subjects (only use for non-fiction)'},
                {'title':'Prêmios:', 'code':'prêmios', 'help':'Genre or genres (only use for fiction)'},
                {'title':'Coreografia:', 'code':'coreografia', 'help':'Genre or genres (only use for fiction)'},
                {'title':'Direção:', 'code':'direção', 'help':'Genre or genres (only use for fiction)'},
        ],
        '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>Texto do titulo:</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>Tamanho:</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', 'default':'{{dni|dia|mês|ano}}', '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', 'default':'{{morte |dia|mês|ano|dia-nascimento|mês-nasc.|ano-nasc.}}', '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/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/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':'Tamanho imagem:', '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':'Data de nascimento:', 'code':'nascimento_data','default':'{{dni|dia|mês|ano}}', 'help':'Country of original publication'},
                {'title':'Data morte:', 'code':'morte_data','default':'{{morte |dia|mês|ano|dia-nascimento|mês-nasc.|ano-nasc.}}', 'help':'{{morte|19|4|1967|5|1|1876}}'},
                {'title':'Local morte:', 'code':'morte_local', 'help':'Series (if any)'},
                {'title':'Local nascimento:', 'code':'nascimento_local', 'help':'Subject or subjects (only use for non-fiction)'},
                {'title':'Partido:', 'code':'partido', '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':'Tamanho de imagem:', '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 de nascimento:', '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':'Data de nascimento:', 'code':'nascimento_data', 'default':'{{dni|dia|mês|ano}}','help':'Illustrator (where used throughout and a major feature)'},
                {'title':'Local de nascimento:', 'code':'nascimento_local', 'help':'Cover artist'},
                {'title':'Nacionalidade:', 'code':'nacionalidade', 'help':'Country of original publication'},
                {'title':'Data de morte:', 'code':'morte_data', 'default':'{{morte |dia|mês|ano|dia-nascimento|mês-nasc.|ano-nasc.}}', 'help':'Language of original book (see note)'},
                {'title':'Local de morte:', '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/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/Wrestler': [ { 'prepend':'{{Info/Wrestler', 'append':'}}', 'description':'' },
                {'title':'Nome:', 'code':'nome', 'help':'The website\'s most recognised name.'},
                {'title':'Imagem:', 'code':'imagem', 'help':'The website logo.'},
                {'title':'Altura:', 'code':'altura', 'help':'A screenshot of the entire homepage'},
                {'title':'peso:', 'code':'peso', 'help':'The website\'s current Alexa ranking (find on Alexa.com; make sure to cite Alexa\'s page for this info)'},                
                {'title':'Data de nascimento:', 'code':'nascimento_data', 'default':'{{dni|dia|mês|ano}}', 'help':'Caption saying screenshot of <website> name as of <date>'},
                {'title':'Local de nascimento:', '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':'Data de morte:', 'code':'morte_data','default':'{{morte |dia|mês|ano|dia-nascimento|mês-nasc.|ano-nasc.}}', 'help':'Is there registration, none/optional/required?'},
                {'title':'Local de morte:', 'code':'morte_local', 'help':'The current owner, company name/persons name/alias etc (required)'},
                {'title':'Residencia:', 'code':'residencia', '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':'Origem:', 'code':'origem', 'help':'Is the site online/offline/sold etc'},
                {'title':'Treinamento:', 'code':'treinamento', 'help':'The approximate revenue of the site.'},
                {'title':'Estreia:', 'code':'estreia', 'help':'The slogan of the website, e.g. "the free encyclopedia that anyone can edit."'},
                {'title':'Abandono:', 'code':'abandono', 'help':'The slogan of the website, e.g. "the free encyclopedia that anyone can edit."'},
                {'title':'Site:', 'code':'site', 'help':'The slogan of the website, e.g. "the free encyclopedia that anyone can edit."'},
 
            ],
        '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":""
        },
        {
            "Name":"Esportes",
            "Groups":["Esportes"],
            "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","Resp"],
                            "ItemCodes":["corrigir variante","expandir","contextualizar","resp"]
						}
					]
			},
            "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":["Álbum","Artista","Ator","Biografia","Biografia adulto","Criminoso", "Escritor","Evento de MMA","Filme","Filme Adulto","Futebolista","Lutador de MMA","Monarca","Musical","Nobre", "Personagem","Político","Serial Killer","Single","Wrestler"],
                    "ItemCodes":["Info/Álbum", "Info/Música/artista", "Info/Ator","Info/Biografia", "Info/Bio adulto", "Info/Criminoso","Info/Escritor","Info/Evento de MMA", "Info/Filme","Info/Filme Adulto", "Info/Filme Adulto","Info/Futebolista","Info/LutadorMMA","Info/Monarca", "Info/Musical","Info/Nobre","Info/Personagem fictícia", "Info/Político","Info/Serial Killer","Info/Single", "Info/Wrestler"]
                }]
            },
 
           
              "TOC":{
                "Name":"TOC",
                "Tabs":[{
                    "Items":["CompactTOC8"],
                    "ItemCodes":["CompactTOC8"]
                }]
            }
		}
},'');
 
// Tirado de [[User:Mr.Z-man/refToolbar.js]]
// Todos os créditos dessa função são dele
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');
  // support wikiEd if it is installed
  if (!toolbar)
    toolbar = document.getElementById('wikiEditor-ui-toolbar');
  if (toolbar) {
    // All output is added to the sm_panel div
    var sm_panel = document.createElement('div');
    sm_panel.id = 'snipmanager-panel';
    //toolbar.insertBefore(sm_panel, toolbar.childNodes[0]); // alt. insertion
    toolbar.appendChild(sm_panel); // added to the bottom of toolbar
 
    // the actual ribbon bar is constructed
    var ribbonStrip = document.createElement('div');
    ribbonStrip.className = 'HStrip';
    var ribbonMenu = document.createElement('div');
    ribbonMenu.className = 'HMenu';
 
    //a place to display forms to the user
    window.smFormPanel = document.createElement('div');
    smFormPanel.id = 'snipmanager-form-panel';
    smFormPanel.style.clear = 'both';
 
    // All these items are added to sm_panel
    sm_panel.appendChild(ribbonMenu);
    sm_panel.appendChild(ribbonStrip);
    sm_panel.appendChild(smFormPanel);    
 
    window.smRibbon.configuration.Menu[0].Default='true';
    window.smRibbon.Initialize(ribbonStrip,ribbonMenu);
    window.smRibbon.state = 'load';
    window.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('');
}
 
// Called whenever SnipManager needs to insert text into the edit area
function smInsertTags(insert_text) {
    if (typeof(wikEd.useWikEd) != 'undefined' && wikEd.useWikEd) {
        // wikiEd's insertTags has bugs when inserting at the end of a line
        // This is a workaround but seems to fix it completely
        insert_text = insert_text.replace(/&/g, '&amp;');
        insert_text = insert_text.replace(/</g, '&lt;');
        insert_text = insert_text.replace(/>/g, '&gt;');
        var obj = {}
        obj.html = insert_text;
        if (wikEd.highlightSyntax == true)
            wikEd.HighlightSyntax(obj, false);
        wikEd.FrameExecCommand('inserthtml', obj.html);
    } 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 by the Ribbon when a Ribbon button is clicked.
// code refers to a form or function
// 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]['inserteval']) {
        var text = sprintf(form[0]['inserteval'][0], form[0]['inserteval']);
        smInsertTags(text, '', '');
    } else if (form[0]['httplink']) {
        window.open(form[0]['httplink']);
    // httpeval is used to open websites with dynamically generated urls
    } else if (form[0]['httpeval']) {
        var url = sprintf(form[0]['httpeval'][0], form[0]['httpeval']);
        window.open(url);
    } 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="'+smConfig['smTemplateurl']+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;
        if (formFields[i]['code']) {
            textField = createTextField(formFields[i]['code']);
        } else {
            textField = createTextField('ERROR: ' + formFields[i]['title'] + ' has no code field');
            continue;
        }
        // Allows for default values or functions to be passed and their
        // return value becomes the default value for the form field
        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)", "Apagar");
    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>