<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pt-BR">
	<id>https://wiki.tokusatsus.com/index.php?action=history&amp;feed=atom&amp;title=M%C3%B3dulo%3ACitar_livro</id>
	<title>Módulo:Citar livro - Histórico de revisão</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.tokusatsus.com/index.php?action=history&amp;feed=atom&amp;title=M%C3%B3dulo%3ACitar_livro"/>
	<link rel="alternate" type="text/html" href="https://wiki.tokusatsus.com/index.php?title=M%C3%B3dulo:Citar_livro&amp;action=history"/>
	<updated>2026-07-05T11:59:04Z</updated>
	<subtitle>Histórico de revisões para esta página neste wiki</subtitle>
	<generator>MediaWiki 1.45.3</generator>
	<entry>
		<id>https://wiki.tokusatsus.com/index.php?title=M%C3%B3dulo:Citar_livro&amp;diff=2578&amp;oldid=prev</id>
		<title>Tavoraadmin: Importando predefinição/módulo da Wikipédia em português para manter layout</title>
		<link rel="alternate" type="text/html" href="https://wiki.tokusatsus.com/index.php?title=M%C3%B3dulo:Citar_livro&amp;diff=2578&amp;oldid=prev"/>
		<updated>2026-07-05T06:23:42Z</updated>

		<summary type="html">&lt;p&gt;Importando predefinição/módulo da Wikipédia em português para manter layout&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nova&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local l = require(&amp;#039;Módulo:Citação/CS1&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
--[[--------------------------&amp;lt; l . l i v r o &amp;gt;-----------------------------------------------&lt;br /&gt;
&lt;br /&gt;
Este é o método principal da predefinição {{citar livro}}&lt;br /&gt;
&lt;br /&gt;
]]&lt;br /&gt;
&lt;br /&gt;
l.livro= function(frame)&lt;br /&gt;
    local config, args, A = tratarArgumentos(frame)&lt;br /&gt;
    config.CitationClass = &amp;#039;&amp;#039;&lt;br /&gt;
    config.usaVolume = true&lt;br /&gt;
    config.usaContributor = true&lt;br /&gt;
&lt;br /&gt;
    cfg.aliases.Number = {&amp;#039;número&amp;#039;, &amp;#039;numero&amp;#039;}&lt;br /&gt;
&lt;br /&gt;
    -- coleção é alias de séries&lt;br /&gt;
    local coins_series = &amp;#039;&amp;#039;&lt;br /&gt;
    if is_set(A.Series) then&lt;br /&gt;
    	if is_set(A.Number) then&lt;br /&gt;
        	A.Series = A.Series .. &amp;#039;,&amp;amp;nbsp;&amp;#039; .. A.Number&lt;br /&gt;
        end&lt;br /&gt;
		coins_series = A.Series&lt;br /&gt;
	    A.Series = &amp;#039;Col: &amp;#039; .. A.Series&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    -- Função com o código abstraído&lt;br /&gt;
    local B&lt;br /&gt;
    A, B = citation0( config, args, A)&lt;br /&gt;
&lt;br /&gt;
    B.coins_table.Series = coins_series&lt;br /&gt;
&lt;br /&gt;
    local sn = is_set(A.PublisherName) and &amp;#039;&amp;#039; or (&amp;#039;: [s.n.]&amp;#039;)&lt;br /&gt;
    local sl = is_set(A.PublicationPlace) and &amp;#039;&amp;#039; or &amp;#039;[S.l.]: &amp;#039;&lt;br /&gt;
    if A.PublisherName:lower():match(&amp;quot;^%s*desconhecido%s*$&amp;quot;) then&lt;br /&gt;
	    B.coins_table.PublisherName = &amp;#039;&amp;#039;&lt;br /&gt;
        sn = &amp;#039;&amp;#039;&lt;br /&gt;
        A.PublisherName = &amp;#039;&amp;#039;&lt;br /&gt;
    end&lt;br /&gt;
    if A.PublicationPlace:lower():match(&amp;quot;^%s*desconhecido%s*$&amp;quot;) then&lt;br /&gt;
	    B.coins_table.PublicationPlace = &amp;#039;&amp;#039;&lt;br /&gt;
        sl = &amp;#039;&amp;#039;&lt;br /&gt;
        A.PublicationPlace = &amp;#039;&amp;#039;&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    if (sn ~= &amp;#039;&amp;#039;) then&lt;br /&gt;
	    if (sl ~= &amp;#039;&amp;#039;) then&lt;br /&gt;
        	sl = B.sepc .. &amp;quot; [S.l.: s.n.]&amp;quot;&lt;br /&gt;
	        sn = &amp;#039;&amp;#039;&lt;br /&gt;
        elseif not is_set(A.PublicationPlace) then&lt;br /&gt;
        	sn = B.sepc .. &amp;#039; [S.n.]&amp;#039;&lt;br /&gt;
        end&lt;br /&gt;
    else&lt;br /&gt;
    	if sl ~= &amp;#039;&amp;#039; and not is_set(A.PublisherName) then&lt;br /&gt;
	   		sl = B.sepc .. &amp;#039; [S.l.]&amp;#039;&lt;br /&gt;
	   	end&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    if is_set(A.PublisherName) then&lt;br /&gt;
        B.Publisher = B.sepc .. &amp;quot; &amp;quot; .. (is_set(A.PublicationPlace) and (A.PublicationPlace .. &amp;quot;: &amp;quot;)&lt;br /&gt;
            or sl) .. A.PublisherName .. A.PublicationDate&lt;br /&gt;
    elseif is_set(A.PublicationPlace) then&lt;br /&gt;
        B.Publisher= B.sepc .. &amp;quot; &amp;quot; .. A.PublicationPlace&lt;br /&gt;
            .. sn .. A.PublicationDate&lt;br /&gt;
    else&lt;br /&gt;
        B.Publisher =  sl .. sn .. A.PublicationDate&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    if is_set (B.Contributors) then -- when we are citing foreword, preface, introduction, etc&lt;br /&gt;
        B.tcommon = safe_join( {A.Title, A.TitleNote}, B.sepc ) -- author and other stuff will come after this and before tcommon2&lt;br /&gt;
        if &amp;#039;mla&amp;#039; == A.Mode then&lt;br /&gt;
            B.tcommon2 = safe_join( {A.Periodical, A.Format, A.TitleType, A.Edition, B.Publisher, A.Series, A.Language, A.Volume, A.Agency}, B.sepc )&lt;br /&gt;
        else&lt;br /&gt;
            B.tcommon2 = safe_join( {A.Periodical, A.Format, A.TitleType, A.Edition, B.Publisher, A.Series, A.Language, A.Volume, A.Others, A.Agency}, B.sepc )&lt;br /&gt;
        end&lt;br /&gt;
    elseif &amp;#039;mla&amp;#039; == A.Mode then&lt;br /&gt;
        B.tcommon = safe_join( {A.TitleNote, A.Periodical, A.Format, A.TitleType, A.Series, A.Language, A.Volume, B.Publisher, A.Agency}, B.sepc )&lt;br /&gt;
    else&lt;br /&gt;
        B.tcommon = safe_join( {A.Title, A.TitleNote, A.Periodical, A.Format, A.TitleType, A.Series, A.Language, A.Volume, A.Others, A.Edition, B.Publisher, A.Agency}, B.sepc )&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    config.CitationClass = &amp;#039;book&amp;#039;&lt;br /&gt;
    B.config = config&lt;br /&gt;
&lt;br /&gt;
    return textoFinal(A, B)&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return l&lt;/div&gt;</summary>
		<author><name>Tavoraadmin</name></author>
	</entry>
</feed>