<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="es">
	<id>https://es.wikijournal.org/w-wiki/index.php?action=history&amp;feed=atom&amp;title=M%C3%B3dulo%3ANavbar</id>
	<title>Módulo:Navbar - Historial de revisiones</title>
	<link rel="self" type="application/atom+xml" href="https://es.wikijournal.org/w-wiki/index.php?action=history&amp;feed=atom&amp;title=M%C3%B3dulo%3ANavbar"/>
	<link rel="alternate" type="text/html" href="https://es.wikijournal.org/w-wiki/index.php?title=M%C3%B3dulo:Navbar&amp;action=history"/>
	<updated>2026-04-28T14:53:55Z</updated>
	<subtitle>Historial de revisiones de esta página en la wiki</subtitle>
	<generator>MediaWiki 1.43.5</generator>
	<entry>
		<id>https://es.wikijournal.org/w-wiki/index.php?title=M%C3%B3dulo:Navbar&amp;diff=654&amp;oldid=prev</id>
		<title>Philip: 1 revisión importada</title>
		<link rel="alternate" type="text/html" href="https://es.wikijournal.org/w-wiki/index.php?title=M%C3%B3dulo:Navbar&amp;diff=654&amp;oldid=prev"/>
		<updated>2025-02-04T12:43:56Z</updated>

		<summary type="html">&lt;p&gt;1 revisión importada&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;es&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Revisión anterior&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revisión del 15:43 4 feb 2025&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;es&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(Sin diferencias)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key wikijournal_org-es__:diff:1.41:old-653:rev-654 --&gt;
&lt;/table&gt;</summary>
		<author><name>Philip</name></author>
	</entry>
	<entry>
		<id>https://es.wikijournal.org/w-wiki/index.php?title=M%C3%B3dulo:Navbar&amp;diff=653&amp;oldid=prev</id>
		<title>__es&gt;LuchoCR: Cambió la configuración de protección de «Módulo:Navbar»: Modulos muy usados ([Editar=Permitir solo editores de plantillas y administradores] (indefinido))</title>
		<link rel="alternate" type="text/html" href="https://es.wikijournal.org/w-wiki/index.php?title=M%C3%B3dulo:Navbar&amp;diff=653&amp;oldid=prev"/>
		<updated>2023-02-28T18:43:04Z</updated>

		<summary type="html">&lt;p&gt;Cambió la configuración de protección de «&lt;a href=&quot;/wiki/M%C3%B3dulo:Navbar&quot; title=&quot;Módulo:Navbar&quot;&gt;Módulo:Navbar&lt;/a&gt;»: Modulos muy usados ([Editar=Permitir solo editores de plantillas y administradores] (indefinido))&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;es&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Revisión anterior&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revisión del 21:43 28 feb 2023&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;4&quot; class=&quot;diff-notice&quot; lang=&quot;es&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(Sin diferencias)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;!-- diff cache key wikijournal_org-es__:diff:1.41:old-217:rev-653 --&gt;
