Módulo:Citar tese – Wikipédia, a enciclopédia livre
Este módulo é usado em aproximadamente 10 000 páginas. (Ver Wikipedia:Predefinições em alto risco) Para evitar sobrecargas desnecessárias ao servidor e outros transtornos, quaisquer mudanças devem ser previamente testadas, seja na subpágina de testes deste módulo, na subpágina de testes de módulos (ou ainda em sua subpágina de testes). Por favor, sempre considere expor eventuais mudanças na página de discussão, antes de implementá-las. |
Este módulo depende dos seguintes outros módulos: |
Descrição
Este módulo destina-se a proporcionar funções básicas da predefinição {{Citar tese}}
.
Outra documentação:
local t = require('Módulo:Citação/CS1') --[[--------------------------< r . t e s e >------------------------------------------------------ Este é o método principal da predefinição {{citar tese}} ]] t.tese= function(frame) frame.whitelist = { grau = true, degree = true, grado = true } local config, args, A = tratarArgumentos(frame) config.CitationClass = '' config.usaVolume = true local classe = 'thesis' cfg.aliases.Degree = {'grau', 'degree', 'grado'} if is_set(A.Docket) then if is_set(A.ID) then local sepc = set_style (A.Mode:lower()) A.ID = sepc .. ' ' ..A.ID end A.ID = "Expediente: ".. A.Docket .. A.ID end A.TitleType = set_titletype (classe, A.TitleType) if (cfg.title_types[classe] ~= A.TitleType) then A.TitleType = A.TitleType:sub(1, 1):upper() .. A.TitleType:sub(2) end if (cfg.title_types[classe] == A.TitleType or A.TitleType == 'Dissertação') and is_set(A.Degree) then A.TitleType = A.TitleType .. ' de ' .. A.Degree end -- Função com o código abstraído local B A, B = citation0( config, args, A) B.coins_table.Degree = A.Degree config.CitationClass = classe B.config = config return textoFinal(A, B) end return t