&lt;/table&gt;</summary>
		<author><name>__es&gt;LuchoCR</name></author>
	</entry>
	<entry>
		<id>https://es.wikijournal.org/w-wiki/index.php?title=M%C3%B3dulo:Navbar&amp;diff=217&amp;oldid=prev</id>
		<title>Philip: Página creada con «local p = {} local cfg = mw.loadData(&#039;Módulo:Navbar/configuración&#039;)  local function get_title_arg(is_collapsible, template) 	local title_arg = 1 	if is_collapsible then title_arg = 2 end 	if template then title_arg = &#039;template&#039; end 	return title_arg end  local function choose_links(template, args) 	-- The show table indicates the default displayed items. 	-- view, talk, edit, hist, move, watch 	-- TODO: Move to configuration. 	local show = {true, true, true, false,…»</title>
		<link rel="alternate" type="text/html" href="https://es.wikijournal.org/w-wiki/index.php?title=M%C3%B3dulo:Navbar&amp;diff=217&amp;oldid=prev"/>
		<updated>2022-11-28T13:15:58Z</updated>

		<summary type="html">&lt;p&gt;Página creada con «local p = {} local cfg = mw.loadData(&amp;#039;Módulo:Navbar/configuración&amp;#039;)  local function get_title_arg(is_collapsible, template) 	local title_arg = 1 	if is_collapsible then title_arg = 2 end 	if template then title_arg = &amp;#039;template&amp;#039; end 	return title_arg end  local function choose_links(template, args) 	-- The show table indicates the default displayed items. 	-- view, talk, edit, hist, move, watch 	-- TODO: Move to configuration. 	local show = {true, true, true, false,…»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Página nueva&lt;/b&gt;&lt;/p&gt;&lt;div&gt;local p = {}&lt;br /&gt;
local cfg = mw.loadData(&amp;#039;Módulo:Navbar/configuración&amp;#039;)&lt;br /&gt;
&lt;br /&gt;
local function get_title_arg(is_collapsible, template)&lt;br /&gt;
	local title_arg = 1&lt;br /&gt;
	if is_collapsible then title_arg = 2 end&lt;br /&gt;
	if template then title_arg = &amp;#039;template&amp;#039; end&lt;br /&gt;
	return title_arg&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function choose_links(template, args)&lt;br /&gt;
	-- The show table indicates the default displayed items.&lt;br /&gt;
	-- view, talk, edit, hist, move, watch&lt;br /&gt;
	-- TODO: Move to configuration.&lt;br /&gt;
	local show = {true, true, true, false, false, false}&lt;br /&gt;
	if template then&lt;br /&gt;
		show[2] = false&lt;br /&gt;
		show[3] = false&lt;br /&gt;
		local index = {t = 2, d = 2, e = 3, h = 4, m = 5, w = 6,&lt;br /&gt;
			talk = 2, edit = 3, hist = 4, move = 5, watch = 6}&lt;br /&gt;
		-- TODO: Consider removing TableTools dependency.&lt;br /&gt;
		for _, v in ipairs(require (&amp;#039;Module:TableTools&amp;#039;).compressSparseArray(args)) do&lt;br /&gt;
			local num = index[v]&lt;br /&gt;
			if num then show[num] = true end&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
&lt;br /&gt;
	local remove_edit_link = args.noedit&lt;br /&gt;
	if remove_edit_link then show[3] = false end&lt;br /&gt;
	&lt;br /&gt;
	return show&lt;br /&gt;
	&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function add_link(link_description, ul, is_mini, font_style)&lt;br /&gt;
	local l&lt;br /&gt;
	if link_description.url then&lt;br /&gt;
		l = {&amp;#039;[&amp;#039;, &amp;#039;&amp;#039;, &amp;#039;]&amp;#039;}&lt;br /&gt;
	else&lt;br /&gt;
		l = {&amp;#039;[[&amp;#039;, &amp;#039;|&amp;#039;, &amp;#039;]]&amp;#039;}&lt;br /&gt;
	end&lt;br /&gt;
	ul:tag(&amp;#039;li&amp;#039;)&lt;br /&gt;
		:addClass(&amp;#039;nv-&amp;#039; .. link_description.full)&lt;br /&gt;
		:wikitext(l[1] .. link_description.link .. l[2])&lt;br /&gt;
		:tag(is_mini and &amp;#039;abbr&amp;#039; or &amp;#039;span&amp;#039;)&lt;br /&gt;
			:attr(&amp;#039;title&amp;#039;, link_description.html_title)&lt;br /&gt;
			:cssText(font_style)&lt;br /&gt;
			:wikitext(is_mini and link_description.mini or link_description.full)&lt;br /&gt;
			:done()&lt;br /&gt;
		:wikitext(l[3])&lt;br /&gt;
		:done()&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
local function make_list(title_text, has_brackets, displayed_links, is_mini, font_style)&lt;br /&gt;
	&lt;br /&gt;
	local title = mw.title.new(mw.text.trim(title_text), cfg.title_namespace)&lt;br /&gt;
	if not title then&lt;br /&gt;
		-- error(cfg.invalid_title .. title_text) -- diferente a en la Wikipedia inglesa&lt;br /&gt;
		return&lt;br /&gt;
	end&lt;br /&gt;
	local talkpage = title.talkPageTitle and title.talkPageTitle.fullText or &amp;#039;&amp;#039;&lt;br /&gt;
	&lt;br /&gt;
	-- TODO: Get link_descriptions and show into the configuration module.&lt;br /&gt;
	-- link_descriptions should be easier...&lt;br /&gt;
	local link_descriptions = {&lt;br /&gt;
		{ [&amp;#039;mini&amp;#039;] = &amp;#039;v&amp;#039;, [&amp;#039;full&amp;#039;] = &amp;#039;ver&amp;#039;, [&amp;#039;html_title&amp;#039;] = &amp;#039;Ver esta plantilla&amp;#039;,&lt;br /&gt;
			[&amp;#039;link&amp;#039;] = title.fullText, [&amp;#039;url&amp;#039;] = false },&lt;br /&gt;
		{ [&amp;#039;mini&amp;#039;] = &amp;#039;t&amp;#039;, [&amp;#039;full&amp;#039;] = &amp;#039;discusión&amp;#039;, [&amp;#039;html_title&amp;#039;] = &amp;#039;Conversar sobre esta plantilla&amp;#039;,&lt;br /&gt;
			[&amp;#039;link&amp;#039;] = talkpage, [&amp;#039;url&amp;#039;] = false },&lt;br /&gt;
		{ [&amp;#039;mini&amp;#039;] = &amp;#039;e&amp;#039;, [&amp;#039;full&amp;#039;] = &amp;#039;editar&amp;#039;, [&amp;#039;html_title&amp;#039;] = &amp;#039;Editar esta plantilla&amp;#039;,&lt;br /&gt;
			[&amp;#039;link&amp;#039;] = title:fullUrl(&amp;#039;action=edit&amp;#039;), [&amp;#039;url&amp;#039;] = true },&lt;br /&gt;
		{ [&amp;#039;mini&amp;#039;] = &amp;#039;h&amp;#039;, [&amp;#039;full&amp;#039;] = &amp;#039;historial&amp;#039;, [&amp;#039;html_title&amp;#039;] = &amp;#039;Historial de esta plantilla&amp;#039;,&lt;br /&gt;
			[&amp;#039;link&amp;#039;] = title:fullUrl(&amp;#039;action=history&amp;#039;), [&amp;#039;url&amp;#039;] = true },&lt;br /&gt;
		{ [&amp;#039;mini&amp;#039;] = &amp;#039;m&amp;#039;, [&amp;#039;full&amp;#039;] = &amp;#039;trasladar&amp;#039;, [&amp;#039;html_title&amp;#039;] = &amp;#039;Trasladar esta plantilla&amp;#039;,&lt;br /&gt;
			[&amp;#039;link&amp;#039;] = mw.title.new(&amp;#039;Special:Movepage&amp;#039;):fullUrl(&amp;#039;target=&amp;#039;..title.fullText), [&amp;#039;url&amp;#039;] = true },&lt;br /&gt;
		{ [&amp;#039;mini&amp;#039;] = &amp;#039;w&amp;#039;, [&amp;#039;full&amp;#039;] = &amp;#039;vigilar&amp;#039;, [&amp;#039;html_title&amp;#039;] = &amp;#039;Vigilar esta plantiilla&amp;#039;, &lt;br /&gt;
			[&amp;#039;link&amp;#039;] = title:fullUrl(&amp;#039;action=watch&amp;#039;), [&amp;#039;url&amp;#039;] = true }&lt;br /&gt;
	}&lt;br /&gt;
&lt;br /&gt;
	local ul = mw.html.create(&amp;#039;ul&amp;#039;)&lt;br /&gt;
	if has_brackets then&lt;br /&gt;
		ul:addClass(cfg.classes.brackets)&lt;br /&gt;
			:cssText(font_style)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	for i, _ in ipairs(displayed_links) do&lt;br /&gt;
		if displayed_links[i] then add_link(link_descriptions[i], ul, is_mini, font_style) end&lt;br /&gt;
	end&lt;br /&gt;
	return ul:done()&lt;br /&gt;
	&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p._navbar(args)&lt;br /&gt;
	&lt;br /&gt;
	-- TODO: We probably don&amp;#039;t need both fontstyle and fontcolor...&lt;br /&gt;
	local font_style = args.fontstyle&lt;br /&gt;
	local font_color = args.fontcolor&lt;br /&gt;
	local is_collapsible = args.collapsible&lt;br /&gt;
	local is_mini = args.mini&lt;br /&gt;
	local is_plain = args.plain&lt;br /&gt;
	&lt;br /&gt;
	local collapsible_class = nil&lt;br /&gt;
	if is_collapsible then&lt;br /&gt;
		collapsible_class = cfg.classes.collapsible&lt;br /&gt;
		if not is_plain then is_mini = 1 end&lt;br /&gt;
		if font_color then&lt;br /&gt;
			font_style = (font_style or &amp;#039;&amp;#039;) .. &amp;#039;; color: &amp;#039; .. font_color .. &amp;#039;;&amp;#039;&lt;br /&gt;
		end&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local navbar_style = args.style&lt;br /&gt;
	local div = mw.html.create():tag(&amp;#039;div&amp;#039;)&lt;br /&gt;
	div&lt;br /&gt;
		:addClass(cfg.classes.navbar)&lt;br /&gt;
		:addClass(cfg.classes.plainlinks)&lt;br /&gt;
		:addClass(cfg.classes.horizontal_list)&lt;br /&gt;
		:addClass(collapsible_class) -- we made the determination earlier&lt;br /&gt;
		:cssText(navbar_style)&lt;br /&gt;
&lt;br /&gt;
	if is_mini then div:addClass(cfg.classes.mini) end&lt;br /&gt;
&lt;br /&gt;
	local box_text = (args.text or cfg.box_text) .. &amp;#039; &amp;#039;&lt;br /&gt;
	 -- the concatenated space guarantees the box text is separated&lt;br /&gt;
	if not (is_mini or is_plain) then&lt;br /&gt;
		div&lt;br /&gt;
			:tag(&amp;#039;span&amp;#039;)&lt;br /&gt;
				:addClass(cfg.classes.box_text)&lt;br /&gt;
				:cssText(font_style)&lt;br /&gt;
				:wikitext(box_text)&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	local template = args.template&lt;br /&gt;
	local displayed_links = choose_links(template, args)&lt;br /&gt;
	local has_brackets = args.brackets&lt;br /&gt;
	local title_arg = get_title_arg(is_collapsible, template)&lt;br /&gt;
	local title_text = args[title_arg] or (&amp;#039;:&amp;#039; .. mw.getCurrentFrame():getParent():getTitle())&lt;br /&gt;
	local list = make_list(title_text, has_brackets, displayed_links, is_mini, font_style)&lt;br /&gt;
	div:node(list)&lt;br /&gt;
&lt;br /&gt;
	if is_collapsible then&lt;br /&gt;
		local title_text_class&lt;br /&gt;
		if is_mini then&lt;br /&gt;
			title_text_class = cfg.classes.collapsible_title_mini&lt;br /&gt;
		else&lt;br /&gt;
			title_text_class = cfg.classes.collapsible_title_full&lt;br /&gt;
		end&lt;br /&gt;
		div:done()&lt;br /&gt;
			:tag(&amp;#039;div&amp;#039;)&lt;br /&gt;
			:addClass(title_text_class)&lt;br /&gt;
			:cssText(font_style)&lt;br /&gt;
			:wikitext(args[1])&lt;br /&gt;
	end&lt;br /&gt;
	&lt;br /&gt;
	return mw.getCurrentFrame():extensionTag{&lt;br /&gt;
		name = &amp;#039;templatestyles&amp;#039;, args = { src = cfg.templatestyles }&lt;br /&gt;
	} .. tostring(div:done())&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
function p.navbar(frame)&lt;br /&gt;
	return p._navbar(require(&amp;#039;Módulo:Arguments&amp;#039;).getArgs(frame))&lt;br /&gt;
end&lt;br /&gt;
&lt;br /&gt;
return p&lt;/div&gt;</summary>
		<author><name>Philip</name></author>
	</entry>
</feed>