Wikipedia cbk_zamwiki https://cbk-zam.wikipedia.org/wiki/El_Primero_Pagina MediaWiki 1.45.0-wmf.8 first-letter Medio Especial Discusión Usuario Discusión del usuario Wikipedia Discusión del Wikipedia File Discusión del file MediaWiki Discusión del MediaWiki Plantilla Discusión del plantilla Ayuda Discusión del ayuda Categoría Discusión del categoría TimedText TimedText talk Módulo Discusión del módulo Evento Evento discusión Plantilla:Listaref 10 16449 116703 65796 2025-07-04T02:22:04Z Aristorkle 14080 redirect 116703 wikitext text/x-wiki #REDIRECT [[Template:Reflist]] 9sa7q6k6aazfbv19qxsa07dsdeeif9m Módulo:InfoboxImage 828 21232 116648 102999 2025-07-03T13:55:13Z Aristorkle 14080 synced with enwiki 116648 Scribunto text/plain -- Inputs: -- image - Can either be a bare filename (with or without the File:/Image: prefix) or a fully formatted image link -- page - page to display for multipage images (DjVu) -- size - size to display the image -- maxsize - maximum size for image -- sizedefault - default size to display the image if size param is blank -- alt - alt text for image -- title - title text for image -- border - set to yes if border -- center - set to yes, if the image has to be centered -- upright - upright image param -- suppressplaceholder - if yes then checks to see if image is a placeholder and suppresses it -- link - page to visit when clicking on image -- class - HTML classes to add to the image -- Outputs: -- Formatted image. -- More details available at the "Module:InfoboxImage/doc" page local i = {}; local placeholder_image = { "Blue - Replace this image female.svg", "Blue - Replace this image male.svg", "Flag of None (square).svg", "Flag of None.svg", "Flag of.svg", "Green - Replace this image female.svg", "Green - Replace this image male.svg", "Image is needed female.svg", "Image is needed male.svg", "Location map of None.svg", "Male no free image yet.png", "Missing flag.png", "No flag.svg", "No free portrait.svg", "No portrait (female).svg", "No portrait (male).svg", "Red - Replace this image female.svg", "Red - Replace this image male.svg", "Replace this image female.svg", "Replace this image male (blue).svg", "Replace this image male.svg", "Silver - Replace this image female.svg", "Silver - Replace this image male.svg", "Replace this image.svg", "Cricket no pic.png", "CarersLogo.gif", "Diagram Needed.svg", "Example.jpg", "Image placeholder.png", "No male portrait.svg", "Nocover-upload.png", "NoDVDcover copy.png", "Noribbon.svg", "No portrait-BFD-test.svg", "Placeholder barnstar ribbon.png", "Project Trains no image.png", "Image-request.png", "Sin bandera.svg", "Sin escudo.svg", "Replace this image - temple.png", "Replace this image butterfly.png", "Replace this image.svg", "Replace this image1.svg", "Resolution angle.png", "Image-No portrait-text-BFD-test.svg", "Insert image here.svg", "No image available.png", "NO IMAGE YET square.png", "NO IMAGE YET.png", "No Photo Available.svg", "No Screenshot.svg", "No-image-available.jpg", "Null.png", "PictureNeeded.gif", "Place holder.jpg", "Unbenannt.JPG", "UploadACopyrightFreeImage.svg", "UploadAnImage.gif", "UploadAnImage.svg", "UploadAnImageShort.svg", "CarersLogo.gif", "Diagram Needed.svg", "No male portrait.svg", "NoDVDcover copy.png", "Placeholder barnstar ribbon.png", "Project Trains no image.png", "Image-request.png", "Noimage.gif", } local categories = { url_image_links = "[[Category:Pages using infoboxes with URL in image parameter]]", thumbnail_images = "[[Category:Pages using infoboxes with thumbnail images]]", } local function trackable() local ns = mw.title.getCurrentTitle().nsText:lower() return not (ns == 'user' or ns == 'user talk') end function i.IsPlaceholder(image) -- change underscores to spaces image = mw.ustring.gsub(image, "_", " "); assert(image ~= nil, 'mw.ustring.gsub(image, "_", " ") must not return nil') -- if image starts with [[ then remove that and anything after | if mw.ustring.sub(image,1,2) == "[[" then image = mw.ustring.sub(image,3); image = mw.ustring.gsub(image, "([^|]*)|.*", "%1"); assert(image ~= nil, 'mw.ustring.gsub(image, "([^|]*)|.*", "%1") must not return nil') end -- Trim spaces image = mw.ustring.gsub(image, '^[ ]*(.-)[ ]*$', '%1'); assert(image ~= nil, "mw.ustring.gsub(image, '^[ ]*(.-)[ ]*$', '%1') must not return nil") -- remove prefix if exists local allNames = mw.site.namespaces[6].aliases allNames[#allNames + 1] = mw.site.namespaces[6].name allNames[#allNames + 1] = mw.site.namespaces[6].canonicalName for i, name in ipairs(allNames) do if mw.ustring.lower(mw.ustring.sub(image, 1, mw.ustring.len(name) + 1)) == mw.ustring.lower(name .. ":") then image = mw.ustring.sub(image, mw.ustring.len(name) + 2); break end end -- Trim spaces image = mw.ustring.gsub(image, '^[ ]*(.-)[ ]*$', '%1'); -- capitalise first letter image = mw.ustring.upper(mw.ustring.sub(image,1,1)) .. mw.ustring.sub(image,2); for i,j in pairs(placeholder_image) do if image == j then return true end end return false end function i.InfoboxImage(frame) local image = frame.args["image"]; if image == "" or image == nil then return ""; end if image == "&nbsp;" then return image; end if frame.args["suppressplaceholder"] ~= "no" then if i.IsPlaceholder(image) == true then return ""; end end if string.find(image, "^%[*https?:") then -- Error category. return trackable() and categories.url_image_links or "" end if mw.ustring.sub(image,1,2) == "[[" then -- search for thumbnail images and add to tracking cat if found local cat = ""; if mw.title.getCurrentTitle().namespace == 0 and (mw.ustring.find(image, "|%s*thumb%s*[|%]]") or mw.ustring.find(image, "|%s*thumbnail%s*[|%]]")) then cat = trackable() and categories.thumbnail_images or "" end return image .. cat; elseif mw.ustring.sub(image,1,2) == "{{" and mw.ustring.sub(image,1,3) ~= "{{{" then return image; elseif mw.ustring.sub(image,1,1) == "<" then return image; elseif mw.ustring.sub(image,1,8) == mw.ustring.char(127).."'\"`UNIQ" then -- Found strip marker at begining, so pass don't process at all return image; else local result = ""; local page = frame.args["page"]; local size = frame.args["size"]; local maxsize = frame.args["maxsize"]; local sizedefault = frame.args["sizedefault"]; local alt = frame.args["alt"]; local link = frame.args["link"]; local title = frame.args["title"]; local border = frame.args["border"]; local upright = frame.args["upright"] or ""; local thumbtime = frame.args["thumbtime"] or ""; local center = frame.args["center"]; local class = frame.args["class"]; -- remove prefix if exists local allNames = mw.site.namespaces[6].aliases allNames[#allNames + 1] = mw.site.namespaces[6].name allNames[#allNames + 1] = mw.site.namespaces[6].canonicalName for i, name in ipairs(allNames) do if mw.ustring.lower(mw.ustring.sub(image, 1, mw.ustring.len(name) + 1)) == mw.ustring.lower(name .. ":") then image = mw.ustring.sub(image, mw.ustring.len(name) + 2); break end end if maxsize ~= "" and maxsize ~= nil then -- if no sizedefault then set to maxsize if sizedefault == "" or sizedefault == nil then sizedefault = maxsize end -- check to see if size bigger than maxsize if size ~= "" and size ~= nil then local sizenumber = tonumber(mw.ustring.match(size,"%d*")) or 0; local maxsizenumber = tonumber(mw.ustring.match(maxsize,"%d*")) or 0; if sizenumber>maxsizenumber and maxsizenumber>0 then size = maxsize; end end end -- add px to size if just a number if (tonumber(size) or 0) > 0 then size = size .. "px"; end -- add px to sizedefault if just a number if (tonumber(sizedefault) or 0) > 0 then sizedefault = sizedefault .. "px"; end result = "[[File:" .. image; if page ~= "" and page ~= nil then result = result .. "|page=" .. page; end if size ~= "" and size ~= nil then result = result .. "|" .. size; elseif sizedefault ~= "" and sizedefault ~= nil then result = result .. "|" .. sizedefault; else result = result .. "|frameless"; end if center == "yes" then result = result .. "|center" end if alt ~= "" and alt ~= nil then result = result .. "|alt=" .. alt; end if link ~= "" and link ~= nil then result = result .. "|link=" .. link; end if border == "yes" then result = result .. "|border"; end if upright == "yes" then result = result .. "|upright"; elseif upright ~= "" then result = result .. "|upright=" .. upright; end if thumbtime ~= "" then result = result .. "|thumbtime=" .. thumbtime; end if class ~= nil and class ~= "" then result = result .. "|class=" .. class; end -- if alt value is a keyword then do not use as a description if alt == "thumbnail" or alt == "thumb" or alt == "frameless" or alt == "left" or alt == "center" or alt == "right" or alt == "upright" or alt == "border" or mw.ustring.match(alt or "", '^[0-9]*px$', 1) ~= nil then alt = nil; end if title ~= "" and title ~= nil then -- does title param contain any templatestyles? If yes then set to blank. if mw.ustring.match(frame:preprocess(title), 'UNIQ%-%-templatestyles', 1) ~= nil then title = nil; end end if title ~= "" and title ~= nil then result = result .. "|" .. title; end result = result .. "]]"; return result; end end return i; 2ohqqedq1scfevaci8ml267ehill79u Plantilla:Location map+ 10 22308 116645 101212 2025-07-03T13:37:03Z Aristorkle 14080 synced with enwiki 116645 wikitext text/x-wiki <includeonly>{{#invoke:Location map/multi|container}}</includeonly><noinclude>{{documentation}}</noinclude> cshtxc3nnd9lycyakwliacrbcdvid4y Plantilla:Infobox building 10 22364 116634 115750 2025-07-03T12:50:47Z Aristorkle 14080 partially localized 116634 wikitext text/x-wiki {{main other|{{#if:{{#invoke:Is infobox in lead|main|[Ii]nfobox [Bb]uilding}}|{{#if:{{Has short description}} |<!--Do nothing--> |{{#invoke:Type in location|main|{{{building_type|Building}}}|{{comma separated entries |1= {{if empty|{{{location|}}}|{{{address|}}}}} |2= {{if empty|{{{location_town|}}}|{{{location_city|}}}}} |3= {{{location_country|}}} }}}}}}}}}}{{Infobox | child = {{#ifeq:{{{embed|}}}|yes|yes}} | bodyclass = vcard | aboveclass = fn org | headerstyle = {{#ifeq:{{{embed|}}}|yes||background-color:#ededed}} | title = {{#ifeq:{{{embed|}}}|yes|<div style="font-weight:bold; text-align:center;">Building details</div>}} | above = {{{building_name|{{{hotel_name|{{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}}}}}}} | subheader = {{#if:{{{native_building_name|{{{native_name|}}}}}}|<div class="nickname" {{#if:{{{native_name_lang|}}}| lang="{{{native_name_lang}}}"}}>{{{native_building_name|{{{native_name}}}}}}</div>}} | imagestyle = text-align: center | captionstyle = text-align: center | image1 = {{#invoke:InfoboxImage|InfoboxImage|image={{{logo|}}}|size={{{logo_size|{{{logo_width|}}}}}}|sizedefault=250px|upright={{{logo_upright|1.1}}}|alt={{{logo_alt|}}}}} | caption1 = {{{logo_caption|}}} | image2 = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|{{{image_width|}}}}}}|sizedefault=250px|upright={{{image_upright|1.1}}}|border=yes|alt={{{image_alt|{{{alt|}}}}}}}} | caption2 = {{{caption|{{{image_caption|}}}}}} | image3 = {{#if:{{{pushpin_map|{{{map_type|}}}}}}|{{Location map|{{{pushpin_map|{{{map_type|}}}}}} |alt = {{{pushpin_map_alt|{{{map_alt|}}}}}} |coordinates = {{{coordinates|}}} |float = center |mark = {{{map_dot_mark|Red pog.svg}}} |marksize= 7 |label = {{{pushpin_label|{{{map_dot_label|}}}}}} |relief = {{{pushpin_relief|{{{relief|}}}}}} |border = infobox |caption = {{{pushpin_map_caption|{{{map_caption|Location within {{#invoke:Location map|data|{{{pushpin_map|{{{map_type}}}}}}|name}}}}}}}} |width = {{{pushpin_mapsize|{{{map_size|}}}}}} }} |<!-- else if map_type is blank -->{{#invoke:InfoboxImage|InfoboxImage|image={{{image_map|}}}|size={{{map_size|}}}|sizedefault=250px|alt={{{map_alt|}}}}}<!-- end if map_type -->}} | caption3 = {{#if:{{{pushpin_map|{{{map_type|}}}}}} |<!-- leave blank -->| {{{map_caption|}}} }} | image4 = {{#invoke:Infobox mapframe|auto|onByDefault={{#if:{{{pushpin_map|}}}{{{map_type|}}}{{{image_map|}}}|no|yes}}|mapframe-zoom={{{mapframe-zoom|13}}}|mapframe-frame-width={{{mapframe-frame-width|250}}}|mapframe-wikidata={{{mapframe-wikidata|yes}}}}} | caption4 = {{#invoke:Infobox mapframe|autocaption|onByDefault={{#if:{{{pushpin_map|}}}{{{map_type|}}}{{{image_map|}}}|no|yes}}}} | label1 = Former names | data1 = {{{former_names|{{{former_name|}}}}}} | class1 = nickname | label2 = Alternative names | data2 = {{{alternate_names|{{{alternate_name|}}}}}} | class2 = nickname | label3 = Etymology | data3 = {{{etymology|}}} | label4 = Hotel chain | data4 = {{{hotel_chain|{{{chain|}}}}}} | header5 = {{#if:{{{highest_prev|}}}{{{highest_next|}}}{{{highest_start|}}}{{{highest_end|}}}{{{highest_region|}}}|Record height}} | data6 = {{#if:{{{highest_start|}}}{{{highest_end|}}} |Tallest in {{#if:{{{highest_region|}}}|{{{highest_region}}}|the world}}<!-- --> {{#if:{{both|{{{highest_start|}}}|{{{highest_end|}}}}} |from {{{highest_start|}}} to {{{highest_end|}}} |{{#if:{{{highest_start|}}}|since {{{highest_start}}} }}<!-- -->{{#if:{{{highest_end|}}}|until {{{highest_end}}} }}<!-- -->}}{{ref label|{{{highest_reflabel|talleststatus}}}|I|}} }} | label7 = Preceded by | data7 = {{{highest_prev|}}} | label8 = Surpassed by | data8 = {{{highest_next|}}} | header9 = {{#if:{{{status|}}}{{{building_type|}}}{{{architectural_style|}}}{{{style|}}}{{{classification|}}}{{{location|}}}{{{location_town|}}}{{{location_city|}}}{{{location_country|}}}{{{address|}}}{{{coordinates|}}}{{{altitude|}}}{{{start_date|}}}{{{construction_start_date|}}}{{{topped_out_date|}}}{{{est_completion|}}}{{{completion_date|}}}{{{inauguration_date|}}}{{{groundbreaking_date|}}}{{{opening_date|}}}{{{opening|}}}{{{opened|}}}{{{opened_date|}}}{{{renovation_date|}}}{{{closing_date|}}}{{{demolition_date|}}}{{{date_demolished|}}}{{{demolished_date|}}}{{{destruction_date|}}}{{{destroyed|}}}{{{cost|}}}{{{ren_cost|}}}{{{client|}}}{{{owner|}}}{{{governing_body|}}}{{{landlord|}}}{{{management|{{{operator|}}}}}}{{{affiliation|}}}|Informacion general}} | label10 = Status | class10 = category | data10 = {{#if:{{{status|}}}|{{#switch:{{lc:{{{status|}}}}} | built | completed | finished | complete = Completed | destroyed = Destroyed | demolished = Demolished | on hold = On hold | incomplete | unfinished | under construction = Under construction | cancelled | canceled | never built = Never built | topped out | topped-out = [[Topping out|Topped-out]] | planned | proposed = Proposed | approved = Approved | #default = {{{status|}}} }}|{{#if:{{{cancelled|}}}{{{canceled|}}}|Never built|{{#if:{{{topped_out|}}}|[[Topping out|Topped-out]]}} }} }} | label11 = Type | data11 = {{{building_type|}}} | class11 = category | label12 = Architectural style | data12 = {{{architectural_style|{{{style|}}}}}} | class12 = category | label13 = Classification | data13 = {{{classification|}}} | class13 = category | class14 = label | label14 = Locacion | data14 = {{{location|}}} | label15 = Address | data15 = {{{address|}}} | label16 = Pueblo o ciudad | data16 = {{if empty|{{{location_town|}}}|{{{location_city|}}}}} | label17 = Pais | data17 = {{{location_country|}}} | label18 = [[Geographic coordinate system|Coordinates]] | data18 = {{#if:{{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates|}}}|type:landmark|{{#if:{{{location_country|}}}|region:{{Country abbreviation|{{{location_country}}}}}}}}}|}} | label19 = {{if empty|{{{grid_name|}}}|Grid&nbsp;position}} | data19 = {{{grid_position|}}} | label20 = Elevation | data20 = {{{altitude|}}} | label21 = Current tenants | data21 = {{{current_tenants|}}} | label22 = Named for | data22 = {{{namesake|}}} | label23 = Year(s) built | data23 = {{{years_built|}}} | label24 = Groundbreaking | data24 = {{{groundbreaking_date|}}} | label25 = Construction started | data25 = {{{start_date|{{{construction_start_date|}}}}}} | label26 = Construction stopped | data26 = {{{stop_date|{{{construction_stop_date|}}}}}} | label27 = Topped-out | data27 = {{{topped_out_date|}}} | rowclass28= note | label28 = {{#if:{{{est_completion|}}}|Estimated completion|{{#if:{{{completion_date|}}}|Completed}} }} | data28 = {{if empty|{{{est_completion|}}}|{{{completion_date|}}} }} | label29 = {{#if:{{{opened|{{{opened_date|}}}}}}|{{#iferror:{{#ifexpr: {{#time:U|{{Plain text|1={{MultiReplace|1={{{opened|{{{opened_date}}}}}}|2=%<.*%>|3=|4=%s|5=}}}}}}>{{#time:U}} |Opening|Opened}}|Opened}}|Opening}} | data29 = {{if empty|{{{opened_date|}}}|{{{opened|}}}|{{{opening_date|}}}|{{{opening|}}}}} | label30 = Ya inaugura | data30 = {{{inauguration_date|}}} | label31 = Relocated | data31 = {{{relocated_date|}}} | label32 = Renovated | data32 = {{{renovation_date|}}} | label33 = Closed | data33 = {{{closing_date|}}} | rowclass34= note | label34 = {{#if:{{{demolition_date|}}}{{{date_demolished|}}}{{{demolished_date|}}}|Demolished|Destroyed}} | data34 = {{if empty|{{{demolition_date|}}}|{{{date_demolished|}}}|{{{demolished_date|}}}|{{{destruction_date|}}}|{{{destroyed|}}}}} | label35 = Cost | data35 = {{{cost|}}} | label36 = Renovation cost | data36 = {{{ren_cost|}}} | label37 = Client | data37 = {{{client|}}} | label38 = Owner | data38 = {{{owner|}}} | label39 = {{#if:{{{governing_body|}}}|Governing body|{{#if:{{{landlord|}}}|Landlord|Management}}}} | data39 = {{#if:{{{governing_body|}}}|{{{governing_body|}}}|{{#if:{{{landlord|}}}|{{{landlord}}}|{{{management|{{{operator|}}}}}}}}}} | label40 = Affiliation | data40 = {{{affiliation|}}} | header41 = {{#if:{{{architectural|}}}{{{tip|}}}{{{antenna_spire|}}}{{{roof|}}}{{{top_floor|}}}{{{observatory|}}}|Height}} | label42 = Height | data42 = {{{height|}}} | label43 = Architectural | data43 = {{{architectural|}}} | label44 = Tip | data44 = {{{tip|}}} | label45 = Antenna spire | data45 = {{{antenna_spire|}}} | label46 = Roof | data46 = {{{roof|}}} | label47 = Top floor | data47 = {{{top_floor|}}} | label48 = Observatory | data48 = {{{observatory|}}} | header49 = {{#if:{{{diameter|}}}{{{circumference|}}}{{{weight|}}}{{{other_dimensions|}}}|Dimensions}} | label50 = Diameter | data50 = {{{diameter|}}} | label51 = Circumference | data51 = {{{circumference|}}} | label52 = Weight | data52 = {{{weight|}}} | label53 = Other dimensions | data53 = {{{other_dimensions|}}} | header54 = {{#if:{{{structural_system|}}}{{{material|}}}{{{size|}}}{{{floor_count|{{{floors|}}}}}}{{{floor_area|}}}{{{elevator_count|}}}|Technical details}} | label55 = Structural system | data55 = {{{structural_system|}}} | class55 = category | label56 = Material | data56 = {{{material|}}} | class56 = category | label57 = Size | data57 = {{{size|}}} | label58 = Floor count | data58 = {{{floor_count|{{{floors|}}}}}} | label59 = Floor area | data59 = {{{floor_area|}}} | label60 = Lifts/elevators | data60 = {{{elevator_count|}}} | label61 = Grounds | data61 = {{{grounds_area|}}} | header62 = {{#if:{{{architect|}}}{{{architecture_firm|}}}{{{developer|}}}{{{engineer|}}}{{{structural_engineer|}}}{{{civil_engineer|}}}{{{other_designers|}}}{{{quantity_surveyor|}}}{{{main_contractor|}}}{{{main_contractors|}}}|Diseño y construccion}} | label63 = (Maga) arquitecto | data63 = {{{architect|}}} | label64 = Architecture firm | data64 = {{{architecture_firm|}}} | label65 = Developer | data65 = {{{developer|}}} | label66 = Engineer | data66 = {{{engineer|}}} | label67 = Structural engineer | data67 = {{{structural_engineer|}}} | label68 = Services engineer | data68 = {{{services_engineer|}}} | label69 = Civil engineer | data69 = {{{civil_engineer|}}} | label70 = Other designers | data70 = {{{other_designers|}}} | label71 = Quantity surveyor | data71 = {{{quantity_surveyor|}}} | label72 = Main contractor | data72 = {{{main_contractor|{{{main_contractors|}}}}}} | rowclass73 = note | label73 = Awards and prizes | data73 = {{{awards|}}} | label74 = Designations | data74 = {{{designations|}}} | label75 = Known for | data75 = {{{known_for|}}} | header76 = {{#if:{{{ren_architect|}}}{{{ren_firm|}}}{{{ren_engineer|}}}{{{ren_str_engineer|}}}{{{ren_serv_engineer|}}}{{{ren_civ_engineer|}}}{{{ren_oth_designers|}}}{{{ren_qty_surveyor|}}}{{{ren_contractor|}}}{{{ren_awards|}}}|Renovating team}} | rowclass77 = note | label77 = Architect(s) | data77 = {{{ren_architect|}}} | label78 = Renovating firm | data78 = {{{ren_firm|}}} | label79 = Engineer | data79 = {{{ren_engineer|}}} | label80 = Structural engineer | data80 = {{{ren_str_engineer|}}} | label81 = Services engineer | data81 = {{{ren_serv_engineer|}}} | label82 = Civil engineer | data82 = {{{ren_civ_engineer|}}} | label83 = Other designers | data83 = {{{ren_oth_designers|}}} | label84 = Quantity surveyor | data84 = {{{ren_qty_surveyor|}}} | label85 = Main contractor | data85 = {{{ren_contractor|}}} | rowclass86 = note | label86 = Awards and prizes | data86 = {{{ren_awards|}}} | header87 = {{#if:{{{seating_type|}}}{{{capacity|{{{seating_capacity|}}}}}}{{{number_of_stores|}}}{{{number_of_anchors|}}}{{{unit_count|}}}{{{number_of_units|}}}{{{number_of_rooms|}}}{{{room_count|}}}{{{rooms|}}}{{{number_of_suites|}}}{{{suite_count|}}}{{{suites|}}}{{{number_of_restaurants|}}}{{{number_of_bars|}}}{{{facilities|}}}{{{parking|}}}{{{public_transit|}}}|Other information}} | label88 = Seating type | data88 = {{{seating_type|}}} | label89 = Seating capacity | data89 = {{{capacity|{{{seating_capacity|}}}}}} | label90 = Number of stores | data90 = {{{number_of_stores|}}} | label91 = Number of anchors | data91 = {{{number_of_anchors|}}} | label92 = Number of {{#if:{{{unit_count|}}}{{{number_of_units|}}}|units|rooms}} | data92 = {{if empty|{{{unit_count|}}}|{{{number_of_units|}}}|{{{number_of_rooms|}}}|{{{room_count|}}}|{{{rooms|}}}}} | label93 = Number of suites | data93 = {{if empty|{{{number_of_suites|}}}|{{{suite_count|}}}|{{{suites|}}}}} | label94 = Number of restaurants | data94 = {{{number_of_restaurants|}}} | label95 = Number of bars | data95 = {{{number_of_bars|}}} | label96 = Facilities | data96 = {{{facilities|}}} | label97 = Parking | data97 = {{{parking|}}} | label98 = Public transit access | data98 = {{{public_transit|}}} | header99 = {{#if:{{{website|}}}|Website}} | data100 = {{{website|}}} | header101 = {{{nrhp|{{{embedded|{{{module|}}}}}}}}} | header102 = {{#if:{{{references|}}}|References}} | data103 = {{{references|}}} | belowstyle = {{{belowstyle|}}} | below = {{{footnotes|}}} }}<!-- end of infobox -->{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox building with unsupported parameters|_VALUE_{{PAGENAME}}]]}}|preview = Page using [[Template:Infobox building]] with unknown parameter "_VALUE_"|ignoreblank=y | address | affiliation | alt | alternate_name | alternate_names | altitude | antenna_spire | architect | architectural | architectural_style | architecture_firm | awards | belowstyle | building_name | building_type | canceled | cancelled | capacity | caption | chain | circumference | civil_engineer | classification | client | closing_date | completion_date | construction_start_date | construction_stop_date | coordinates | cost | current_tenants | date_demolished | demolished_date | demolition_date | designations | destroyed | destruction_date | developer | diameter | elevator_count | embedded | engineer | est_completion | etymology | facilities | floor_area | floor_count | floors | footnotes | former_name | former_names | governing_body | grid_name | grid_position | years_built | groundbreaking_date | grounds_area | height | highest_end | highest_next | highest_prev | highest_reflabel | highest_region | highest_start | hotel_chain | hotel_name | image | image_alt | image_caption | image_map | image_size | image_upright | image_width | inauguration_date | known_for | landlord | location | location_city | location_country | location_town | logo | logo_alt | logo_caption | logo_size | logo_upright | logo_width | main_contractor | main_contractors | management | map_caption | map_dot_label | map_dot_mark | map_size | map_type | material | module | name | namesake | native_building_name | native_name | native_name_lang | nrhp | number_of_anchors | number_of_bars | number_of_restaurants | number_of_rooms | number_of_stores | number_of_suites | number_of_units | observatory | opened | opened_date | opening | opening_date | operator | other_designers | other_dimensions | owner | parking | public_transit | pushpin_label | pushpin_map | pushpin_map_alt | pushpin_map_caption | pushpin_mapsize | pushpin_relief | qid | quantity_surveyor | references | relief | relocated_date | ren_architect | ren_awards | ren_civ_engineer | ren_contractor | ren_cost | ren_engineer | ren_firm | ren_oth_designers | ren_qty_surveyor | ren_serv_engineer | ren_str_engineer | renovation_date | roof | room_count | rooms | seating_capacity | seating_type | services_engineer | size | start_date | status | stop_date | structural_engineer | structural_system | style | suite_count | suites | tip | top_floor | topped_out | topped_out_date | unit_count | website | weight | embed | map_alt | mapframe | mapframe-caption | mapframe-custom | mapframe-id | mapframe-coord | mapframe-wikidata | mapframe-point | mapframe-shape | mapframe-line | mapframe-frame-width | mapframe-frame-height | mapframe-shape-fill | mapframe-shape-fill-opacity | mapframe-stroke-color | mapframe-stroke-colour | mapframe-stroke-width | mapframe-marker | mapframe-marker-color | mapframe-marker-colour | mapframe-geomask | mapframe-geomask-stroke-color | mapframe-geomask-stroke-colour | mapframe-geomask-stroke-width | mapframe-geomask-fill | mapframe-geomask-fill-opacity | mapframe-zoom | mapframe-length_km | mapframe-length_mi | mapframe-area_km2 | mapframe-area_mi2 | mapframe-frame-coordinates | mapframe-frame-coord | mapframe-switcher | mapframe-height | mapframe-width }}<!-- -->{{main other|1={{#if:{{{topped_out|}}}|[[Category:Pages using infobox building with topped out]]}}{{#if:{{{canceled|}}}{{{cancelled|}}}|[[Category:Pages using infobox building with cancelled]]}}<!-- -->{{#if:{{both|{{{height|}}}|{{{architectural|}}}{{{tip|}}}{{{antenna_spire|}}}{{{roof|}}}{{{top_floor|}}}{{{observatory|}}}}}|[[Category:Pages using infobox building with parameter errors]]}} }}<!-- --><noinclude>{{documentation}}</noinclude> t38dwk1gnvbzbxgi38oxowvpvixob5x Módulo:Infobox mapframe 828 22367 116649 115730 2025-07-03T14:09:32Z Aristorkle 14080 synced with enwiki 116649 Scribunto text/plain local mf = require('Module:Mapframe') local getArgs = require('Module:Arguments').getArgs local yesno = require('Module:Yesno') local infoboxImage = require('Module:InfoboxImage').InfoboxImage -- Defaults local DEFAULT_FRAME_WIDTH = "270" local DEFAULT_FRAME_HEIGHT = "200" local DEFAULT_ZOOM = 10 local DEFAULT_GEOMASK_STROKE_WIDTH = "1" local DEFAULT_GEOMASK_STROKE_COLOR = "#777777" local DEFAULT_GEOMASK_FILL = "#888888" local DEFAULT_GEOMASK_FILL_OPACITY = "0.5" local DEFAULT_SHAPE_STROKE_WIDTH = "3" local DEFAULT_SHAPE_STROKE_COLOR = "#FF0000" local DEFAULT_SHAPE_FILL = "#606060" local DEFAULT_SHAPE_FILL_OPACITY = "0.5" local DEFAULT_LINE_STROKE_WIDTH = "5" local DEFAULT_LINE_STROKE_COLOR = "#FF0000" local DEFAULT_MARKER_COLOR = "#5E74F3" -- Trim whitespace from args, and remove empty args function trimArgs(argsTable) local cleanArgs = {} for key, val in pairs(argsTable) do if type(val) == 'string' then val = val:match('^%s*(.-)%s*$') if val ~= '' then cleanArgs[key] = val end else cleanArgs[key] = val end end return cleanArgs end function getBestStatement(item_id, property_id) if not(item_id) or not(mw.wikibase.isValidEntityId(item_id)) or not(mw.wikibase.entityExists(item_id)) then return false end local statements = mw.wikibase.getBestStatements(item_id, property_id) if not statements or #statements == 0 then return false end local hasNoValue = ( statements[1].mainsnak and statements[1].mainsnak.snaktype == 'novalue' ) if hasNoValue then return false end return statements[1] end function hasWikidataProperty(item_id, property_id) return getBestStatement(item_id, property_id) and true or false end function getStatementValue(statement) return statement and statement.mainsnak and statement.mainsnak.datavalue and statement.mainsnak.datavalue.value or nil end function relatedEntity(item_id, property_id) local value = getStatementValue( getBestStatement(item_id, property_id) ) return value and value.id or false end function idType(id) if not id then return nil elseif mw.ustring.match(id, "[Pp]%d+") then return "property" elseif mw.ustring.match(id, "[Qq]%d+") then return "item" else return nil end end function shouldAutoRun(frame) -- Check if should be running local pargs = frame.getParent(frame).args local explicitlyOn = yesno(mw.text.trim(pargs.mapframe or "")) -- true of false or nil if pargs.coordinates == "&#123;&#123;&#123;coordinates&#125;&#125;&#125;" then explicitlyOn = false end local onByDefault = (explicitlyOn == nil) and yesno(mw.text.trim(frame.args.onByDefault or ""), false) -- true or false return explicitlyOn or onByDefault end function argsFromAuto(frame) -- Get args from the frame (invoke call) and the parent (template call). -- Frame arguments are default values which are overridden by parent values -- when both are present local args = getArgs(frame, {parentFirst = true}) -- Discard args not prefixed with "mapframe-", remove that prefix from those that remain local fixedArgs = {} for name, val in pairs(args) do local fixedName = string.match(name, "^mapframe%-(.+)$" ) if fixedName then fixedArgs[fixedName] = val -- allow coord, coordinates, etc to be unprefixed elseif name == "coordinates" or name == "coord" or name == "coordinate" and not fixedArgs.coord then fixedArgs.coord = val -- allow id, qid to be unprefixed, map to id (if not already present) elseif name == "id" or name == "qid" and not fixedArgs.id then fixedArgs.id = val end end return fixedArgs end local p = {} p.autocaption = function(frame) if not shouldAutoRun(frame) then return "" end local args = argsFromAuto(frame) if args.caption then return args.caption elseif args.switcher then return "" end local maskItem local maskType = idType(args.geomask) if maskType == 'item' then maskItem = args.geomask elseif maskType == "property" then maskItem = relatedEntity(args.id or mw.wikibase.getEntityIdForCurrentPage(), args.geomask) end local maskItemLabel = maskItem and mw.wikibase.getLabel( maskItem ) return maskItemLabel and "Location in "..maskItemLabel or "" end function parseCustomWikitext(customWikitext) -- infoboxImage will format an image if given wikitext containing an -- image, or else pass through the wikitext unmodified return infoboxImage({ args = { image = customWikitext } }) end p.auto = function(frame) if not shouldAutoRun(frame) then return "" end local args = argsFromAuto(frame) if args.custom then return frame:preprocess(parseCustomWikitext(args.custom)) end local mapframe = p._main(args) return frame:preprocess(mapframe) end p.main = function(frame) local parent = frame.getParent(frame) local parentArgs = parent.args local mapframe = p._main(parentArgs) return frame:preprocess(mapframe) end p._main = function(_config) -- `config` is the args passed to this module local config = trimArgs(_config) -- Require wikidata item, or specified coords local wikidataId = config.id or mw.wikibase.getEntityIdForCurrentPage() if not(wikidataId) and not(config.coord) then return '' end -- Require coords (specified or from wikidata), so that map will be centred somewhere -- (P625 = coordinate location) local hasCoordinates = hasWikidataProperty(wikidataId, 'P625') or config.coordinates or config.coord if not hasCoordinates then return '' end -- `args` is the arguments which will be passed to the mapframe module local args = {} -- Some defaults/overrides for infobox presentation args.display = "inline" args.frame = "yes" args.plain = "yes" args["frame-width"] = config["frame-width"] or config.width or DEFAULT_FRAME_WIDTH args["frame-height"] = config["frame-height"] or config.height or DEFAULT_FRAME_HEIGHT args["frame-align"] = "center" args["frame-coord"] = config["frame-coordinates"] or config["frame-coord"] or "" -- Note: config["coordinates"] or config["coord"] should not be used for the alignment of the frame; -- see talk page ( https://en.wikipedia.org/wiki/Special:Diff/876492931 ) -- deprecated lat and long parameters args["frame-lat"] = config["frame-lat"] or config["frame-latitude"] or "" args["frame-long"] = config["frame-long"] or config["frame-longitude"] or "" -- if zoom isn't specified from config: local zoom = config.zoom if not zoom then -- Calculate zoom from length or area (converted to km or km2) -- Zoom so that length or area is completely included in mapframe local getZoom = require('Module:Infobox dim')._zoom zoom = getZoom({length_km=config.length_km, length_mi=config.length_mi, width_km=config.width_km, width_mi=config.width_mi, area_km2=config.area_km2, area_mi2=config.area_mi2, area_ha=config.area_ha, area_acre=config.area_acre, type=config.type, population=config.population, viewport_px=math.min(args["frame-width"],args["frame-height"])}) end args.zoom = zoom or DEFAULT_ZOOM -- Conditionals: whether point, geomask should be shown local hasOsmRelationId = hasWikidataProperty(wikidataId, 'P402') -- P402 is OSM relation ID local shouldShowPointMarker; if config.point == "on" then shouldShowPointMarker = true elseif config.point == "none" then shouldShowPointMarker = false else shouldShowPointMarker = not(hasOsmRelationId) or (config.marker and config.marker ~= 'none') or (config.coordinates or config.coord) end local shouldShowShape = config.shape ~= 'none' local shapeType = config.shape == 'inverse' and 'shape-inverse' or 'shape' local shouldShowLine = config.line ~= 'none' local maskItem local useWikidata = wikidataId and true or false -- Use shapes/lines based on wikidata id, if there is one -- But do not use wikidata when local coords are specified (and not turned off), unless explicitly set if useWikidata and config.coord and shouldShowPointMarker then useWikidata = config.wikidata and true or false end -- Switcher if config.switcher == "zooms" then -- switching between zoom levels local maxZoom = math.max(tonumber(args.zoom), 3) -- what zoom would have otherwise been (if 3 or more, otherwise 3) local minZoom = 1 -- completely zoomed out local midZoom = math.floor((maxZoom + minZoom)/2) -- midway between maxn and min args.switch = "zoomed in, zoomed midway, zoomed out" args.zoom = string.format("SWITCH:%d,%d,%d", maxZoom, midZoom, minZoom) elseif config.switcher == "auto" then -- switching between P276 and P131 areas with recursive lookup, e.g. item's city, -- that city's state, and that state's country args.zoom = nil -- let kartographer determine the zoom local maskLabels = {} local maskItems = {} local maskItemId = relatedEntity(wikidataId, "P276") or relatedEntity(wikidataId, "P131") local maskLabel = mw.wikibase.getLabel(maskItemId) while maskItemId and maskLabel and mw.text.trim(maskLabel) ~= "" do table.insert(maskLabels, maskLabel) table.insert(maskItems, maskItemId) maskItemId = maskItemId and relatedEntity(maskItemId, "P131") maskLabel = maskItemId and mw.wikibase.getLabel(maskItemId) end if #maskLabels > 1 then args.switch = table.concat(maskLabels, "###") maskItem = "SWITCH:" .. table.concat(maskItems, ",") elseif #maskLabels == 1 then maskItem = maskItemId[1] end elseif config.switcher == "geomasks" and config.geomask then -- switching between items in geomask parameter args.zoom = nil -- let kartographer determine the zoom local separator = (mw.ustring.find(config.geomask, "###", 0, true ) and "###") or (mw.ustring.find(config.geomask, ";", 0, true ) and ";") or "," local pattern = "%s*"..separator.."%s*" local maskItems = mw.text.split(mw.ustring.gsub(config.geomask, "SWITCH:", ""), pattern) local maskLabels = {} if #maskItems > 1 then for i, item in ipairs(maskItems) do table.insert(maskLabels, mw.wikibase.getLabel(item)) end args.switch = table.concat(maskLabels, "###") maskItem = "SWITCH:" .. table.concat(maskItems, ",") end end -- resolve geomask item id (if not using geomask switcher) if not maskItem then -- local maskType = idType(config.geomask) if maskType == 'item' then maskItem = config.geomask elseif maskType == "property" then maskItem = relatedEntity(wikidataId, config.geomask) end end -- Keep track of arg numbering local argNumber = '' local function incrementArgNumber() if argNumber == '' then argNumber = 2 else argNumber = argNumber + 1 end end -- Geomask if maskItem then args["type"..argNumber] = "shape-inverse" args["id"..argNumber] = maskItem args["stroke-width"..argNumber] = config["geomask-stroke-width"] or DEFAULT_GEOMASK_STROKE_WIDTH args["stroke-color"..argNumber] = config["geomask-stroke-color"] or config["geomask-stroke-colour"] or DEFAULT_GEOMASK_STROKE_COLOR args["fill"..argNumber] = config["geomask-fill"] or DEFAULT_GEOMASK_FILL args["fill-opacity"..argNumber] = config["geomask-fill-opacity"] or DEFAULT_SHAPE_FILL_OPACITY -- Let kartographer determine zoom and position, unless it is explicitly set in config if not config.zoom and not config.switcher then args.zoom = nil args["frame-coord"] = nil args["frame-lat"] = nil args["frame-long"] = nil local maskArea = getStatementValue( getBestStatement(maskItem, 'P2046') ) end incrementArgNumber() -- Hack to fix phab:T255932 if not args.zoom then args["type"..argNumber] = "line" args["id"..argNumber] = maskItem args["stroke-width"..argNumber] = 0 incrementArgNumber() end end -- Shape (or shape-inverse) if useWikidata and shouldShowShape then args["type"..argNumber] = shapeType if config.id then args["id"..argNumber] = config.id end args["stroke-width"..argNumber] = config["shape-stroke-width"] or config["stroke-width"] or DEFAULT_SHAPE_STROKE_WIDTH args["stroke-color"..argNumber] = config["shape-stroke-color"] or config["shape-stroke-colour"] or config["stroke-color"] or config["stroke-colour"] or DEFAULT_SHAPE_STROKE_COLOR args["fill"..argNumber] = config["shape-fill"] or DEFAULT_SHAPE_FILL args["fill-opacity"..argNumber] = config["shape-fill-opacity"] or DEFAULT_SHAPE_FILL_OPACITY incrementArgNumber() end -- Line if useWikidata and shouldShowLine then args["type"..argNumber] = "line" if config.id then args["id"..argNumber] = config.id end args["stroke-width"..argNumber] = config["line-stroke-width"] or config["stroke-width"] or DEFAULT_LINE_STROKE_WIDTH args["stroke-color"..argNumber] = config["line-stroke-color"] or config["line-stroke-colour"] or config["stroke-color"] or config["stroke-colour"] or DEFAULT_LINE_STROKE_COLOR incrementArgNumber() end -- Point if shouldShowPointMarker then args["type"..argNumber] = "point" if config.id then args["id"..argNumber] = config.id end if config.coord then args["coord"..argNumber] = config.coord end if config.marker then args["marker"..argNumber] = config.marker end args["marker-color"..argNumber] = config["marker-color"] or config["marker-colour"] or DEFAULT_MARKER_COLOR incrementArgNumber() end local mapframe = args.switch and mf.multi(args) or mf._main(args) local tracking = hasOsmRelationId and '' or '[[Category:Infobox mapframe without OSM relation ID on Wikidata]]' return mapframe .. tracking end return p gkoia9uxjl25fy17qit7w1ikmu7x1d8 Plantilla:Convinfobox 10 22414 116677 101341 2025-07-03T15:00:43Z Aristorkle 14080 synced with enwiki 116677 wikitext text/x-wiki {{#invoke:ConvertIB|convert}}<noinclude>{{documentation}}</noinclude> kg7aax967oy52t5apd4ectiojcwz3nb Plantilla:Infobox organicacion 10 25924 116630 116628 2025-07-03T12:31:54Z Aristorkle 14080 partially localized 116630 wikitext text/x-wiki {{Infobox | bodyclass = vcard | bodystyle = {{{bodystyle|}}} | titleclass = fn org | title = {{{name|{{{organization_name|{{{Non-profit_name|{{PAGENAMEBASE}}}}}}}}}}} | subheader = {{#if:{{{full_name|{{{full name|}}}}}}|<div {{#if:{{{full_name_lang|{{{full name lang|}}}}}}|lang="{{{full_name_lang|{{{full name lang|}}}}}}"}}>{{{full_name|{{{full name|}}}}}}</div>}} | subheader2 = {{#if:{{{native_name|{{{native name|}}}}}}|{{#if:{{{native_name_lang|}}}|<div class="nickname" lang="{{{native_name_lang}}}">}}{{{native_name|{{{native name}}}}}}{{#if:{{{native_name_lang|}}}|</div>}}}} | imageclass = logo | imagestyle = | image = {{#invoke:InfoboxImage|InfoboxImage |image={{{logo|{{{organization_logo|{{{Non-profit_logo|}}}}}}}}} |size={{{logo_size|}}} |sizedefault=frameless |alt={{{logo_alt|}}} |upright={{{upright|1}}} }} | caption = {{{logo_caption|}}} | image2 = {{#invoke:InfoboxImage|InfoboxImage |image={{{image|}}} |size={{{image_size|{{{imagesize|{{{size|}}}}}}}}} |sizedefault=frameless |upright={{{image_upright|1}}} |alt={{{image_alt|{{{alt|}}}}}} }} | caption2 = {{{caption|}}} | image3 = {{#invoke:InfoboxImage|InfoboxImage |image={{{map|}}} |size={{{map_size|{{{msize|}}}}}} |sizedefault=250px |upright={{{map_upright|}}} |alt={{{map_alt|{{{malt|}}}}}} }} | caption3 = {{{map_caption|{{{mcaption|}}}}}} | image4 = {{#invoke:InfoboxImage|InfoboxImage |image={{{map2|}}} |size={{{map2_size|}}} |sizedefault=250px |upright={{{map2_upright|}}} |alt={{{map2_alt|}}} }} | caption4 = {{{map2_caption|}}} | image5 = {{#if:{{{pushpin_map|{{{map_type|}}}}}}|{{Location map|{{{pushpin_map|{{{map_type}}}}}} | border = infobox | caption = {{#switch:{{{map_caption|}}}|#default={{{map_caption}}}|none=|=Location within {{#invoke:Location map|data|{{{pushpin_map|{{{map_type}}}}}}|name}}}} | float = center | alt = {{{map_alt|}}} | width = {{#if:{{{map_size|}}}|{{{map_size}}}|220}} | relief = {{{pushpin_relief|{{{map_relief|}}}}}} | label = {{{map_dot_label|}}} | coordinates = {{{coordinates|{{{coords|}}}}}} }}}} | labelstyle = padding-right:0.6em;<!--(to ensure some gap between any (long/unwrapped) labels and subsequent data on same line)--> | label1 = Abreviacion | class1 = nickname | data1 = {{{abbreviation|}}} | label2 = Palayaw | class2 = nickname | data2 = {{{nickname|}}} | label3 = Pronunciation | data3 = {{#if:{{{pronounce|}}}{{{Pronounce|}}}{{{Pronunciation|}}}{{{pronunciation|}}}{{{pronounce comment|}}} |<!-- -->{{Unbulleted list|1={{{pronounce|}}}{{{Pronounce|}}}{{{Pronunciation|}}}{{{pronunciation|}}}{{{pronounce ref|}}}&#x20;{{{pronounce comment|}}}<!-- -->|2={{{pronounce 2|}}} }}}} | label4 = Named after | data4 = {{{named_after|}}} <!-- | label5 = Motto | class5 = note | data5 = {{{motto|{{{organization_motto|{{{pledge|}}}}}}}}} --> | label6 = Predecessor | data6 = {{{predecessor|}}} | label7 = {{#if:{{{merged_label|}}}|{{{merged_label}}}|Merged&nbsp;into}} | data7 = {{{merged|{{{merged_into|}}}}}} | label8 = Successor | data8 = {{{successor|}}} | label9 = {{#if:{{{formation|}}} |Fecha de fundada |{{#if:{{{founded_date|{{{founded|}}}}}}|Founded|Established}} }} | class9 = note | data9 = {{if empty |{{{formation|}}} |{{{established|}}} |{{{founded_date|{{{founded|}}}}}} }} | label10 = {{#if:{{{founders|}}}|Maga fundador |Fundador }} | data10 = {{#if:{{{founders|}}} |{{{founders}}} |{{{founder|}}} }} | label11 = Ya funda na | data11 = {{{founding_location|}}} | label12 = {{#if:{{{defunct|}}}|Defunct|Dissolved}} | data12 = {{{defunct|{{{dissolved|{{{dissolved_date|}}}}}}}}} | label13 = Merger&nbsp;of | data13 = {{{merger|}}} | label14 = Clase | data14 = {{{type|{{{organization_type|{{{Non-profit_type|}}}}}}}}} | label15 = {{longitem |{{#if:{{{vat_id|}}} |[[VAT identification number|VAT ID no.]] |[[Taxpayer Identification Number|Tax ID no.]]}} }} | data15 = {{#if:{{{vat_id|}}} |{{{vat_id}}} |{{{tax_id|}}} }} | label16 = Registration&nbsp;no. | data16 = {{{registration_id|}}} | label17 = Legal status | data17 = {{{status|}}} | label18 = {{#if:{{{focus|{{{foci|}}}}}} |Focus |Purpose}} | data18 = {{#if:{{{focus|{{{foci|}}}}}} |{{{focus|{{{foci|}}}}}} |{{{purpose|}}} }} | label19 = {{longitem|Profesional titulo}} | data19 = {{{professional_title|}}} | label20 = Sede central | data20 = {{{headquarters|}}} | label21 = Locacion | class21 = label | data21 = {{Unbulleted list | 1 = {{comma separated entries | 1 = {{#if:{{{location_city|}}} |<span class="locality">{{{location_city}}}</span>}} | 2 = {{#if:{{{location_country|}}} |<span class="country-name">{{{location_country}}}</span>}} }} | 2 = {{{location|}}} | 3 = {{comma separated entries | 1 = {{#if:{{{location_city2|}}} |<span class="locality">{{{location_city2}}}</span>}} | 2 = {{#if:{{{location_country2|}}} |<span class="country-name">{{{location_country2}}}</span>}} }} | 4 = {{{location2|}}} }} | label22 = Maga locacion | class22 = label | data22 = {{Unbulleted list | 1 = {{comma separated entries | 1 = {{#if:{{{addnl_location_city|}}} |<span class="locality">{{{addnl_location_city}}}</span>}} | 2 = {{#if:{{{addnl_location_country|}}} |<span class="country-name">{{{addnl_location_country}}}</span>}} }} | 2 = {{{addnl_location|{{{additional_location|}}}}}} | 3 = {{comma separated entries | 1 = {{#if:{{{addnl_location_city2|}}} |<span class="locality">{{{addnl_location_city2}}}</span>}} | 2 = {{#if:{{{addnl_location_country2|}}} |<span class="country-name">{{{addnl_location_country2}}}</span>}} }} | 4 = {{{addnl_location2|{{{additional_location2|}}}}}} }} | label23 = Coordinates | data23 = {{{coordinates|{{{coords|}}}}}} | label24 = Origins | data24 = {{{origins|}}} | label25 = {{longitem |{{#if:{{{area_served|}}} |Area served |{{#if:{{{region_served|}}}|Servido region|Region}} }} }} | data25 = {{if empty |{{{area_served|}}} |{{{region_served|}}} |{{{region|}}} }} | label26 = Product{{#if:{{{products|}}}|s}} | data26 = {{#if:{{{products|}}} |{{{products}}} |{{{product|}}} }} | label27 = Services | class27 = note | data27 = {{{services|}}} | label28 = Method{{#if:{{{methods|}}}|s}} | data28 = {{#if:{{{methods|}}} |{{{methods}}} |{{{method|}}} }} | label29 = Field{{#if:{{{fields|}}}|s}} | data29 = {{#if:{{{fields|}}} |{{{fields}}} |{{{field|}}} }} | label30 = Members{{#if:{{{num_members|{{{members|}}}}}}||hip}} | data30 = {{#if:{{{num_members|{{{members|}}}}}} |{{{num_members|{{{members}}}}}} |{{{membership|}}} }} {{#if:{{{num_members_year|{{{membership_year|}}}}}} |({{{num_members_year|{{{membership_year|}}}}}})}} | label31 = {{longitem |{{#if:{{{languages|}}}|Maga lenguajes oficial|Lenguaje oficial}} }} | data31 = {{#if:{{{languages|}}} |{{{languages}}} |{{{language|}}} }} | label32 = {{#if:{{{owners|}}}|Maga dueño|Dueño}} | data32 = {{#if:{{{owners|}}} |{{{owners}}} |{{{owner|}}} }} | label33 = {{longitem|{{#if:{{{gen_sec|}}}|General Secretary|Secretary General}}}} | data33 = {{#if:{{{general|}}} |{{{general}}} |{{#if:{{{gen_sec|}}} |{{{gen_sec}}} |{{{sec_gen|}}} }}}} | label34 = {{#if:{{{leader_title|}}} |{{longitem|{{{leader_title}}}}} |Leader}} | data34 = {{{leader_name|}}} | label35 = {{longitem|{{{leader_title2}}}}} | data35 = {{#if:{{{leader_title2|}}} |{{{leader_name2|}}} }} | label36 = {{longitem|{{{leader_title3}}}}} | data36 = {{#if:{{{leader_title3|}}} |{{{leader_name3|}}} }} | label37 = {{longitem|{{{leader_title4}}}}} | data37 = {{#if:{{{leader_title4|}}} |{{{leader_name4|}}} }} | label38 = {{longitem|[[Board of directors|{{Wrap|Board&nbsp;of directors}}]]}} | data38 = {{{board_of_directors|}}} | label39 = {{longitem|Key people}} | data39 = {{{key_people|}}} | label40 = {{#if:{{{main_organ|}}} |{{longitem|Main organ}} |Main organ}} | data40 = {{#if:{{{main_organ|}}} |{{{main_organ}}} }} | label41 = {{#if:{{{publication|}}} |{{longitem|Publication}} |Publication}} | data41 = {{#if:{{{publication|}}} |{{{publication}}} |{{{publication|{{{journal|}}}}}} }} | label42 = {{longitem|Parent organi{{#if:{{{parent_organisation|}}}|s|z}}ation}} | data42 = {{#if:{{{parent_organisation|}}} |{{{parent_organisation}}} |{{{parent_organization|}}} }} | label43 = [[Subsidiary|Subsidiaries]] | data43 = {{#if:{{{subsidiaries|}}} |{{{subsidiaries}}} |{{{subsid|}}} }} | label44= Secessions | data44 = {{{secessions|}}} | label45 = Affiliations | data45 = {{{affiliations|{{{affiliation|}}}}}} | label46 = [[Research Organization Registry|R.O.R.]] Id | data46 = {{{ror_id|}}} | label47 = Budget | data47 = {{{budget|}}} {{#if:{{{budget_year|}}} | ({{{budget_year}}}) }} | label48 = Revenue | data48 = {{{revenue|{{{income|}}}}}} {{#if:{{{revenue_year|{{{income_year|}}}}}} |({{{revenue_year|{{{income_year|}}}}}}) }} | label49 = Disbursements | data49 = {{{disbursed|{{{disbursements|{{{disbursement|}}}}}}}}} | label50 = Expenses | data50 = {{{expenses|{{{spent|{{{expense|}}}}}}}}} {{#if:{{{expenses_year|}}}|({{{expenses_year}}}) }} | label51 = {{#if:{{{funders|}}}|Funders|Funding}} | data51 = {{{funders|{{{funding|}}}}}} | label52 = [[Financial endowment|Endowment]] | data52 = {{{endowment|}}} {{#if:{{{endowment_year|}}} | ({{{endowment_year}}}) }} | label53 = {{#if:{{{num_staff|}}}{{{staff|}}} |Staff |Employees}} | data53 = {{if empty |{{{num_staff|}}} |{{{staff|}}} |{{{num_employees|}}} |{{{employees|}}} }} {{#if:{{{num_staff_year|{{{staff_year|{{{num_employees_year|{{{employees_year|}}}}}}}}}}}} |({{{num_staff_year|{{{staff_year|{{{num_employees_year|{{{employees_year|}}}}}}}}}}}})}} | label54 = Volunteers | data54 = {{#if:{{{num_volunteers|}}} |{{{num_volunteers}}} |{{{volunteers|}}} }} {{#if:{{{num_volunteers_year|{{{volunteers_year|}}}}}} |({{{num_volunteers_year|{{{volunteers_year|}}}}}})}} | label55 = Students | data55 = {{{students|}}} {{#if:{{{students_year|}}} | ({{{students_year|}}})}} | label56 = Award(s) | data56 = {{{awards|}}} | label57 = Sitio web | data57 = {{{website|{{{homepage|}}}}}} | label58 = Remarks | data58 = {{{remarks|}}} | label59 = {{longitem|Formalmente ta llama}} | class59 = nickname | data59 = {{if empty |{{{former name|}}} |{{{former_name|}}} |{{{former|}}} |{{{formerly|}}} }} | data99 = {{{module|}}} | belowstyle = border-top:#aaa 1px solid; | below = {{{footnotes|}}} }}<!-- Tracking categories: -->{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox organization with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox organization]] with unknown parameter "_VALUE_"|ignoreblank=y| abbreviation | additional_location | additional_location2 | addnl_location | addnl_location_city | addnl_location_city2 | addnl_location_country | addnl_location_country2 | addnl_location2 | affiliation | affiliations | alt | area_served | awards | board_of_directors | bodystyle | budget | budget_year | caption | coordinates | coords | defunct | disbursed | disbursement | disbursements | dissolved | dissolved_date | employees | employees_year | endowment | endowment_year | established | expense | expenses | expenses_year | field | fields | foci | focus | footnotes | formation | former | former name | former_name | formerly | founded | founded_date | founder | founders | founding_location | full name | full name lang | full_name | full_name_lang | funding | funders | gen_sec | general | headquarters | homepage | image | image_alt | image_size | imagesize | image_upright | income | income_year | journal | key_people | language | languages | leader_name | leader_name2 | leader_name3 | leader_name4 | leader_title | leader_title2 | leader_title3 | leader_title4 | location | location_city | location_city2 | location_country | location_country2 | location2 | logo | logo_alt | logo_caption | logo_size | main_organ | malt | map | map dot label | map_alt | map_caption | map_dot_label | map_relief | map_size | map_type | map2 | map2_alt | map2_caption | map2_size | mcaption | members | membership | membership_year | merged | merged_label | merged_into | merger | method | methods | module | motto | msize | name | named_after | native name | native_name | native_name_lang | nickname | Non-profit_logo | Non-profit_name | Non-profit_type | num_employees | num_employees_year | num_members | num_members_year | num_staff | num_staff_year | num_volunteers | num_volunteers_year | organization_logo | organization_motto | organization_name | organization_type | origins | owner | owners | parent_organisation | parent_organization | pledge | predecessor | product | products | professional_title | pronounce | Pronounce | pronounce 2 | pronounce comment | pronounce ref | Pronunciation | pronunciation | publication | purpose | pushpin_map | pushpin_relief | region | region_served | registration_id | remarks | revenue | revenue_year | ror_id | sec_gen | secessions | services | size | spent | staff | staff_year | status | students | students_year | subsid | subsidiaries | successor | tax_id | type | upright | vat_id | volunteers | volunteers_year | website }}<!--Tracking cat for native name lang parameter-->{{main other|{{#if:{{{native_name|}}}|{{#if:{{{native_name_lang|}}}||[[Category:Infoboxes without native name language parameter]]}}}}| }}{{#if:{{{motto|}}}{{{organization_motto|}}}{{{pledge|}}}|{{main other|[[Category:Pages using infobox organization with motto or pledge]]}}| }}<noinclude> {{documentation}} </noinclude> ct27w1vougaw5h8buxk784o4geaw31t 116633 116630 2025-07-03T12:42:22Z Aristorkle 14080 localized coordinates label 116633 wikitext text/x-wiki {{Infobox | bodyclass = vcard | bodystyle = {{{bodystyle|}}} | titleclass = fn org | title = {{{name|{{{organization_name|{{{Non-profit_name|{{PAGENAMEBASE}}}}}}}}}}} | subheader = {{#if:{{{full_name|{{{full name|}}}}}}|<div {{#if:{{{full_name_lang|{{{full name lang|}}}}}}|lang="{{{full_name_lang|{{{full name lang|}}}}}}"}}>{{{full_name|{{{full name|}}}}}}</div>}} | subheader2 = {{#if:{{{native_name|{{{native name|}}}}}}|{{#if:{{{native_name_lang|}}}|<div class="nickname" lang="{{{native_name_lang}}}">}}{{{native_name|{{{native name}}}}}}{{#if:{{{native_name_lang|}}}|</div>}}}} | imageclass = logo | imagestyle = | image = {{#invoke:InfoboxImage|InfoboxImage |image={{{logo|{{{organization_logo|{{{Non-profit_logo|}}}}}}}}} |size={{{logo_size|}}} |sizedefault=frameless |alt={{{logo_alt|}}} |upright={{{upright|1}}} }} | caption = {{{logo_caption|}}} | image2 = {{#invoke:InfoboxImage|InfoboxImage |image={{{image|}}} |size={{{image_size|{{{imagesize|{{{size|}}}}}}}}} |sizedefault=frameless |upright={{{image_upright|1}}} |alt={{{image_alt|{{{alt|}}}}}} }} | caption2 = {{{caption|}}} | image3 = {{#invoke:InfoboxImage|InfoboxImage |image={{{map|}}} |size={{{map_size|{{{msize|}}}}}} |sizedefault=250px |upright={{{map_upright|}}} |alt={{{map_alt|{{{malt|}}}}}} }} | caption3 = {{{map_caption|{{{mcaption|}}}}}} | image4 = {{#invoke:InfoboxImage|InfoboxImage |image={{{map2|}}} |size={{{map2_size|}}} |sizedefault=250px |upright={{{map2_upright|}}} |alt={{{map2_alt|}}} }} | caption4 = {{{map2_caption|}}} | image5 = {{#if:{{{pushpin_map|{{{map_type|}}}}}}|{{Location map|{{{pushpin_map|{{{map_type}}}}}} | border = infobox | caption = {{#switch:{{{map_caption|}}}|#default={{{map_caption}}}|none=|=Location within {{#invoke:Location map|data|{{{pushpin_map|{{{map_type}}}}}}|name}}}} | float = center | alt = {{{map_alt|}}} | width = {{#if:{{{map_size|}}}|{{{map_size}}}|220}} | relief = {{{pushpin_relief|{{{map_relief|}}}}}} | label = {{{map_dot_label|}}} | coordinates = {{{coordinates|{{{coords|}}}}}} }}}} | labelstyle = padding-right:0.6em;<!--(to ensure some gap between any (long/unwrapped) labels and subsequent data on same line)--> | label1 = Abreviacion | class1 = nickname | data1 = {{{abbreviation|}}} | label2 = Palayaw | class2 = nickname | data2 = {{{nickname|}}} | label3 = Pronunciation | data3 = {{#if:{{{pronounce|}}}{{{Pronounce|}}}{{{Pronunciation|}}}{{{pronunciation|}}}{{{pronounce comment|}}} |<!-- -->{{Unbulleted list|1={{{pronounce|}}}{{{Pronounce|}}}{{{Pronunciation|}}}{{{pronunciation|}}}{{{pronounce ref|}}}&#x20;{{{pronounce comment|}}}<!-- -->|2={{{pronounce 2|}}} }}}} | label4 = Named after | data4 = {{{named_after|}}} <!-- | label5 = Motto | class5 = note | data5 = {{{motto|{{{organization_motto|{{{pledge|}}}}}}}}} --> | label6 = Predecessor | data6 = {{{predecessor|}}} | label7 = {{#if:{{{merged_label|}}}|{{{merged_label}}}|Merged&nbsp;into}} | data7 = {{{merged|{{{merged_into|}}}}}} | label8 = Successor | data8 = {{{successor|}}} | label9 = {{#if:{{{formation|}}} |Fecha de fundada |{{#if:{{{founded_date|{{{founded|}}}}}}|Founded|Established}} }} | class9 = note | data9 = {{if empty |{{{formation|}}} |{{{established|}}} |{{{founded_date|{{{founded|}}}}}} }} | label10 = {{#if:{{{founders|}}}|Maga fundador |Fundador }} | data10 = {{#if:{{{founders|}}} |{{{founders}}} |{{{founder|}}} }} | label11 = Ya funda na | data11 = {{{founding_location|}}} | label12 = {{#if:{{{defunct|}}}|Defunct|Dissolved}} | data12 = {{{defunct|{{{dissolved|{{{dissolved_date|}}}}}}}}} | label13 = Merger&nbsp;of | data13 = {{{merger|}}} | label14 = Clase | data14 = {{{type|{{{organization_type|{{{Non-profit_type|}}}}}}}}} | label15 = {{longitem |{{#if:{{{vat_id|}}} |[[VAT identification number|VAT ID no.]] |[[Taxpayer Identification Number|Tax ID no.]]}} }} | data15 = {{#if:{{{vat_id|}}} |{{{vat_id}}} |{{{tax_id|}}} }} | label16 = Registration&nbsp;no. | data16 = {{{registration_id|}}} | label17 = Legal status | data17 = {{{status|}}} | label18 = {{#if:{{{focus|{{{foci|}}}}}} |Focus |Purpose}} | data18 = {{#if:{{{focus|{{{foci|}}}}}} |{{{focus|{{{foci|}}}}}} |{{{purpose|}}} }} | label19 = {{longitem|Profesional titulo}} | data19 = {{{professional_title|}}} | label20 = Sede central | data20 = {{{headquarters|}}} | label21 = Locacion | class21 = label | data21 = {{Unbulleted list | 1 = {{comma separated entries | 1 = {{#if:{{{location_city|}}} |<span class="locality">{{{location_city}}}</span>}} | 2 = {{#if:{{{location_country|}}} |<span class="country-name">{{{location_country}}}</span>}} }} | 2 = {{{location|}}} | 3 = {{comma separated entries | 1 = {{#if:{{{location_city2|}}} |<span class="locality">{{{location_city2}}}</span>}} | 2 = {{#if:{{{location_country2|}}} |<span class="country-name">{{{location_country2}}}</span>}} }} | 4 = {{{location2|}}} }} | label22 = Maga locacion | class22 = label | data22 = {{Unbulleted list | 1 = {{comma separated entries | 1 = {{#if:{{{addnl_location_city|}}} |<span class="locality">{{{addnl_location_city}}}</span>}} | 2 = {{#if:{{{addnl_location_country|}}} |<span class="country-name">{{{addnl_location_country}}}</span>}} }} | 2 = {{{addnl_location|{{{additional_location|}}}}}} | 3 = {{comma separated entries | 1 = {{#if:{{{addnl_location_city2|}}} |<span class="locality">{{{addnl_location_city2}}}</span>}} | 2 = {{#if:{{{addnl_location_country2|}}} |<span class="country-name">{{{addnl_location_country2}}}</span>}} }} | 4 = {{{addnl_location2|{{{additional_location2|}}}}}} }} | label23 = Coordinadas | data23 = {{{coordinates|{{{coords|}}}}}} | label24 = Origins | data24 = {{{origins|}}} | label25 = {{longitem |{{#if:{{{area_served|}}} |Area served |{{#if:{{{region_served|}}}|Servido region|Region}} }} }} | data25 = {{if empty |{{{area_served|}}} |{{{region_served|}}} |{{{region|}}} }} | label26 = Product{{#if:{{{products|}}}|s}} | data26 = {{#if:{{{products|}}} |{{{products}}} |{{{product|}}} }} | label27 = Services | class27 = note | data27 = {{{services|}}} | label28 = Method{{#if:{{{methods|}}}|s}} | data28 = {{#if:{{{methods|}}} |{{{methods}}} |{{{method|}}} }} | label29 = Field{{#if:{{{fields|}}}|s}} | data29 = {{#if:{{{fields|}}} |{{{fields}}} |{{{field|}}} }} | label30 = Members{{#if:{{{num_members|{{{members|}}}}}}||hip}} | data30 = {{#if:{{{num_members|{{{members|}}}}}} |{{{num_members|{{{members}}}}}} |{{{membership|}}} }} {{#if:{{{num_members_year|{{{membership_year|}}}}}} |({{{num_members_year|{{{membership_year|}}}}}})}} | label31 = {{longitem |{{#if:{{{languages|}}}|Maga lenguajes oficial|Lenguaje oficial}} }} | data31 = {{#if:{{{languages|}}} |{{{languages}}} |{{{language|}}} }} | label32 = {{#if:{{{owners|}}}|Maga dueño|Dueño}} | data32 = {{#if:{{{owners|}}} |{{{owners}}} |{{{owner|}}} }} | label33 = {{longitem|{{#if:{{{gen_sec|}}}|General Secretary|Secretary General}}}} | data33 = {{#if:{{{general|}}} |{{{general}}} |{{#if:{{{gen_sec|}}} |{{{gen_sec}}} |{{{sec_gen|}}} }}}} | label34 = {{#if:{{{leader_title|}}} |{{longitem|{{{leader_title}}}}} |Leader}} | data34 = {{{leader_name|}}} | label35 = {{longitem|{{{leader_title2}}}}} | data35 = {{#if:{{{leader_title2|}}} |{{{leader_name2|}}} }} | label36 = {{longitem|{{{leader_title3}}}}} | data36 = {{#if:{{{leader_title3|}}} |{{{leader_name3|}}} }} | label37 = {{longitem|{{{leader_title4}}}}} | data37 = {{#if:{{{leader_title4|}}} |{{{leader_name4|}}} }} | label38 = {{longitem|[[Board of directors|{{Wrap|Board&nbsp;of directors}}]]}} | data38 = {{{board_of_directors|}}} | label39 = {{longitem|Key people}} | data39 = {{{key_people|}}} | label40 = {{#if:{{{main_organ|}}} |{{longitem|Main organ}} |Main organ}} | data40 = {{#if:{{{main_organ|}}} |{{{main_organ}}} }} | label41 = {{#if:{{{publication|}}} |{{longitem|Publication}} |Publication}} | data41 = {{#if:{{{publication|}}} |{{{publication}}} |{{{publication|{{{journal|}}}}}} }} | label42 = {{longitem|Parent organi{{#if:{{{parent_organisation|}}}|s|z}}ation}} | data42 = {{#if:{{{parent_organisation|}}} |{{{parent_organisation}}} |{{{parent_organization|}}} }} | label43 = [[Subsidiary|Subsidiaries]] | data43 = {{#if:{{{subsidiaries|}}} |{{{subsidiaries}}} |{{{subsid|}}} }} | label44= Secessions | data44 = {{{secessions|}}} | label45 = Affiliations | data45 = {{{affiliations|{{{affiliation|}}}}}} | label46 = [[Research Organization Registry|R.O.R.]] Id | data46 = {{{ror_id|}}} | label47 = Budget | data47 = {{{budget|}}} {{#if:{{{budget_year|}}} | ({{{budget_year}}}) }} | label48 = Revenue | data48 = {{{revenue|{{{income|}}}}}} {{#if:{{{revenue_year|{{{income_year|}}}}}} |({{{revenue_year|{{{income_year|}}}}}}) }} | label49 = Disbursements | data49 = {{{disbursed|{{{disbursements|{{{disbursement|}}}}}}}}} | label50 = Expenses | data50 = {{{expenses|{{{spent|{{{expense|}}}}}}}}} {{#if:{{{expenses_year|}}}|({{{expenses_year}}}) }} | label51 = {{#if:{{{funders|}}}|Funders|Funding}} | data51 = {{{funders|{{{funding|}}}}}} | label52 = [[Financial endowment|Endowment]] | data52 = {{{endowment|}}} {{#if:{{{endowment_year|}}} | ({{{endowment_year}}}) }} | label53 = {{#if:{{{num_staff|}}}{{{staff|}}} |Staff |Employees}} | data53 = {{if empty |{{{num_staff|}}} |{{{staff|}}} |{{{num_employees|}}} |{{{employees|}}} }} {{#if:{{{num_staff_year|{{{staff_year|{{{num_employees_year|{{{employees_year|}}}}}}}}}}}} |({{{num_staff_year|{{{staff_year|{{{num_employees_year|{{{employees_year|}}}}}}}}}}}})}} | label54 = Volunteers | data54 = {{#if:{{{num_volunteers|}}} |{{{num_volunteers}}} |{{{volunteers|}}} }} {{#if:{{{num_volunteers_year|{{{volunteers_year|}}}}}} |({{{num_volunteers_year|{{{volunteers_year|}}}}}})}} | label55 = Students | data55 = {{{students|}}} {{#if:{{{students_year|}}} | ({{{students_year|}}})}} | label56 = Award(s) | data56 = {{{awards|}}} | label57 = Sitio web | data57 = {{{website|{{{homepage|}}}}}} | label58 = Remarks | data58 = {{{remarks|}}} | label59 = {{longitem|Formalmente ta llama}} | class59 = nickname | data59 = {{if empty |{{{former name|}}} |{{{former_name|}}} |{{{former|}}} |{{{formerly|}}} }} | data99 = {{{module|}}} | belowstyle = border-top:#aaa 1px solid; | below = {{{footnotes|}}} }}<!-- Tracking categories: -->{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox organization with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox organization]] with unknown parameter "_VALUE_"|ignoreblank=y| abbreviation | additional_location | additional_location2 | addnl_location | addnl_location_city | addnl_location_city2 | addnl_location_country | addnl_location_country2 | addnl_location2 | affiliation | affiliations | alt | area_served | awards | board_of_directors | bodystyle | budget | budget_year | caption | coordinates | coords | defunct | disbursed | disbursement | disbursements | dissolved | dissolved_date | employees | employees_year | endowment | endowment_year | established | expense | expenses | expenses_year | field | fields | foci | focus | footnotes | formation | former | former name | former_name | formerly | founded | founded_date | founder | founders | founding_location | full name | full name lang | full_name | full_name_lang | funding | funders | gen_sec | general | headquarters | homepage | image | image_alt | image_size | imagesize | image_upright | income | income_year | journal | key_people | language | languages | leader_name | leader_name2 | leader_name3 | leader_name4 | leader_title | leader_title2 | leader_title3 | leader_title4 | location | location_city | location_city2 | location_country | location_country2 | location2 | logo | logo_alt | logo_caption | logo_size | main_organ | malt | map | map dot label | map_alt | map_caption | map_dot_label | map_relief | map_size | map_type | map2 | map2_alt | map2_caption | map2_size | mcaption | members | membership | membership_year | merged | merged_label | merged_into | merger | method | methods | module | motto | msize | name | named_after | native name | native_name | native_name_lang | nickname | Non-profit_logo | Non-profit_name | Non-profit_type | num_employees | num_employees_year | num_members | num_members_year | num_staff | num_staff_year | num_volunteers | num_volunteers_year | organization_logo | organization_motto | organization_name | organization_type | origins | owner | owners | parent_organisation | parent_organization | pledge | predecessor | product | products | professional_title | pronounce | Pronounce | pronounce 2 | pronounce comment | pronounce ref | Pronunciation | pronunciation | publication | purpose | pushpin_map | pushpin_relief | region | region_served | registration_id | remarks | revenue | revenue_year | ror_id | sec_gen | secessions | services | size | spent | staff | staff_year | status | students | students_year | subsid | subsidiaries | successor | tax_id | type | upright | vat_id | volunteers | volunteers_year | website }}<!--Tracking cat for native name lang parameter-->{{main other|{{#if:{{{native_name|}}}|{{#if:{{{native_name_lang|}}}||[[Category:Infoboxes without native name language parameter]]}}}}| }}{{#if:{{{motto|}}}{{{organization_motto|}}}{{{pledge|}}}|{{main other|[[Category:Pages using infobox organization with motto or pledge]]}}| }}<noinclude> {{documentation}} </noinclude> 2x7ieouyvudxqcdgzwawc2q1ept9wc2 116699 116633 2025-07-03T15:45:56Z Aristorkle 14080 Maga lenguajes to Maga lenguaje 116699 wikitext text/x-wiki {{Infobox | bodyclass = vcard | bodystyle = {{{bodystyle|}}} | titleclass = fn org | title = {{{name|{{{organization_name|{{{Non-profit_name|{{PAGENAMEBASE}}}}}}}}}}} | subheader = {{#if:{{{full_name|{{{full name|}}}}}}|<div {{#if:{{{full_name_lang|{{{full name lang|}}}}}}|lang="{{{full_name_lang|{{{full name lang|}}}}}}"}}>{{{full_name|{{{full name|}}}}}}</div>}} | subheader2 = {{#if:{{{native_name|{{{native name|}}}}}}|{{#if:{{{native_name_lang|}}}|<div class="nickname" lang="{{{native_name_lang}}}">}}{{{native_name|{{{native name}}}}}}{{#if:{{{native_name_lang|}}}|</div>}}}} | imageclass = logo | imagestyle = | image = {{#invoke:InfoboxImage|InfoboxImage |image={{{logo|{{{organization_logo|{{{Non-profit_logo|}}}}}}}}} |size={{{logo_size|}}} |sizedefault=frameless |alt={{{logo_alt|}}} |upright={{{upright|1}}} }} | caption = {{{logo_caption|}}} | image2 = {{#invoke:InfoboxImage|InfoboxImage |image={{{image|}}} |size={{{image_size|{{{imagesize|{{{size|}}}}}}}}} |sizedefault=frameless |upright={{{image_upright|1}}} |alt={{{image_alt|{{{alt|}}}}}} }} | caption2 = {{{caption|}}} | image3 = {{#invoke:InfoboxImage|InfoboxImage |image={{{map|}}} |size={{{map_size|{{{msize|}}}}}} |sizedefault=250px |upright={{{map_upright|}}} |alt={{{map_alt|{{{malt|}}}}}} }} | caption3 = {{{map_caption|{{{mcaption|}}}}}} | image4 = {{#invoke:InfoboxImage|InfoboxImage |image={{{map2|}}} |size={{{map2_size|}}} |sizedefault=250px |upright={{{map2_upright|}}} |alt={{{map2_alt|}}} }} | caption4 = {{{map2_caption|}}} | image5 = {{#if:{{{pushpin_map|{{{map_type|}}}}}}|{{Location map|{{{pushpin_map|{{{map_type}}}}}} | border = infobox | caption = {{#switch:{{{map_caption|}}}|#default={{{map_caption}}}|none=|=Location within {{#invoke:Location map|data|{{{pushpin_map|{{{map_type}}}}}}|name}}}} | float = center | alt = {{{map_alt|}}} | width = {{#if:{{{map_size|}}}|{{{map_size}}}|220}} | relief = {{{pushpin_relief|{{{map_relief|}}}}}} | label = {{{map_dot_label|}}} | coordinates = {{{coordinates|{{{coords|}}}}}} }}}} | labelstyle = padding-right:0.6em;<!--(to ensure some gap between any (long/unwrapped) labels and subsequent data on same line)--> | label1 = Abreviacion | class1 = nickname | data1 = {{{abbreviation|}}} | label2 = Palayaw | class2 = nickname | data2 = {{{nickname|}}} | label3 = Pronunciation | data3 = {{#if:{{{pronounce|}}}{{{Pronounce|}}}{{{Pronunciation|}}}{{{pronunciation|}}}{{{pronounce comment|}}} |<!-- -->{{Unbulleted list|1={{{pronounce|}}}{{{Pronounce|}}}{{{Pronunciation|}}}{{{pronunciation|}}}{{{pronounce ref|}}}&#x20;{{{pronounce comment|}}}<!-- -->|2={{{pronounce 2|}}} }}}} | label4 = Named after | data4 = {{{named_after|}}} <!-- | label5 = Motto | class5 = note | data5 = {{{motto|{{{organization_motto|{{{pledge|}}}}}}}}} --> | label6 = Predecessor | data6 = {{{predecessor|}}} | label7 = {{#if:{{{merged_label|}}}|{{{merged_label}}}|Merged&nbsp;into}} | data7 = {{{merged|{{{merged_into|}}}}}} | label8 = Successor | data8 = {{{successor|}}} | label9 = {{#if:{{{formation|}}} |Fecha de fundada |{{#if:{{{founded_date|{{{founded|}}}}}}|Founded|Established}} }} | class9 = note | data9 = {{if empty |{{{formation|}}} |{{{established|}}} |{{{founded_date|{{{founded|}}}}}} }} | label10 = {{#if:{{{founders|}}}|Maga fundador |Fundador }} | data10 = {{#if:{{{founders|}}} |{{{founders}}} |{{{founder|}}} }} | label11 = Ya funda na | data11 = {{{founding_location|}}} | label12 = {{#if:{{{defunct|}}}|Defunct|Dissolved}} | data12 = {{{defunct|{{{dissolved|{{{dissolved_date|}}}}}}}}} | label13 = Merger&nbsp;of | data13 = {{{merger|}}} | label14 = Clase | data14 = {{{type|{{{organization_type|{{{Non-profit_type|}}}}}}}}} | label15 = {{longitem |{{#if:{{{vat_id|}}} |[[VAT identification number|VAT ID no.]] |[[Taxpayer Identification Number|Tax ID no.]]}} }} | data15 = {{#if:{{{vat_id|}}} |{{{vat_id}}} |{{{tax_id|}}} }} | label16 = Registration&nbsp;no. | data16 = {{{registration_id|}}} | label17 = Legal status | data17 = {{{status|}}} | label18 = {{#if:{{{focus|{{{foci|}}}}}} |Focus |Purpose}} | data18 = {{#if:{{{focus|{{{foci|}}}}}} |{{{focus|{{{foci|}}}}}} |{{{purpose|}}} }} | label19 = {{longitem|Profesional titulo}} | data19 = {{{professional_title|}}} | label20 = Sede central | data20 = {{{headquarters|}}} | label21 = Locacion | class21 = label | data21 = {{Unbulleted list | 1 = {{comma separated entries | 1 = {{#if:{{{location_city|}}} |<span class="locality">{{{location_city}}}</span>}} | 2 = {{#if:{{{location_country|}}} |<span class="country-name">{{{location_country}}}</span>}} }} | 2 = {{{location|}}} | 3 = {{comma separated entries | 1 = {{#if:{{{location_city2|}}} |<span class="locality">{{{location_city2}}}</span>}} | 2 = {{#if:{{{location_country2|}}} |<span class="country-name">{{{location_country2}}}</span>}} }} | 4 = {{{location2|}}} }} | label22 = Maga locacion | class22 = label | data22 = {{Unbulleted list | 1 = {{comma separated entries | 1 = {{#if:{{{addnl_location_city|}}} |<span class="locality">{{{addnl_location_city}}}</span>}} | 2 = {{#if:{{{addnl_location_country|}}} |<span class="country-name">{{{addnl_location_country}}}</span>}} }} | 2 = {{{addnl_location|{{{additional_location|}}}}}} | 3 = {{comma separated entries | 1 = {{#if:{{{addnl_location_city2|}}} |<span class="locality">{{{addnl_location_city2}}}</span>}} | 2 = {{#if:{{{addnl_location_country2|}}} |<span class="country-name">{{{addnl_location_country2}}}</span>}} }} | 4 = {{{addnl_location2|{{{additional_location2|}}}}}} }} | label23 = Coordinadas | data23 = {{{coordinates|{{{coords|}}}}}} | label24 = Origins | data24 = {{{origins|}}} | label25 = {{longitem |{{#if:{{{area_served|}}} |Area served |{{#if:{{{region_served|}}}|Servido region|Region}} }} }} | data25 = {{if empty |{{{area_served|}}} |{{{region_served|}}} |{{{region|}}} }} | label26 = Product{{#if:{{{products|}}}|s}} | data26 = {{#if:{{{products|}}} |{{{products}}} |{{{product|}}} }} | label27 = Services | class27 = note | data27 = {{{services|}}} | label28 = Method{{#if:{{{methods|}}}|s}} | data28 = {{#if:{{{methods|}}} |{{{methods}}} |{{{method|}}} }} | label29 = Field{{#if:{{{fields|}}}|s}} | data29 = {{#if:{{{fields|}}} |{{{fields}}} |{{{field|}}} }} | label30 = Members{{#if:{{{num_members|{{{members|}}}}}}||hip}} | data30 = {{#if:{{{num_members|{{{members|}}}}}} |{{{num_members|{{{members}}}}}} |{{{membership|}}} }} {{#if:{{{num_members_year|{{{membership_year|}}}}}} |({{{num_members_year|{{{membership_year|}}}}}})}} | label31 = {{longitem |{{#if:{{{languages|}}}|Maga lenguaje oficial|Lenguaje oficial}} }} | data31 = {{#if:{{{languages|}}} |{{{languages}}} |{{{language|}}} }} | label32 = {{#if:{{{owners|}}}|Maga dueño|Dueño}} | data32 = {{#if:{{{owners|}}} |{{{owners}}} |{{{owner|}}} }} | label33 = {{longitem|{{#if:{{{gen_sec|}}}|General Secretary|Secretary General}}}} | data33 = {{#if:{{{general|}}} |{{{general}}} |{{#if:{{{gen_sec|}}} |{{{gen_sec}}} |{{{sec_gen|}}} }}}} | label34 = {{#if:{{{leader_title|}}} |{{longitem|{{{leader_title}}}}} |Leader}} | data34 = {{{leader_name|}}} | label35 = {{longitem|{{{leader_title2}}}}} | data35 = {{#if:{{{leader_title2|}}} |{{{leader_name2|}}} }} | label36 = {{longitem|{{{leader_title3}}}}} | data36 = {{#if:{{{leader_title3|}}} |{{{leader_name3|}}} }} | label37 = {{longitem|{{{leader_title4}}}}} | data37 = {{#if:{{{leader_title4|}}} |{{{leader_name4|}}} }} | label38 = {{longitem|[[Board of directors|{{Wrap|Board&nbsp;of directors}}]]}} | data38 = {{{board_of_directors|}}} | label39 = {{longitem|Key people}} | data39 = {{{key_people|}}} | label40 = {{#if:{{{main_organ|}}} |{{longitem|Main organ}} |Main organ}} | data40 = {{#if:{{{main_organ|}}} |{{{main_organ}}} }} | label41 = {{#if:{{{publication|}}} |{{longitem|Publication}} |Publication}} | data41 = {{#if:{{{publication|}}} |{{{publication}}} |{{{publication|{{{journal|}}}}}} }} | label42 = {{longitem|Parent organi{{#if:{{{parent_organisation|}}}|s|z}}ation}} | data42 = {{#if:{{{parent_organisation|}}} |{{{parent_organisation}}} |{{{parent_organization|}}} }} | label43 = [[Subsidiary|Subsidiaries]] | data43 = {{#if:{{{subsidiaries|}}} |{{{subsidiaries}}} |{{{subsid|}}} }} | label44= Secessions | data44 = {{{secessions|}}} | label45 = Affiliations | data45 = {{{affiliations|{{{affiliation|}}}}}} | label46 = [[Research Organization Registry|R.O.R.]] Id | data46 = {{{ror_id|}}} | label47 = Budget | data47 = {{{budget|}}} {{#if:{{{budget_year|}}} | ({{{budget_year}}}) }} | label48 = Revenue | data48 = {{{revenue|{{{income|}}}}}} {{#if:{{{revenue_year|{{{income_year|}}}}}} |({{{revenue_year|{{{income_year|}}}}}}) }} | label49 = Disbursements | data49 = {{{disbursed|{{{disbursements|{{{disbursement|}}}}}}}}} | label50 = Expenses | data50 = {{{expenses|{{{spent|{{{expense|}}}}}}}}} {{#if:{{{expenses_year|}}}|({{{expenses_year}}}) }} | label51 = {{#if:{{{funders|}}}|Funders|Funding}} | data51 = {{{funders|{{{funding|}}}}}} | label52 = [[Financial endowment|Endowment]] | data52 = {{{endowment|}}} {{#if:{{{endowment_year|}}} | ({{{endowment_year}}}) }} | label53 = {{#if:{{{num_staff|}}}{{{staff|}}} |Staff |Employees}} | data53 = {{if empty |{{{num_staff|}}} |{{{staff|}}} |{{{num_employees|}}} |{{{employees|}}} }} {{#if:{{{num_staff_year|{{{staff_year|{{{num_employees_year|{{{employees_year|}}}}}}}}}}}} |({{{num_staff_year|{{{staff_year|{{{num_employees_year|{{{employees_year|}}}}}}}}}}}})}} | label54 = Volunteers | data54 = {{#if:{{{num_volunteers|}}} |{{{num_volunteers}}} |{{{volunteers|}}} }} {{#if:{{{num_volunteers_year|{{{volunteers_year|}}}}}} |({{{num_volunteers_year|{{{volunteers_year|}}}}}})}} | label55 = Students | data55 = {{{students|}}} {{#if:{{{students_year|}}} | ({{{students_year|}}})}} | label56 = Award(s) | data56 = {{{awards|}}} | label57 = Sitio web | data57 = {{{website|{{{homepage|}}}}}} | label58 = Remarks | data58 = {{{remarks|}}} | label59 = {{longitem|Formalmente ta llama}} | class59 = nickname | data59 = {{if empty |{{{former name|}}} |{{{former_name|}}} |{{{former|}}} |{{{formerly|}}} }} | data99 = {{{module|}}} | belowstyle = border-top:#aaa 1px solid; | below = {{{footnotes|}}} }}<!-- Tracking categories: -->{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox organization with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox organization]] with unknown parameter "_VALUE_"|ignoreblank=y| abbreviation | additional_location | additional_location2 | addnl_location | addnl_location_city | addnl_location_city2 | addnl_location_country | addnl_location_country2 | addnl_location2 | affiliation | affiliations | alt | area_served | awards | board_of_directors | bodystyle | budget | budget_year | caption | coordinates | coords | defunct | disbursed | disbursement | disbursements | dissolved | dissolved_date | employees | employees_year | endowment | endowment_year | established | expense | expenses | expenses_year | field | fields | foci | focus | footnotes | formation | former | former name | former_name | formerly | founded | founded_date | founder | founders | founding_location | full name | full name lang | full_name | full_name_lang | funding | funders | gen_sec | general | headquarters | homepage | image | image_alt | image_size | imagesize | image_upright | income | income_year | journal | key_people | language | languages | leader_name | leader_name2 | leader_name3 | leader_name4 | leader_title | leader_title2 | leader_title3 | leader_title4 | location | location_city | location_city2 | location_country | location_country2 | location2 | logo | logo_alt | logo_caption | logo_size | main_organ | malt | map | map dot label | map_alt | map_caption | map_dot_label | map_relief | map_size | map_type | map2 | map2_alt | map2_caption | map2_size | mcaption | members | membership | membership_year | merged | merged_label | merged_into | merger | method | methods | module | motto | msize | name | named_after | native name | native_name | native_name_lang | nickname | Non-profit_logo | Non-profit_name | Non-profit_type | num_employees | num_employees_year | num_members | num_members_year | num_staff | num_staff_year | num_volunteers | num_volunteers_year | organization_logo | organization_motto | organization_name | organization_type | origins | owner | owners | parent_organisation | parent_organization | pledge | predecessor | product | products | professional_title | pronounce | Pronounce | pronounce 2 | pronounce comment | pronounce ref | Pronunciation | pronunciation | publication | purpose | pushpin_map | pushpin_relief | region | region_served | registration_id | remarks | revenue | revenue_year | ror_id | sec_gen | secessions | services | size | spent | staff | staff_year | status | students | students_year | subsid | subsidiaries | successor | tax_id | type | upright | vat_id | volunteers | volunteers_year | website }}<!--Tracking cat for native name lang parameter-->{{main other|{{#if:{{{native_name|}}}|{{#if:{{{native_name_lang|}}}||[[Category:Infoboxes without native name language parameter]]}}}}| }}{{#if:{{{motto|}}}{{{organization_motto|}}}{{{pledge|}}}|{{main other|[[Category:Pages using infobox organization with motto or pledge]]}}| }}<noinclude> {{documentation}} </noinclude> n984c5ejjolyc20gu8owrikby290j31 Plantilla:Infobox calle 10 25928 116635 2025-07-03T13:00:07Z Aristorkle 14080 copied from enwiki 116635 wikitext text/x-wiki {{Infobox | child = {{{embed|}}} | bodyclass = vcard | titleclass = fn org street-address | title = {{#if:{{{name|}}}|{{{name}}}|{{#ifeq:{{{embed|}}}|yes||{{PAGENAMEBASE}}}}}} | aboveclass = adr | above = {{{marker_image|}}} | subheader = {{if empty|{{{alternate_name|}}}|{{{other_name|}}}}} | subheaderclass = nickname | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|alt={{{image_alt|}}}}} | caption = {{{caption|}}} | image2 = {{#if:{{{map_type|}}} | {{#if:{{{coordinates|}}}|{{Location map|{{{map_type}}} | coordinates = {{{coordinates|}}} | width = {{{map_size|}}} | float = center | border = infobox | caption = {{{map_caption|Shown within {{#invoke:Location map|data|{{{map_type}}}|name}}}}} }}}} | {{#invoke:InfoboxImage|InfoboxImage|image={{{image_map|{{{map|}}}}}}|size={{{map_size|}}}|sizedefault=frameless|alt={{{map_alt|}}}|{{{map_caption|}}}}} }} | caption2 = {{#if:{{{map_type|}}}||{{{map_caption|}}}}} | image3 = {{#invoke:Infobox mapframe | auto | onByDefault = {{#if:{{{map|}}}{{{image_map|}}}{{{map_type|}}}|no|yes}} | mapframe-stroke-width = {{{mapframe-stroke-width|1.5}}} | mapframe-type = {{{mapframe-type|landmark}}} | mapframe-length_km = {{{mapframe-length_km|{{{length_km|}}}}}} | mapframe-length_mi = {{{mapframe-length_mi|{{{length_mi|}}}}}} }} | caption3 = {{#invoke:Infobox mapframe|autocaption}} | class1 = nickname | label1 = Native name | data1 = {{native name checker|{{{native_name|}}}}} | label2 = Former name(s) | data2 = {{{former_names|}}} | class2 = nickname | label3 = Part of | data3 = {{{part_of|}}} | label4 = Namesake | data4 = {{{namesake|}}} | label5 = Type | data5 = {{{type|}}} | class5 = category | label6 = Owner | data6 = {{{owner|}}} | class6 = agent | label7 = Maintained by | data7 = {{#if:{{{maint|}}}|{{#ifeq:{{{maint|}}}|none||{{{maint}}}}}}} | label8 = Length | data8 = {{if empty|{{{length|}}}|{{convinfobox|{{{length_mi|}}}|mi|{{{length_km|}}}|km}}|{{convinfobox|{{{length_m|}}}|m|{{{length_ft|}}}|ft}}}}{{#if:{{{length|}}}{{{length_mi|}}}{{{length_km|}}}{{{length_m|}}}{{{length_ft|}}}|{{{length_ref|}}}{{#if:{{{length_notes|}}}|<br/>{{{length_notes}}} }} }} | label9 = Width | data9 = {{{width|}}} | label10 = Area | data10 = {{if empty|{{{surface_area|}}}|{{{area|}}}}} |label11 = {{#ifeq:{{{country|}}}|AUS|[[Route number#Australia{{!}}Allocation]]|Component<br />highways}} |data11 = {{{allocation|}}} |label12= Tourist<br />routes |data12= {{{tourist|}}} |label13 = Restrictions |data13 = {{{restrictions|}}} <!-- LOCATION --> | label21 = Addresses | data21 = {{{addresses|}}} | label22 = Location | data22 = {{{location|}}} | class22 = locality | label23 = [[Municipal arrondissements of France|Arrondissement]] | data23 = {{{arrondissement|}}} | label24 = [[Quarter (urban subdivision)|Quarter]] | data24 = {{{quarter|}}} | label25 = {{if empty|{{{postal_code_type|}}}|Postal code}} | data25 = {{{postal_code|}}} | class25 = postal-code | label26 = Nearest {{if empty|{{{metro_system|}}}|metro}} station | data26 = {{{metro|}}} | label27 = Coordinates | data27 = {{#if:{{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates|}}}|type:landmark}} }} | label28 = {{if empty|{{{grid_name|}}}|Grid&nbsp;position}} | data28 = {{{grid_position|}}} <!-- MAJOR JUNCTIONS --> | label41 = {{#if:{{{terminus_a|}}}|{{#if:{{{direction_a|}}}|{{{direction_a}}}&nbsp;end|From}}|}} | data41 = {{{terminus_a|}}} | label42 = Major<br/>junctions | data42 = {{{junction|}}} | label43 = {{#if:{{{terminus_b|}}}|{{#if:{{{direction_b|}}}|{{{direction_b}}}&nbsp;end|To}}|}} | data43 = {{{terminus_b|}}} <!-- ADJACENT --> | label51 = North | data51 = {{{north|}}} | label52 = East | data52 = {{{east|}}} | label53 = South | data53 = {{{south|}}} | label54 = West | data54 = {{{west|}}} <!-- CONSTRUCTION --> | header60 = {{#if:{{{commissioning_date|}}}{{{construction_start_date|}}}{{{completion_date|}}}{{{inauguration_date|}}}{{{demolition_date|}}}{{{main_contractor|}}}{{{cost|}}}{{{references|}}}|Construction}} | label61 = Commissioned | data61 = {{{commissioning_date|}}} | label62 = Construction start | data62 = {{{construction_start_date|}}} | label63 = Completion | data63 = {{{completion_date|}}} | label64 = {{if empty|{{{inauguration_label|}}}|Inauguration}} | data64 = {{{inauguration_date|}}} | label65 = Demolished | data65 = {{{demolition_date|}}} <!-- OTHER --> | header70 = {{#if:{{{known_for|}}}{{{status|}}}{{{designer|}}}{{{website|}}}|Other}} | label71 = Designer | data71 = {{{designer|}}} | label72 = Known for | data72 = {{{known_for|}}} | label73 = Status | data73 = {{{status|}}} | label74 = Website | data74 = {{{website|}}} | rowstyle98 = width:100%; background:none; border-collapse:collapse | data98 = {{#if:{{{browse|}}}|{{#invoke:Road data/browsetable|browsetable|{{{browse}}}}}}} <!-- EMBEDDED --> | data99 = {{{embedded|}}} }}{{#if:{{{arrondissement|}}}{{{quarter|}}}|[[Category:Pages using infobox street with Paris-specific parameters]] }}{{#ifeq:{{{dot_map_base_alt|¶}}}{{{dot_map_marker|¶}}}{{{dot_map_marker_size|¶}}}{{{dot_mapsize|¶}}}{{{dot_x|¶}}}{{{dot_y|¶}}}{{{image_dot_map|¶}}}|¶¶¶¶¶¶¶||[[Category:Pages using infobox street with unknown parameters|¶]]}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox street with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox street]] with unknown parameter "_VALUE_"|ignoreblank=y| addresses | allocation | alternate_name | area | arrondissement | browse | caption | commissioning_date | completion_date | construction_start_date | coordinates | cost | country | demolition_date | designer | direction_a | direction_b | east | embed | embedded | former_names | grid_name | grid_position | image | image_alt | image_map | image_size | inauguration_date | inauguration_label | junction | known_for | length | length_ft | length_km | length_m | length_mi | length_notes | length_ref | location | main_contractor | maint | map | map_alt | map_caption | map_size | map_type | marker_image | metro | metro_system | name | namesake | native_name | north | other_name | owner | part_of | postal_code | postal_code_type | quarter | references | restrictions | south | status | surface_area | terminus_a | terminus_b | tourist | type | website | west | width | mapframe | mapframe-area_km2 | mapframe-area_mi2 | mapframe-caption | mapframe-coord | mapframe-coordinates | mapframe-custom | mapframe-frame-coord | mapframe-frame-coordinates | mapframe-frame-height | mapframe-frame-width | mapframe-geomask | mapframe-geomask-fill | mapframe-geomask-fill-opacity | mapframe-geomask-stroke-color | mapframe-geomask-stroke-colour | mapframe-geomask-stroke-width | mapframe-height | mapframe-id | mapframe-length_km | mapframe-length_mi | mapframe-marker | mapframe-marker-color | mapframe-marker-colour | mapframe-point | mapframe-shape | mapframe-shape-fill | mapframe-shape-fill-opacity | mapframe-stroke-color | mapframe-stroke-colour | mapframe-stroke-width | mapframe-switcher | mapframe-type | mapframe-width | mapframe-wikidata | mapframe-zoom }}<noinclude> {{documentation}} </noinclude> 7cuxgcfwgojdip0m5ioeuqwqrcu20tx 116641 116635 2025-07-03T13:19:59Z Aristorkle 14080 partially localized 116641 wikitext text/x-wiki {{Infobox | child = {{{embed|}}} | bodyclass = vcard | titleclass = fn org street-address | title = {{#if:{{{name|}}}|{{{name}}}|{{#ifeq:{{{embed|}}}|yes||{{PAGENAMEBASE}}}}}} | aboveclass = adr | above = {{{marker_image|}}} | subheader = {{if empty|{{{alternate_name|}}}|{{{other_name|}}}}} | subheaderclass = nickname | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|alt={{{image_alt|}}}}} | caption = {{{caption|}}} | image2 = {{#if:{{{map_type|}}} | {{#if:{{{coordinates|}}}|{{Location map|{{{map_type}}} | coordinates = {{{coordinates|}}} | width = {{{map_size|}}} | float = center | border = infobox | caption = {{{map_caption|Shown within {{#invoke:Location map|data|{{{map_type}}}|name}}}}} }}}} | {{#invoke:InfoboxImage|InfoboxImage|image={{{image_map|{{{map|}}}}}}|size={{{map_size|}}}|sizedefault=frameless|alt={{{map_alt|}}}|{{{map_caption|}}}}} }} | caption2 = {{#if:{{{map_type|}}}||{{{map_caption|}}}}} | image3 = {{#invoke:Infobox mapframe | auto | onByDefault = {{#if:{{{map|}}}{{{image_map|}}}{{{map_type|}}}|no|yes}} | mapframe-stroke-width = {{{mapframe-stroke-width|1.5}}} | mapframe-type = {{{mapframe-type|landmark}}} | mapframe-length_km = {{{mapframe-length_km|{{{length_km|}}}}}} | mapframe-length_mi = {{{mapframe-length_mi|{{{length_mi|}}}}}} }} | caption3 = {{#invoke:Infobox mapframe|autocaption}} | class1 = nickname | label1 = Native name | data1 = {{native name checker|{{{native_name|}}}}} | label2 = Antes (maga) nombre | data2 = {{{former_names|}}} | class2 = nickname | label3 = Part of | data3 = {{{part_of|}}} | label4 = Donde estaba el nombre | data4 = {{{namesake|}}} | label5 = Type | data5 = {{{type|}}} | class5 = category | label6 = Owner | data6 = {{{owner|}}} | class6 = agent | label7 = Ta mantene el | data7 = {{#if:{{{maint|}}}|{{#ifeq:{{{maint|}}}|none||{{{maint}}}}}}} | label8 = Largor | data8 = {{if empty|{{{length|}}}|{{convinfobox|{{{length_mi|}}}|mi|{{{length_km|}}}|km}}|{{convinfobox|{{{length_m|}}}|m|{{{length_ft|}}}|ft}}}}{{#if:{{{length|}}}{{{length_mi|}}}{{{length_km|}}}{{{length_m|}}}{{{length_ft|}}}|{{{length_ref|}}}{{#if:{{{length_notes|}}}|<br/>{{{length_notes}}} }} }} | label9 = Width | data9 = {{{width|}}} | label10 = Area | data10 = {{if empty|{{{surface_area|}}}|{{{area|}}}}} |label11 = {{#ifeq:{{{country|}}}|AUS|[[Route number#Australia{{!}}Allocation]]|Component<br />highways}} |data11 = {{{allocation|}}} |label12= Tourist<br />routes |data12= {{{tourist|}}} |label13 = Restrictions |data13 = {{{restrictions|}}} <!-- LOCATION --> | label21 = Addresses | data21 = {{{addresses|}}} | label22 = Locacion | data22 = {{{location|}}} | class22 = locality | label23 = [[Municipal arrondissements of France|Arrondissement]] | data23 = {{{arrondissement|}}} | label24 = [[Quarter (urban subdivision)|Quarter]] | data24 = {{{quarter|}}} | label25 = {{if empty|{{{postal_code_type|}}}|Postal code}} | data25 = {{{postal_code|}}} | class25 = postal-code | label26 = Nearest {{if empty|{{{metro_system|}}}|metro}} station | data26 = {{{metro|}}} | label27 = Coordinadas | data27 = {{#if:{{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates|}}}|type:landmark}} }} | label28 = {{if empty|{{{grid_name|}}}|Grid&nbsp;position}} | data28 = {{{grid_position|}}} <!-- MAJOR JUNCTIONS --> | label41 = {{#if:{{{terminus_a|}}}|{{#if:{{{direction_a|}}}|Puntay&nbsp;{{{direction_a}}}|From}}|}} | data41 = {{{terminus_a|}}} | label42 = Major<br/>junctions | data42 = {{{junction|}}} | label43 = {{#if:{{{terminus_b|}}}|{{#if:{{{direction_b|}}}|Puntay&nbsp;{{{direction_b}}}|To}}|}} | data43 = {{{terminus_b|}}} <!-- ADJACENT --> | label51 = North | data51 = {{{north|}}} | label52 = East | data52 = {{{east|}}} | label53 = South | data53 = {{{south|}}} | label54 = West | data54 = {{{west|}}} <!-- CONSTRUCTION --> | header60 = {{#if:{{{commissioning_date|}}}{{{construction_start_date|}}}{{{completion_date|}}}{{{inauguration_date|}}}{{{demolition_date|}}}{{{main_contractor|}}}{{{cost|}}}{{{references|}}}|Construction}} | label61 = Commissioned | data61 = {{{commissioning_date|}}} | label62 = Construction start | data62 = {{{construction_start_date|}}} | label63 = Completion | data63 = {{{completion_date|}}} | label64 = {{if empty|{{{inauguration_label|}}}|Inauguration}} | data64 = {{{inauguration_date|}}} | label65 = Demolished | data65 = {{{demolition_date|}}} <!-- OTHER --> | header70 = {{#if:{{{known_for|}}}{{{status|}}}{{{designer|}}}{{{website|}}}|Other}} | label71 = Designer | data71 = {{{designer|}}} | label72 = Known for | data72 = {{{known_for|}}} | label73 = Status | data73 = {{{status|}}} | label74 = Website | data74 = {{{website|}}} | rowstyle98 = width:100%; background:none; border-collapse:collapse | data98 = {{#if:{{{browse|}}}|{{#invoke:Road data/browsetable|browsetable|{{{browse}}}}}}} <!-- EMBEDDED --> | data99 = {{{embedded|}}} }}{{#if:{{{arrondissement|}}}{{{quarter|}}}|[[Category:Pages using infobox street with Paris-specific parameters]] }}{{#ifeq:{{{dot_map_base_alt|¶}}}{{{dot_map_marker|¶}}}{{{dot_map_marker_size|¶}}}{{{dot_mapsize|¶}}}{{{dot_x|¶}}}{{{dot_y|¶}}}{{{image_dot_map|¶}}}|¶¶¶¶¶¶¶||[[Category:Pages using infobox street with unknown parameters|¶]]}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox street with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox street]] with unknown parameter "_VALUE_"|ignoreblank=y| addresses | allocation | alternate_name | area | arrondissement | browse | caption | commissioning_date | completion_date | construction_start_date | coordinates | cost | country | demolition_date | designer | direction_a | direction_b | east | embed | embedded | former_names | grid_name | grid_position | image | image_alt | image_map | image_size | inauguration_date | inauguration_label | junction | known_for | length | length_ft | length_km | length_m | length_mi | length_notes | length_ref | location | main_contractor | maint | map | map_alt | map_caption | map_size | map_type | marker_image | metro | metro_system | name | namesake | native_name | north | other_name | owner | part_of | postal_code | postal_code_type | quarter | references | restrictions | south | status | surface_area | terminus_a | terminus_b | tourist | type | website | west | width | mapframe | mapframe-area_km2 | mapframe-area_mi2 | mapframe-caption | mapframe-coord | mapframe-coordinates | mapframe-custom | mapframe-frame-coord | mapframe-frame-coordinates | mapframe-frame-height | mapframe-frame-width | mapframe-geomask | mapframe-geomask-fill | mapframe-geomask-fill-opacity | mapframe-geomask-stroke-color | mapframe-geomask-stroke-colour | mapframe-geomask-stroke-width | mapframe-height | mapframe-id | mapframe-length_km | mapframe-length_mi | mapframe-marker | mapframe-marker-color | mapframe-marker-colour | mapframe-point | mapframe-shape | mapframe-shape-fill | mapframe-shape-fill-opacity | mapframe-stroke-color | mapframe-stroke-colour | mapframe-stroke-width | mapframe-switcher | mapframe-type | mapframe-width | mapframe-wikidata | mapframe-zoom }}<noinclude> {{documentation}} </noinclude> 2xbmu8oau9b2zmr2ohjf98lduz6ojmf 116684 116641 2025-07-03T15:12:18Z Aristorkle 14080 slightly localized 116684 wikitext text/x-wiki {{Infobox | child = {{{embed|}}} | bodyclass = vcard | titleclass = fn org street-address | title = {{#if:{{{name|}}}|{{{name}}}|{{#ifeq:{{{embed|}}}|yes||{{PAGENAMEBASE}}}}}} | aboveclass = adr | above = {{{marker_image|}}} | subheader = {{if empty|{{{alternate_name|}}}|{{{other_name|}}}}} | subheaderclass = nickname | image = {{#invoke:InfoboxImage|InfoboxImage|image={{{image|}}}|size={{{image_size|}}}|alt={{{image_alt|}}}}} | caption = {{{caption|}}} | image2 = {{#if:{{{map_type|}}} | {{#if:{{{coordinates|}}}|{{Location map|{{{map_type}}} | coordinates = {{{coordinates|}}} | width = {{{map_size|}}} | float = center | border = infobox | caption = {{{map_caption|Shown within {{#invoke:Location map|data|{{{map_type}}}|name}}}}} }}}} | {{#invoke:InfoboxImage|InfoboxImage|image={{{image_map|{{{map|}}}}}}|size={{{map_size|}}}|sizedefault=frameless|alt={{{map_alt|}}}|{{{map_caption|}}}}} }} | caption2 = {{#if:{{{map_type|}}}||{{{map_caption|}}}}} | image3 = {{#invoke:Infobox mapframe | auto | onByDefault = {{#if:{{{map|}}}{{{image_map|}}}{{{map_type|}}}|no|yes}} | mapframe-stroke-width = {{{mapframe-stroke-width|1.5}}} | mapframe-type = {{{mapframe-type|landmark}}} | mapframe-length_km = {{{mapframe-length_km|{{{length_km|}}}}}} | mapframe-length_mi = {{{mapframe-length_mi|{{{length_mi|}}}}}} }} | caption3 = {{#invoke:Infobox mapframe|autocaption}} | class1 = nickname | label1 = Native name | data1 = {{native name checker|{{{native_name|}}}}} | label2 = Antes (maga) nombre | data2 = {{{former_names|}}} | class2 = nickname | label3 = Part of | data3 = {{{part_of|}}} | label4 = Donde estaba el nombre | data4 = {{{namesake|}}} | label5 = Type | data5 = {{{type|}}} | class5 = category | label6 = Owner | data6 = {{{owner|}}} | class6 = agent | label7 = Ta mantene el | data7 = {{#if:{{{maint|}}}|{{#ifeq:{{{maint|}}}|none||{{{maint}}}}}}} | label8 = Largor | data8 = {{if empty|{{{length|}}}|{{convinfobox|{{{length_mi|}}}|mi|{{{length_km|}}}|km}}|{{convinfobox|{{{length_m|}}}|m|{{{length_ft|}}}|ft}}}}{{#if:{{{length|}}}{{{length_mi|}}}{{{length_km|}}}{{{length_m|}}}{{{length_ft|}}}|{{{length_ref|}}}{{#if:{{{length_notes|}}}|<br/>{{{length_notes}}} }} }} | label9 = Width | data9 = {{{width|}}} | label10 = Area | data10 = {{if empty|{{{surface_area|}}}|{{{area|}}}}} |label11 = {{#ifeq:{{{country|}}}|AUS|[[Route number#Australia{{!}}Allocation]]|Component<br />highways}} |data11 = {{{allocation|}}} |label12= Tourist<br />routes |data12= {{{tourist|}}} |label13 = Restrictions |data13 = {{{restrictions|}}} <!-- LOCATION --> | label21 = Addresses | data21 = {{{addresses|}}} | label22 = Locacion | data22 = {{{location|}}} | class22 = locality | label23 = [[Municipal arrondissements of France|Arrondissement]] | data23 = {{{arrondissement|}}} | label24 = [[Quarter (urban subdivision)|Quarter]] | data24 = {{{quarter|}}} | label25 = {{if empty|{{{postal_code_type|}}}|Postal code}} | data25 = {{{postal_code|}}} | class25 = postal-code | label26 = Nearest {{if empty|{{{metro_system|}}}|metro}} station | data26 = {{{metro|}}} | label27 = Coordinadas | data27 = {{#if:{{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates|}}}|type:landmark}} }} | label28 = {{if empty|{{{grid_name|}}}|Grid&nbsp;position}} | data28 = {{{grid_position|}}} <!-- MAJOR JUNCTIONS --> | label41 = {{#if:{{{terminus_a|}}}|{{#if:{{{direction_a|}}}|Puntay&nbsp;{{{direction_a}}}|From}}|}} | data41 = {{{terminus_a|}}} | label42 = Major<br/>junctions | data42 = {{{junction|}}} | label43 = {{#if:{{{terminus_b|}}}|{{#if:{{{direction_b|}}}|Puntay&nbsp;{{{direction_b}}}|To}}|}} | data43 = {{{terminus_b|}}} <!-- ADJACENT --> | label51 = North | data51 = {{{north|}}} | label52 = Este | data52 = {{{east|}}} | label53 = South | data53 = {{{south|}}} | label54 = Oeste | data54 = {{{west|}}} <!-- CONSTRUCTION --> | header60 = {{#if:{{{commissioning_date|}}}{{{construction_start_date|}}}{{{completion_date|}}}{{{inauguration_date|}}}{{{demolition_date|}}}{{{main_contractor|}}}{{{cost|}}}{{{references|}}}|Construction}} | label61 = Commissioned | data61 = {{{commissioning_date|}}} | label62 = Construction start | data62 = {{{construction_start_date|}}} | label63 = Completion | data63 = {{{completion_date|}}} | label64 = {{if empty|{{{inauguration_label|}}}|Inauguration}} | data64 = {{{inauguration_date|}}} | label65 = Demolished | data65 = {{{demolition_date|}}} <!-- OTHER --> | header70 = {{#if:{{{known_for|}}}{{{status|}}}{{{designer|}}}{{{website|}}}|Other}} | label71 = Designer | data71 = {{{designer|}}} | label72 = Known for | data72 = {{{known_for|}}} | label73 = Status | data73 = {{{status|}}} | label74 = Website | data74 = {{{website|}}} | rowstyle98 = width:100%; background:none; border-collapse:collapse | data98 = {{#if:{{{browse|}}}|{{#invoke:Road data/browsetable|browsetable|{{{browse}}}}}}} <!-- EMBEDDED --> | data99 = {{{embedded|}}} }}{{#if:{{{arrondissement|}}}{{{quarter|}}}|[[Category:Pages using infobox street with Paris-specific parameters]] }}{{#ifeq:{{{dot_map_base_alt|¶}}}{{{dot_map_marker|¶}}}{{{dot_map_marker_size|¶}}}{{{dot_mapsize|¶}}}{{{dot_x|¶}}}{{{dot_y|¶}}}{{{image_dot_map|¶}}}|¶¶¶¶¶¶¶||[[Category:Pages using infobox street with unknown parameters|¶]]}}{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox street with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox street]] with unknown parameter "_VALUE_"|ignoreblank=y| addresses | allocation | alternate_name | area | arrondissement | browse | caption | commissioning_date | completion_date | construction_start_date | coordinates | cost | country | demolition_date | designer | direction_a | direction_b | east | embed | embedded | former_names | grid_name | grid_position | image | image_alt | image_map | image_size | inauguration_date | inauguration_label | junction | known_for | length | length_ft | length_km | length_m | length_mi | length_notes | length_ref | location | main_contractor | maint | map | map_alt | map_caption | map_size | map_type | marker_image | metro | metro_system | name | namesake | native_name | north | other_name | owner | part_of | postal_code | postal_code_type | quarter | references | restrictions | south | status | surface_area | terminus_a | terminus_b | tourist | type | website | west | width | mapframe | mapframe-area_km2 | mapframe-area_mi2 | mapframe-caption | mapframe-coord | mapframe-coordinates | mapframe-custom | mapframe-frame-coord | mapframe-frame-coordinates | mapframe-frame-height | mapframe-frame-width | mapframe-geomask | mapframe-geomask-fill | mapframe-geomask-fill-opacity | mapframe-geomask-stroke-color | mapframe-geomask-stroke-colour | mapframe-geomask-stroke-width | mapframe-height | mapframe-id | mapframe-length_km | mapframe-length_mi | mapframe-marker | mapframe-marker-color | mapframe-marker-colour | mapframe-point | mapframe-shape | mapframe-shape-fill | mapframe-shape-fill-opacity | mapframe-stroke-color | mapframe-stroke-colour | mapframe-stroke-width | mapframe-switcher | mapframe-type | mapframe-width | mapframe-wikidata | mapframe-zoom }}<noinclude> {{documentation}} </noinclude> cm5b57eq40jekyg5u19xh16lcnwqyns Plantilla:Infobox calle/doc 10 25929 116636 2025-07-03T13:02:27Z Aristorkle 14080 copied from enwiki 116636 wikitext text/x-wiki {{documentation subpage}}<includeonly> {{#ifeq:{{SUBPAGENAME}}|sandbox||{{High-use}}}} </includeonly> <!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])--> {{Lua|Module:Infobox|Module:InfoboxImage|Module:Coordinates|Module:Check for unknown parameters|Module:Road data/browsetable}} {{tl|Infobox street}} may be used for urban and rural thoroughfares, lanes, alleys, public highways and similar features, including squares/ piazzas (note {{para|area}}). For trunk roads, use {{tl|Infobox road}}. For green spaces, consider {{tl|Infobox park}}, which also serves for gardens and suchlike. All parameters are optional. ==Usage== {{Parameter names example | name | marker_image | native_name | alternate_name | image | image_size | image_alt | image_map | mapframe | caption | other_name | former_names | part_of | namesake | type | owner | maint | length | length_m | length_ft | length_km | length_mi | length_ref | length_notes | width | area | addresses | location | arrondissement | quarter | postal_code | metro | coordinates | direction_a | terminus_a | direction_b | terminus_b | junction | main_contractor | cost | references | commissioning_date | construction_start_date | completion_date | inauguration_date | demolition_date | north | east | south | west | designer | known_for | status | website | browse | embedded }} <syntaxhighlight lang="wikitext" style="overflow:auto;"> {{Infobox street | name = | marker_image = | native_name = <!-- {{native name}} or {{native name list}} --> | alternate_name = | image = | image_size = | image_alt = | image_map = | caption = | map_type = | map_size = | map_caption = | map_alt = | mapframe = <!-- yes, see other parameters below --> | other_name = | former_names = | part_of = | namesake = | type = | owner = | maint = | length = | length_m = | length_ft = | length_km = | length_mi = | length_ref = | length_notes = | width = | area = | addresses = | location = | arrondissement = | quarter = | postal_code = | metro = | coordinates = | direction_a = | terminus_a = | direction_b = | terminus_b = | junction = | north = | east = | south = | west = | main_contractor = | cost = | references = | commissioning_date = | construction_start_date = | completion_date = | inauguration_date = <!-- {{Start date|YYYY|MM|DD}} --> | demolition_date = | designer = | known_for = | status = | website = <!-- {{URL|example.com}} --> | browse = | embedded = }} </syntaxhighlight> ==Parameters== ===Route information=== *'''name:''' street name to be displayed. * '''marker_image:''' shield image to be displayed. Requires full wiki markup. * '''native_name:''' name in that country's official language(s), if other than English. ; use {{tl|native name}} or {{tl|native name list}}. * '''alternate_name:''' Use in situations where the '''''entire route''''' has another name. * '''image:''' image name of a map for the route, without the <code>File:</code> [[Help:Namespace|namespace]] prefix, which the template will place into an [[Help:Image|image link]] for you. Unlike [[Template:Infobox road|Infobox road]], using content that isn't an image will render correctly without using a parameter like "image_custom". ** '''caption:''' an optional parameter with text to display along with the image. * '''other_name:''' * '''former_names:''' * '''part_of:''' the route(s) this road is a part of * '''namesake:''' Person, event or other entity that the feature is named after * '''type:''' * '''maint:''' the agency that maintains the street. * '''length_ft''' or '''length_m:''' length of the route in feet (in countries where the imperial system is used) or metres (in countries where the metric system is used). Only one can be used in an article. The value from the one defined is the one that appears first. * '''length_mi''' or '''length_km:''' length of the route in miles (in countries where the imperial system is used) or kilometres (in countries where the metric system is used). Only one can be used in an article instead of length_ft or length_m where the street is longer. ** '''length_ref''', if defined, appears after the first length. Use a citation for the length or {{tl|citation needed}} here. Be sure that the first length is the one for which you have a reference. ** '''length_notes''', if defined, appears as a note below the length. This can be used to show former length, or future length, etc. ===Major intersections=== * '''direction_a:''' the first end of the street being covered. Consult the local wikiproject for any guidance on which to use first. This could be the south or western end, but local guidance may reverse that. * '''terminus_a:''' this is where the route begins, see the local wikiproject for guidance. * '''direction_b:''' The opposite of "direction_a" * '''terminus_b:''' where the route ends, in accordance with the guidelines set forth with terminus_a * '''junction:''' a list of major junctions. Each WikiProject has different guidelines for major junctions, so consult the relevant WikiProject for more details. ===Construction=== * '''commissioning_date:''' this is the date the route was commissioned. * '''construction_start_date:''' this is the date that construction was started on the route. * '''completion_date:''' this is the date that construction was completed on the route. * '''inauguration_date:''' this is the date that the route was opened; use {{tl|start date}} where possible. * '''demolition_date:''' date the route was [[decommissioned highway|decommissioned]] ===Location=== * '''coordinates:''' use {{tl|coord}} * '''map_type''' - see [[:Category:Location map modules by country]] for a list of available maps ===Mapframe maps=== {{Infobox mapframe/doc/parameters | onByDefault = yes, unless any of these are set: {{para|map}}, {{para|image_map}}, {{para|map_type}} | mapframe-stroke-width = 1.5 | mapframe-type = landmark | mapframe-length_km = {{para|length_km}} | mapframe-length_mi = {{para|length_mi}} }} ===Other=== * '''known_for:''' why is the street notable? * '''status:''' e.g. heritage status, pedestrianised * '''website''' for official websites; use {{tl|URL}} * '''browse:''' used to add browse lines which are generated by templates like {{tl|Nearby arterials}}. See [[:Category:Browse templates]]. * '''embedded:''' embedded child infoboxes ==Microformat== {{UF-hcard-geo}} == Tracking categories == * {{clc|Pages using infobox street with Paris-specific parameters}} * {{clc|Pages using infobox street with unknown parameters}} == TemplateData == {{TemplateData header}} {{collapse top|title=TemplateData}} <templatedata> { "description": "An infobox for a street", "format": "{{_\n| ___________ = _\n}}\n", "params": { "embed": {}, "name": { "label": "Name", "description": "The name of the street" }, "marker_image": {}, "alternate_name": {}, "other_name": {}, "image": {"type": "wiki-file-name"}, "image_size": {}, "image_alt": {}, "caption": {}, "map_type": {}, "coordinates": {}, "map_size": {}, "map_caption": {}, "image_map": {}, "map_alt": {}, "native_name": {}, "former_names": {}, "part_of": {}, "namesake": {}, "type": {}, "owner": {}, "maint": {}, "length": {}, "length_mi": {}, "length_km": {}, "length_ref": {}, "length_m": {}, "length_ft": {}, "length_notes": {}, "width": {}, "surface_area": {}, "area": {}, "country": {}, "allocation": {}, "tourist": {}, "restrictions": {}, "addresses": {}, "location": {}, "arrondissement": {}, "quarter": {}, "postal_code_type": {}, "postal_code": {}, "metro_system": {}, "metro": {}, "grid_name": {}, "grid_position": {}, "terminus_a": {}, "direction_a": {}, "junction": {}, "terminus_b": {}, "direction_b": {}, "north": {}, "east": {}, "south": {}, "west": {}, "commissioning_date": {}, "construction_start_date": {}, "completion_date": {}, "inauguration_date": {}, "demolition_date": {}, "main_contractor": {}, "cost": {}, "references": {}, "inauguration_label": {}, "known_for": {}, "status": {}, "designer": {}, "website": {}, "embedded": {}, "dot_map_base_alt": {}, "dot_map_marker": {}, "dot_map_marker_size": {}, "dot_mapsize": {}, "dot_x": {}, "dot_y": {}, "image_dot_map": {}, "mapframe": { "label": "Show mapframe map", "description": "Specify yes or no to show or hide the map, overriding the default", "example": "yes", "type": "string", "default": "no", "suggested": true }, "mapframe-caption": { "label": "Mapframe caption", "description": "Caption for the map. If mapframe-geomask is set, then the default is \"Location in <<geomask's label>>\"", "type": "string" }, "mapframe-custom": { "label": "Custom mapframe", "description": "Use a custom map instead of the automatic mapframe. Specify either a {{maplink}} template, or another template that generates a mapframe map, or an image name. If used, other mapframe parameters will be ignored.", "type": "wiki-template-name" }, "mapframe-id": { "aliases": [ "id", "qid" ], "label": "Mapframe Wikidata item", "description": "Id (Q-number) of Wikidata item to use.", "type": "string", "default": "(item for current page)" }, "mapframe-coordinates": { "aliases": [ "mapframe-coord", "coordinates", "coord" ], "label": "Mapframe coordinates ", "description": "Coordinates to use, instead of any on Wikidata. Use the {{Coord}} template.", "example": "{{Coord|12.34|N|56.78|E}}", "type": "wiki-template-name", "default": "(coordinates from Wikidata)" }, "mapframe-wikidata": { "label": "Mapframe shapes from Wikidata", "description": "et to yes to show shape/line features from the wikidata item, if any, when coordinates are specified by parameter", "example": "yes", "type": "string" }, "mapframe-shape": { "label": "Mapframe shape feature", "description": "Override display of mapframe shape feature. Turn off by setting to \"none\". Use an inverse shape (geomask) instead of a regular shape by setting to \"inverse\"", "type": "string" }, "mapframe-point": { "label": "Mapframe point feature", "description": "Override display of mapframe point feature. Turn off display of point feature by setting to \"none\". Force point marker to be displayed by setting to \"on\"", "type": "string" }, "mapframe-geomask": { "label": "Mapframe geomask", "description": "Wikidata item to use as a geomask (everything outside the boundary is shaded darker). Can either be a specific Wikidata item (Q-number), or a property that specifies the item to use (e.g. P17 for country, or P131 for located in the administrative territorial entity)", "example": "Q100", "type": "wiki-page-name" }, "mapframe-switcher": { "label": "Mapframe switcher", "description": "Set to \"auto\" or \"geomasks\" or \"zooms\" to enable Template:Switcher-style switching between multiple mapframes. IF SET TO auto – switch geomasks found in location (P276) and located in the administrative territorial entity (P131) statements on the page's Wikidata item, searching recursively. E.g. an item's city, that city's state, and that state's country. IF SET TO geomasks – switch between the geomasks specified as a comma-separated list of Wikidata items (Q-numbers) in the mapframe-geomask parameter. IF SET TO zooms – switch between \"zoomed in\"/\"zoomed midway\"/\"zoomed out\", where \"zoomed in\" is the default zoom (with a minimum of 3), \"zoomed out\" is 1, and \"zoomed midway\" is the average.", "type": "string" }, "mapframe-frame-width": { "aliases": [ "mapframe-width" ], "label": "Mapframe width", "description": "Frame width in pixels", "type": "number", "default": "270" }, "mapframe-frame-height": { "aliases": [ "mapframe-height" ], "label": "Mapframe height", "description": "Frame height in pixels", "type": "number", "default": "200" }, "mapframe-shape-fill": { "label": "Mapframe shape fill", "description": "Color used to fill shape features", "type": "string", "default": "#606060" }, "mapframe-shape-fill-opacity": { "label": "Mapframe shape fill opacity", "description": "Opacity level of shape fill, a number between 0 and 1", "type": "number", "default": "0.5" }, "mapframe-stroke-color": { "aliases": [ "mapframe-stroke-colour" ], "label": "Mapframe stroke color", "description": "Color of line features, and outlines of shape features", "type": "string", "default": "#ff0000" }, "mapframe-stroke-width": { "label": "Mapframe stroke width", "description": "Width of line features, and outlines of shape features", "type": "number", "default": "5" }, "mapframe-marker": { "label": "Mapframe marker", "description": "Marker symbol to use for coordinates; see [[mw:Help:Extension:Kartographer/Icons]] for options", "example": "museum", "type": "string" }, "mapframe-marker-color": { "aliases": [ "mapframe-marker-colour" ], "label": "Mapframe marker color", "description": "Background color for the marker", "type": "string", "default": "#5E74F3" }, "mapframe-geomask-stroke-color": { "aliases": [ "mapframe-geomask-stroke-colour" ], "label": "Mapframe geomask stroke color", "description": "Color of outline of geomask shape", "type": "string", "default": "#555555" }, "mapframe-geomask-stroke-width": { "label": "Mapframe geomask stroke width", "description": "Width of outline of geomask shape", "type": "number", "default": "2" }, "mapframe-geomask-fill": { "label": "Mapframe geomask fill", "description": "Color used to fill outside geomask features", "type": "string", "default": "#606060" }, "mapframe-geomask-fill-opacity": { "label": "Mapframe geomask fill opacity", "description": "Opacity level of fill outside geomask features, a number between 0 and 1", "type": "number", "default": "0.5" }, "mapframe-zoom": { "label": "Mapframe zoom", "description": "Set the zoom level, from \"1\" to \"18\", to used if the zoom level cannot be determined automatically from object length or area", "example": "12", "type": "number", "default": "10" }, "mapframe-length_km": { "label": "Mapframe length (km)", "description": "Object length in kilometres, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area", "type": "number" }, "mapframe-length_mi": { "label": "Mapframe length (mi)", "description": "Object length in miles, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area", "type": "number" }, "mapframe-area_km2": { "label": "Mapframe area (km^2)", "description": "Object arean square kilometres, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area", "type": "number" }, "mapframe-area_mi2": { "label": "Mapframe area (mi^2)", "description": "Object area in square miles, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area", "type": "number" }, "mapframe-frame-coordinates": { "aliases": [ "mapframe-frame-coord" ], "label": "Mapframe frame coordinates", "description": "Alternate latitude and longitude coordinates for initial placement of map, using {{coord}}", "example": "{{Coord|12.35|N|56.71|E}}", "type": "wiki-template-name" }, "mapframe-line": {}, "mapframe-type": { "label": "Mapframe type", "description": "Type of the object rendered in the mapframe, like with {{coord}}.", "type": "string" } }, "paramOrder": [ "embed", "name", "marker_image", "alternate_name", "other_name", "image", "image_size", "image_alt", "caption", "map_type", "coordinates", "map_size", "map_caption", "image_map", "map_alt", "native_name", "former_names", "part_of", "namesake", "type", "owner", "maint", "length", "length_mi", "length_km", "length_ref", "length_m", "length_ft", "length_notes", "width", "surface_area", "area", "country", "allocation", "tourist", "restrictions", "addresses", "location", "arrondissement", "quarter", "postal_code_type", "postal_code", "metro_system", "metro", "grid_name", "grid_position", "terminus_a", "direction_a", "junction", "terminus_b", "direction_b", "north", "east", "south", "west", "commissioning_date", "construction_start_date", "completion_date", "inauguration_date", "demolition_date", "main_contractor", "cost", "references", "inauguration_label", "known_for", "status", "designer", "website", "embedded", "dot_map_base_alt", "dot_map_marker", "dot_map_marker_size", "dot_mapsize", "dot_x", "dot_y", "image_dot_map", "mapframe", "mapframe-caption", "mapframe-custom", "mapframe-id", "mapframe-coordinates", "mapframe-wikidata", "mapframe-point", "mapframe-shape", "mapframe-frame-width", "mapframe-frame-height", "mapframe-shape-fill", "mapframe-shape-fill-opacity", "mapframe-stroke-color", "mapframe-stroke-width", "mapframe-marker", "mapframe-marker-color", "mapframe-geomask", "mapframe-geomask-stroke-color", "mapframe-geomask-stroke-width", "mapframe-geomask-fill", "mapframe-geomask-fill-opacity", "mapframe-zoom", "mapframe-length_km", "mapframe-length_mi", "mapframe-area_km2", "mapframe-area_mi2", "mapframe-frame-coordinates", "mapframe-switcher", "mapframe-line", "mapframe-type" ] } </templatedata> {{collapse bottom}} == See also == * {{tl|Infobox road}} – An infobox for use on articles about roads. <includeonly>{{Sandbox other|| <!--Categories below this line, please; interwikis at Wikidata--> [[Category:Highway infobox templates|*]] [[Category:Embeddable templates]] [[Category:Templates that add a tracking category|{{PAGENAME}}]] [[Category:Templates with coordinates fields]] }}</includeonly> 6br0uinduds147i7tfmi982s5c8xl74 116637 116636 2025-07-03T13:04:02Z Aristorkle 14080 116637 wikitext text/x-wiki {{documentation subpage}} <!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])--> {{Lua|Module:Infobox|Module:InfoboxImage|Module:Coordinates|Module:Check for unknown parameters|Module:Road data/browsetable}} {{tl|Infobox street}} may be used for urban and rural thoroughfares, lanes, alleys, public highways and similar features, including squares/ piazzas (note {{para|area}}). For trunk roads, use {{tl|Infobox road}}. For green spaces, consider {{tl|Infobox park}}, which also serves for gardens and suchlike. All parameters are optional. ==Usage== {{Parameter names example | name | marker_image | native_name | alternate_name | image | image_size | image_alt | image_map | mapframe | caption | other_name | former_names | part_of | namesake | type | owner | maint | length | length_m | length_ft | length_km | length_mi | length_ref | length_notes | width | area | addresses | location | arrondissement | quarter | postal_code | metro | coordinates | direction_a | terminus_a | direction_b | terminus_b | junction | main_contractor | cost | references | commissioning_date | construction_start_date | completion_date | inauguration_date | demolition_date | north | east | south | west | designer | known_for | status | website | browse | embedded }} <syntaxhighlight lang="wikitext" style="overflow:auto;"> {{Infobox street | name = | marker_image = | native_name = <!-- {{native name}} or {{native name list}} --> | alternate_name = | image = | image_size = | image_alt = | image_map = | caption = | map_type = | map_size = | map_caption = | map_alt = | mapframe = <!-- yes, see other parameters below --> | other_name = | former_names = | part_of = | namesake = | type = | owner = | maint = | length = | length_m = | length_ft = | length_km = | length_mi = | length_ref = | length_notes = | width = | area = | addresses = | location = | arrondissement = | quarter = | postal_code = | metro = | coordinates = | direction_a = | terminus_a = | direction_b = | terminus_b = | junction = | north = | east = | south = | west = | main_contractor = | cost = | references = | commissioning_date = | construction_start_date = | completion_date = | inauguration_date = <!-- {{Start date|YYYY|MM|DD}} --> | demolition_date = | designer = | known_for = | status = | website = <!-- {{URL|example.com}} --> | browse = | embedded = }} </syntaxhighlight> ==Parameters== ===Route information=== *'''name:''' street name to be displayed. * '''marker_image:''' shield image to be displayed. Requires full wiki markup. * '''native_name:''' name in that country's official language(s), if other than English. ; use {{tl|native name}} or {{tl|native name list}}. * '''alternate_name:''' Use in situations where the '''''entire route''''' has another name. * '''image:''' image name of a map for the route, without the <code>File:</code> [[Help:Namespace|namespace]] prefix, which the template will place into an [[Help:Image|image link]] for you. Unlike [[Template:Infobox road|Infobox road]], using content that isn't an image will render correctly without using a parameter like "image_custom". ** '''caption:''' an optional parameter with text to display along with the image. * '''other_name:''' * '''former_names:''' * '''part_of:''' the route(s) this road is a part of * '''namesake:''' Person, event or other entity that the feature is named after * '''type:''' * '''maint:''' the agency that maintains the street. * '''length_ft''' or '''length_m:''' length of the route in feet (in countries where the imperial system is used) or metres (in countries where the metric system is used). Only one can be used in an article. The value from the one defined is the one that appears first. * '''length_mi''' or '''length_km:''' length of the route in miles (in countries where the imperial system is used) or kilometres (in countries where the metric system is used). Only one can be used in an article instead of length_ft or length_m where the street is longer. ** '''length_ref''', if defined, appears after the first length. Use a citation for the length or {{tl|citation needed}} here. Be sure that the first length is the one for which you have a reference. ** '''length_notes''', if defined, appears as a note below the length. This can be used to show former length, or future length, etc. ===Major intersections=== * '''direction_a:''' the first end of the street being covered. Consult the local wikiproject for any guidance on which to use first. This could be the south or western end, but local guidance may reverse that. * '''terminus_a:''' this is where the route begins, see the local wikiproject for guidance. * '''direction_b:''' The opposite of "direction_a" * '''terminus_b:''' where the route ends, in accordance with the guidelines set forth with terminus_a * '''junction:''' a list of major junctions. Each WikiProject has different guidelines for major junctions, so consult the relevant WikiProject for more details. ===Construction=== * '''commissioning_date:''' this is the date the route was commissioned. * '''construction_start_date:''' this is the date that construction was started on the route. * '''completion_date:''' this is the date that construction was completed on the route. * '''inauguration_date:''' this is the date that the route was opened; use {{tl|start date}} where possible. * '''demolition_date:''' date the route was [[decommissioned highway|decommissioned]] ===Location=== * '''coordinates:''' use {{tl|coord}} * '''map_type''' - see [[:Category:Location map modules by country]] for a list of available maps ===Mapframe maps=== {{Infobox mapframe/doc/parameters | onByDefault = yes, unless any of these are set: {{para|map}}, {{para|image_map}}, {{para|map_type}} | mapframe-stroke-width = 1.5 | mapframe-type = landmark | mapframe-length_km = {{para|length_km}} | mapframe-length_mi = {{para|length_mi}} }} ===Other=== * '''known_for:''' why is the street notable? * '''status:''' e.g. heritage status, pedestrianised * '''website''' for official websites; use {{tl|URL}} * '''browse:''' used to add browse lines which are generated by templates like {{tl|Nearby arterials}}. See [[:Category:Browse templates]]. * '''embedded:''' embedded child infoboxes ==Microformat== {{UF-hcard-geo}} == Tracking categories == * {{clc|Pages using infobox street with Paris-specific parameters}} * {{clc|Pages using infobox street with unknown parameters}} == TemplateData == {{TemplateData header}} {{collapse top|title=TemplateData}} <templatedata> { "description": "An infobox for a street", "format": "{{_\n| ___________ = _\n}}\n", "params": { "embed": {}, "name": { "label": "Name", "description": "The name of the street" }, "marker_image": {}, "alternate_name": {}, "other_name": {}, "image": {"type": "wiki-file-name"}, "image_size": {}, "image_alt": {}, "caption": {}, "map_type": {}, "coordinates": {}, "map_size": {}, "map_caption": {}, "image_map": {}, "map_alt": {}, "native_name": {}, "former_names": {}, "part_of": {}, "namesake": {}, "type": {}, "owner": {}, "maint": {}, "length": {}, "length_mi": {}, "length_km": {}, "length_ref": {}, "length_m": {}, "length_ft": {}, "length_notes": {}, "width": {}, "surface_area": {}, "area": {}, "country": {}, "allocation": {}, "tourist": {}, "restrictions": {}, "addresses": {}, "location": {}, "arrondissement": {}, "quarter": {}, "postal_code_type": {}, "postal_code": {}, "metro_system": {}, "metro": {}, "grid_name": {}, "grid_position": {}, "terminus_a": {}, "direction_a": {}, "junction": {}, "terminus_b": {}, "direction_b": {}, "north": {}, "east": {}, "south": {}, "west": {}, "commissioning_date": {}, "construction_start_date": {}, "completion_date": {}, "inauguration_date": {}, "demolition_date": {}, "main_contractor": {}, "cost": {}, "references": {}, "inauguration_label": {}, "known_for": {}, "status": {}, "designer": {}, "website": {}, "embedded": {}, "dot_map_base_alt": {}, "dot_map_marker": {}, "dot_map_marker_size": {}, "dot_mapsize": {}, "dot_x": {}, "dot_y": {}, "image_dot_map": {}, "mapframe": { "label": "Show mapframe map", "description": "Specify yes or no to show or hide the map, overriding the default", "example": "yes", "type": "string", "default": "no", "suggested": true }, "mapframe-caption": { "label": "Mapframe caption", "description": "Caption for the map. If mapframe-geomask is set, then the default is \"Location in <<geomask's label>>\"", "type": "string" }, "mapframe-custom": { "label": "Custom mapframe", "description": "Use a custom map instead of the automatic mapframe. Specify either a {{maplink}} template, or another template that generates a mapframe map, or an image name. If used, other mapframe parameters will be ignored.", "type": "wiki-template-name" }, "mapframe-id": { "aliases": [ "id", "qid" ], "label": "Mapframe Wikidata item", "description": "Id (Q-number) of Wikidata item to use.", "type": "string", "default": "(item for current page)" }, "mapframe-coordinates": { "aliases": [ "mapframe-coord", "coordinates", "coord" ], "label": "Mapframe coordinates ", "description": "Coordinates to use, instead of any on Wikidata. Use the {{Coord}} template.", "example": "{{Coord|12.34|N|56.78|E}}", "type": "wiki-template-name", "default": "(coordinates from Wikidata)" }, "mapframe-wikidata": { "label": "Mapframe shapes from Wikidata", "description": "et to yes to show shape/line features from the wikidata item, if any, when coordinates are specified by parameter", "example": "yes", "type": "string" }, "mapframe-shape": { "label": "Mapframe shape feature", "description": "Override display of mapframe shape feature. Turn off by setting to \"none\". Use an inverse shape (geomask) instead of a regular shape by setting to \"inverse\"", "type": "string" }, "mapframe-point": { "label": "Mapframe point feature", "description": "Override display of mapframe point feature. Turn off display of point feature by setting to \"none\". Force point marker to be displayed by setting to \"on\"", "type": "string" }, "mapframe-geomask": { "label": "Mapframe geomask", "description": "Wikidata item to use as a geomask (everything outside the boundary is shaded darker). Can either be a specific Wikidata item (Q-number), or a property that specifies the item to use (e.g. P17 for country, or P131 for located in the administrative territorial entity)", "example": "Q100", "type": "wiki-page-name" }, "mapframe-switcher": { "label": "Mapframe switcher", "description": "Set to \"auto\" or \"geomasks\" or \"zooms\" to enable Template:Switcher-style switching between multiple mapframes. IF SET TO auto – switch geomasks found in location (P276) and located in the administrative territorial entity (P131) statements on the page's Wikidata item, searching recursively. E.g. an item's city, that city's state, and that state's country. IF SET TO geomasks – switch between the geomasks specified as a comma-separated list of Wikidata items (Q-numbers) in the mapframe-geomask parameter. IF SET TO zooms – switch between \"zoomed in\"/\"zoomed midway\"/\"zoomed out\", where \"zoomed in\" is the default zoom (with a minimum of 3), \"zoomed out\" is 1, and \"zoomed midway\" is the average.", "type": "string" }, "mapframe-frame-width": { "aliases": [ "mapframe-width" ], "label": "Mapframe width", "description": "Frame width in pixels", "type": "number", "default": "270" }, "mapframe-frame-height": { "aliases": [ "mapframe-height" ], "label": "Mapframe height", "description": "Frame height in pixels", "type": "number", "default": "200" }, "mapframe-shape-fill": { "label": "Mapframe shape fill", "description": "Color used to fill shape features", "type": "string", "default": "#606060" }, "mapframe-shape-fill-opacity": { "label": "Mapframe shape fill opacity", "description": "Opacity level of shape fill, a number between 0 and 1", "type": "number", "default": "0.5" }, "mapframe-stroke-color": { "aliases": [ "mapframe-stroke-colour" ], "label": "Mapframe stroke color", "description": "Color of line features, and outlines of shape features", "type": "string", "default": "#ff0000" }, "mapframe-stroke-width": { "label": "Mapframe stroke width", "description": "Width of line features, and outlines of shape features", "type": "number", "default": "5" }, "mapframe-marker": { "label": "Mapframe marker", "description": "Marker symbol to use for coordinates; see [[mw:Help:Extension:Kartographer/Icons]] for options", "example": "museum", "type": "string" }, "mapframe-marker-color": { "aliases": [ "mapframe-marker-colour" ], "label": "Mapframe marker color", "description": "Background color for the marker", "type": "string", "default": "#5E74F3" }, "mapframe-geomask-stroke-color": { "aliases": [ "mapframe-geomask-stroke-colour" ], "label": "Mapframe geomask stroke color", "description": "Color of outline of geomask shape", "type": "string", "default": "#555555" }, "mapframe-geomask-stroke-width": { "label": "Mapframe geomask stroke width", "description": "Width of outline of geomask shape", "type": "number", "default": "2" }, "mapframe-geomask-fill": { "label": "Mapframe geomask fill", "description": "Color used to fill outside geomask features", "type": "string", "default": "#606060" }, "mapframe-geomask-fill-opacity": { "label": "Mapframe geomask fill opacity", "description": "Opacity level of fill outside geomask features, a number between 0 and 1", "type": "number", "default": "0.5" }, "mapframe-zoom": { "label": "Mapframe zoom", "description": "Set the zoom level, from \"1\" to \"18\", to used if the zoom level cannot be determined automatically from object length or area", "example": "12", "type": "number", "default": "10" }, "mapframe-length_km": { "label": "Mapframe length (km)", "description": "Object length in kilometres, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area", "type": "number" }, "mapframe-length_mi": { "label": "Mapframe length (mi)", "description": "Object length in miles, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area", "type": "number" }, "mapframe-area_km2": { "label": "Mapframe area (km^2)", "description": "Object arean square kilometres, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area", "type": "number" }, "mapframe-area_mi2": { "label": "Mapframe area (mi^2)", "description": "Object area in square miles, for automatically determining zoom level. ONLY use ONE of the available parameters for length or area", "type": "number" }, "mapframe-frame-coordinates": { "aliases": [ "mapframe-frame-coord" ], "label": "Mapframe frame coordinates", "description": "Alternate latitude and longitude coordinates for initial placement of map, using {{coord}}", "example": "{{Coord|12.35|N|56.71|E}}", "type": "wiki-template-name" }, "mapframe-line": {}, "mapframe-type": { "label": "Mapframe type", "description": "Type of the object rendered in the mapframe, like with {{coord}}.", "type": "string" } }, "paramOrder": [ "embed", "name", "marker_image", "alternate_name", "other_name", "image", "image_size", "image_alt", "caption", "map_type", "coordinates", "map_size", "map_caption", "image_map", "map_alt", "native_name", "former_names", "part_of", "namesake", "type", "owner", "maint", "length", "length_mi", "length_km", "length_ref", "length_m", "length_ft", "length_notes", "width", "surface_area", "area", "country", "allocation", "tourist", "restrictions", "addresses", "location", "arrondissement", "quarter", "postal_code_type", "postal_code", "metro_system", "metro", "grid_name", "grid_position", "terminus_a", "direction_a", "junction", "terminus_b", "direction_b", "north", "east", "south", "west", "commissioning_date", "construction_start_date", "completion_date", "inauguration_date", "demolition_date", "main_contractor", "cost", "references", "inauguration_label", "known_for", "status", "designer", "website", "embedded", "dot_map_base_alt", "dot_map_marker", "dot_map_marker_size", "dot_mapsize", "dot_x", "dot_y", "image_dot_map", "mapframe", "mapframe-caption", "mapframe-custom", "mapframe-id", "mapframe-coordinates", "mapframe-wikidata", "mapframe-point", "mapframe-shape", "mapframe-frame-width", "mapframe-frame-height", "mapframe-shape-fill", "mapframe-shape-fill-opacity", "mapframe-stroke-color", "mapframe-stroke-width", "mapframe-marker", "mapframe-marker-color", "mapframe-geomask", "mapframe-geomask-stroke-color", "mapframe-geomask-stroke-width", "mapframe-geomask-fill", "mapframe-geomask-fill-opacity", "mapframe-zoom", "mapframe-length_km", "mapframe-length_mi", "mapframe-area_km2", "mapframe-area_mi2", "mapframe-frame-coordinates", "mapframe-switcher", "mapframe-line", "mapframe-type" ] } </templatedata> {{collapse bottom}} == See also == * {{tl|Infobox road}} – An infobox for use on articles about roads. <includeonly>{{Sandbox other|| <!--Categories below this line, please; interwikis at Wikidata--> [[Category:Highway infobox templates|*]] [[Category:Embeddable templates]] [[Category:Templates that add a tracking category|{{PAGENAME}}]] [[Category:Templates with coordinates fields]] }}</includeonly> j1d49kbfi6ipscmwjjhqdd2xz228jpq Módulo:Road data/browsetable 828 25930 116638 2025-07-03T13:05:23Z Aristorkle 14080 copied from enwiki 116638 Scribunto text/plain local p = {} function p._browsetable(content, styles) if not content then return nil end local tbl = mw.html.create('table'):addClass('browse-table') tbl:wikitext(content) tbl:cssText(styles) return mw.getCurrentFrame():extensionTag{ name = 'templatestyles', args = { src = 'Module:Road data/browsetable/styles.css' } } .. tostring(tbl) end function p.browsetable(frame) local getArgs = require('Module:Arguments').getArgs local args = getArgs(frame) return p._browsetable(args[1], args.style) end return p qis2eb5g65olwf3frrjb0faccicke3y Plantilla:Native name checker/doc 10 25931 116639 2025-07-03T13:08:31Z Aristorkle 14080 copied from enwiki 116639 wikitext text/x-wiki {{Documentation subpage}} {{Lua|Module:Native name}} {{tld|Native name checker}} inspects the value in the {{para|native_name|}} parameter in infoboxes that support that parameter, and returns that value and, when appropriate, an error message. == Usage == Typical use is: :<syntaxhighlight lang="wikitext" inline="1">|dataxx={{Native name checker|{{{native_name|}}}}}</syntaxhighlight> ==Error messages== {{tld|Native name checker}} returns these error messages: * <span style="color:#d33">Error <nowiki>{{native name checker}}</nowiki>: parameter value is malformed</span> – {{para|native_name}} is expected to hold {{tlx|Native name}} or {{tlx|Native name list}}. The detector is looking for a <code>lang=</code> html attribute with a properly formatted [[IETF language tag]]. If not found, {{tld|Native name checker}} emits this error message. * <span style="color:#d33">Error <nowiki>{{native name checker}}</nowiki>: list markup expected for multiple names</span> – when {{tld|Native name checker}} detects more than one name in {{para|native_name}}, those names are expected to be listed using appropriate list markup. The detector is looking for {{tag|div|attribs=class="plainlist"}} html list markup. When that markup is not detected, {{tlx|Native name checker}} emits this error message. Data from multiple {{tld|Native name}} templates can be combined into a single {{tld|Native name list}} template or multiple {{tld|Native name}} templates can be listed using {{tlx|Plainlist}}. * <span style="color:#d33">Error <nowiki>{{native name checker}}</nowiki>: &lt;br /> lists not allowed</span> – Per [[MOS:NOBREAKS]], the use of {{tag|br|s}} to separate items of a list is proscribed. Usually {{tag|br|s}}-separated lists are caught by the <span style="color:#d33">list markup expected</span> detector but, occasionally, not. The detector looks for a variety of acceptable and unacceptable {{tag|br|s}} variants. Data from multiple {{tld|Native name}} templates can be combined into a single {{tld|Native name list}} template or multiple {{tld|Native name}} templates can be listed using {{tlx|Plainlist}}. Mainspace articles with any of the above errors are listed in {{cl|Native name checker template errors}}. A help link at the end of each error message links to this page. ==Tracking category== {{Category link with count|Native name checker template errors}} ==See also== * [[IETF language tag]] list <includeonly>{{Sandbox other|| <!-- Categories below this line --> [[Category:Name templates]] }}</includeonly> 3l72vpyg76n78cj7q3y8d6lielkmmjx Plantilla:Native name 10 25932 116640 2025-07-03T13:10:03Z Aristorkle 14080 copied from enwiki 116640 wikitext text/x-wiki <includeonly>{{#invoke:native name|native_name}}</includeonly><noinclude>{{Documentation}}</noinclude> gp4mircewcgfc8vfhzojwwumum7hr0j Módulo:Location map/data/Philippines/doc 828 25933 116642 2025-07-03T13:34:24Z Aristorkle 14080 copied from enwiki 116642 wikitext text/x-wiki <!-- Categories go at the bottom of this page. --> {{High-use}} {{Module:Location map/data/doc |image=[[File:Philippines-CIA WFB Map.png|thumb|250px|Map of the Philippines]] |examples= === Location map, using default map (image) === {{Location map | Philippines | width = 250 | lat_deg = 14.58 | lon_deg = 120.97 | label = Manila }} <pre style="width:30em"> {{Location map | Philippines | width = 250 | lat_deg = 14.58 | lon_deg = 120.97 | label = Manila }} </pre> {{clear}} === Location map many, using relief map (image1) === {{Location map many | Philippines | relief = yes | width = 250 | caption = Two locations in the Philippines | lat1_deg = 14.58 | lon1_deg = 120.97 | label1 = Manila | lat2_deg = 6.052 | lon2_deg = 121.002 | label2 = Jolo }} <pre style="width:30em"> {{Location map many | Philippines | relief = yes | width = 250 | caption = Two locations in the Philippines | lat1_deg = 14.58 | lon1_deg = 120.97 | label1 = Manila | lat2_deg = 6.052 | lon2_deg = 121.002 | label2 = Jolo }} </pre> {{clear}} === Location map+, using AlternativeMap === {{Location map+ | Philippines | AlternativeMap = Philippines relief location map (square).svg | width = 250 | caption = Two locations in the Philippines | places = {{Location map~ | Philippines | lat_deg = 14.58 | lon_deg = 120.97 | label = Manila }} {{Location map~ | Philippines | lat_deg = 6.052 | lon_deg = 121.002 | label = Jolo }} }} <pre style="width:35em"> {{Location map+ | Philippines | AlternativeMap = Philippines relief location map.jpg | width = 250 | caption = Two locations in the Philippines | places = {{Location map~ | Philippines | lat_deg = 14.58 | lon_deg = 120.97 | label = Manila }} {{Location map~ | Philippines | lat_deg = 6.052 | lon_deg = 121.002 | label = Jolo }} }} </pre> |see also= }} <includeonly> <!-- Categories go here: --> [[Category:Philippines location map modules| ]] </includeonly> ishsi7q8u1yhkvzrtmgnhekxk2r12oc Módulo:Location map/info 828 25934 116643 2025-07-03T13:34:52Z Aristorkle 14080 copied from enwiki 116643 Scribunto text/plain local p = {} function p.main(frame) local map = mw.loadData(string.gsub(mw.title.getCurrentTitle().prefixedText,'/doc$','')) local retval = [=[{| class="wikitable" style="text-align:center; margin-top:0;" |+ Location map of ]=] .. map.name .. '\n' .. [=[ |- ! name |colspan="3"| ]=] .. map.name .. [=[ |- ]=] if map.top then retval = retval .. [=[!rowspan="4"|border<br/>coordinates |- |colspan="3"| ]=] .. map.top .. '\n' .. [=[ |- |style="width:7em;"| ]=] .. map.left .. '\n' .. [=[ | ←↕→ |style="width:7em;"| ]=] .. map.right if map.right > 180 then retval = retval .. ' (' .. map.right - 360 .. ')' end retval = retval .. '\n' .. [=[ |- |colspan="3"| ]=] .. map.bottom .. '\n' .. [=[ |- ! map center |colspan="4"| ]=] local width = (map.right - map.left) % 360 if width == 0 then width = 360 end local center = (map.left + width/2) % 360 if center >= 180 then center = center - 360 end retval = retval .. frame:expandTemplate{title = 'coord', args = { (map.top + map.bottom)/2, center }} retval = retval .. '\n' .. [=[ |-]=] end if map.x then retval = retval .. '\n' .. [=[ ! x |colspan="3" style="overflow: auto; white-space: auto; width: 350px"| ]=] .. map.x .. '\n' .. [=[ |- ! y |colspan="3" style="overflow: auto; white-space: auto; width: 350px"| ]=] .. map.y .. '\n' .. [=[ |-]=] end retval = retval .. '\n' .. [=[ ! image |colspan="3"| <code>[[:File:]=] .. map.image .. '|' .. map.image .. [=[]]</code> |- |colspan="4"|[[File:]=] .. map.image .. [=[|400x400px]] |-]=] local i = 0 while map['image' .. (i+1)] or map['image' .. (i+2)] do i = i + 1 if map['image' .. i] then retval = retval .. '\n' .. [=[ ! image]=] .. i .. '\n' .. [=[ |colspan="3"| <code>[[:File:]=] .. map['image' .. i] .. '|' .. map['image' .. i] .. [=[]]</code> |- |colspan="4"|[[File:]=] .. map['image' .. i] .. [=[|400x400px]] |-]=] end end if map.skew then retval = retval .. '\n' .. [=[ ! skew |colspan="3"| ]=] .. map.skew .. '\n' .. [=[ |-]=] end if map.lat_skew then retval = retval .. '\n' .. [=[ ! lat_skew |colspan="3"| ]=] .. map.lat_skew .. '\n' .. [=[ |-]=] end if map.mark then retval = retval .. '\n' .. [=[ ! mark |colspan="3"| <code>[[:File:]=] .. map.mark .. '|' .. map.mark .. [=[]]</code> |-]=] end if map.marksize then retval = retval .. '\n' .. [=[ ! marksize |colspan="3"| ]=] .. map.marksize .. '\n' .. [=[ |-]=] end retval = retval .. '\n|}' return retval end return p cu4wor1fgdtx1e5mo2972m1yb63x59p Módulo:Location map/info/doc 828 25935 116644 2025-07-03T13:35:07Z Aristorkle 14080 copied from enwiki 116644 wikitext text/x-wiki {{High-use}} <!-- Categories go at the bottom of this page and interwikis go in Wikidata. --> '''{{NAMESPACE}}:{{BASEPAGENAME}}''' displays values stored in location map data [[Help:Module|modules]] such as [[Module:Location map/data/Belgium]]. These modules are used by [[Module:Location map]] to obtain values such as the file name and the border coordinates of each location map. == Usage == This module is automatically used as documentation for map data modules and should not normally be called manually. ====The <code>name</code> parameter==== The {{tl|Location map}} family of templates uses the value assigned to <code>name</code> to generate [[wp:alt|alt text]]. It is used to construct the sentence "<code>label</code> is located in <code>name</code>". Assign a value to <code><name></code> that fits in the sentence. For example: : Chicago is located in <u>the United States</u>. So {{para|name|the United States}}. : Santo Domingo is located in <u>the Dominican Republic</u>. So {{para|name|the Dominican Republic}}. == See also == * [[Template:Location map/Info]], used for location map data [[Help:Template|templates]] such as "Template:Location map India" " * {{tl|Location map}} and [[Module:Location map]] <includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox|| <!-- Categories go here and interwikis go in Wikidata. --> [[Category:Location map modules]] }}</includeonly> 4vvg0nz4t0d4r4hixvv017e94s8bv10 Plantilla:Location map~ 10 25936 116646 2025-07-03T13:38:01Z Aristorkle 14080 copied from enwiki 116646 wikitext text/x-wiki <includeonly>{{#invoke:Location map|mark}}</includeonly><noinclude> {{Documentation}} </noinclude> 1lw8zlt59mztp7ojo9dt06oixklle0p Módulo:Location map/data/Philippines Metro Manila 828 25937 116647 2025-07-03T13:42:45Z Aristorkle 14080 copied from enwiki 116647 Scribunto text/plain return { name = 'Metro Manila', top = 14.790, bottom = 14.338, left = 120.9, right = 121.145, image = 'Metro Manila location map.svg' } ck12qr9rv8yvj2d8czspfc21ow40h4x Plantilla:Infobox calsada 10 25938 116650 2025-07-03T14:25:33Z Aristorkle 14080 copied from enwiki 116650 wikitext text/x-wiki {{Infobox |templatestyles =Infobox road/styles.css |headerclass={{#invoke:Infobox road|headerStyle}} |belowstyle=line-height:150% <!-- ROUTE MARKER AND ROUTE NAME --> |above={{#switch:{{Infobox road/meta/mask/country|{{{state|}}}{{{province|}}}|{{{country|}}}}} |USA|CAN={{#invoke:Infobox road/route|routeInfo}} |#default={{#ifeq:{{{country|}}}|AUS |{{#if:{{{name|}}}|{{{name}}}|{{#ifeq:{{Infobox road/name/AUS|state={{{state|¬}}}|type={{{type|}}}|route={{{route}}}}}|none||{{Infobox road/name/AUS|state={{{state|¬}}}|type={{{type|}}}|route={{{route}}}}}|}}}}{{#if:{{{alternate_name|}}}|<br /><div style="font-weight:normal;display:inline;">{{{alternate_name|}}}</div>}} {{#if:{{{marker_image|}}}|{{#ifeq:{{{marker_image|}}}|none||<div style="margin:6px 0 2px 0">{{{marker_image}}}</div>}}|{{#if:{{{state|{{{province|{{{country|}}}}}}}}}|{{#ifeq:{{Infobox road/shieldmain/{{Infobox road/meta/mask/country|{{{state|}}}{{{province|}}}|{{{country|}}}}}|province={{{province|¬}}}|state={{{state|¬}}}|type={{{type|}}}|county={{{county|}}}|route={{{route|}}}|subtype={{Infobox road/meta/mask/subtype1|{{{subtype|}}}}}}}|none||<div style="margin:6px 0 2px 0">{{Infobox road/shieldmain/{{Infobox road/meta/mask/country|{{{state|}}}{{{province|}}}|{{{country|}}}}}|province={{{province|¬}}}|state={{{state|¬}}}|type={{{type|}}}|county={{{county|}}}|route={{{route|}}}|subtype={{Infobox road/meta/mask/subtype1|{{{subtype|}}}}}}}</div>}}}}}} |{{#if:{{{marker_image|}}}|{{#ifeq:{{{marker_image|}}}|none||<div style="margin:0 0 4px 0">{{{marker_image}}}</div>}}|{{#if:{{{state|{{{province|{{{country|}}}}}}}}}|{{#ifeq:{{Infobox road/shieldmain/{{Infobox road/meta/mask/country|{{{state|}}}{{{province|}}}|{{{country|}}}}}|province={{{province|¬}}}|state={{{state|¬}}}|type={{{type|}}}|county={{{county|}}}|route={{{route|}}}|subtype={{Infobox road/meta/mask/subtype1|{{{subtype|}}}}}}}|none||<div style="margin:0 0 4px 0">{{Infobox road/shieldmain/{{Infobox road/meta/mask/country|{{{state|}}}{{{province|}}}|{{{country|}}}}}|province={{{province|¬}}}|state={{{state|¬}}}|type={{{type|}}}|county={{{county|}}}|route={{{route|}}}|subtype={{Infobox road/meta/mask/subtype1|{{{subtype|}}}}}}}</div>}}}}}} {{#if:{{{name|}}}|{{{name}}}|{{#if:{{{state|{{{province|{{{country|}}}}}}}}}|{{#ifeq:{{Infobox road/name/{{Infobox road/meta/mask/country|{{{state|}}}{{{province|}}}|{{{country|}}}}}|province={{{province|¬}}}|state={{{state|¬}}}|type={{{type|}}}|subtype={{Infobox road/meta/mask/subtype1|{{{subtype|}}}}}|route={{{route}}}|county={{{county|}}}}}|none||{{Infobox road/name/{{Infobox road/meta/mask/country|{{{state|}}}{{{province|}}}|{{{country|}}}}}|province={{{province|¬}}}|state={{{state|¬}}}|type={{{type|}}}|subtype={{Infobox road/meta/mask/subtype1|{{{subtype|}}}}}|route={{{route}}}|county={{{county|}}}}}|}}}}}}}} }} |subheaderstyle1 = font-size: 125%; |subheader={{#invoke:Infobox road|translate}} |subheader2={{#ifeq:{{{country|}}}|AUS||{{{alternate_name|}}}}} <!-- MAP --> |image={{#invoke:Infobox road/map|map}} |caption={{{map_notes|}}} |image2={{#invoke:Infobox road|photo}} |caption2={{{photo_notes|}}}{{{image_notes|}}} <!-- ROUTE INFORMATION --> |header1= {{#invoke:Infobox road|info}} |data2 = {{#if:{{{spur_of|}}}|{{Infobox road/meta/spur of|1={{{type|}}}|2={{{subtype|}}}|spur_type={{{spur_type|}}}|spur_route={{{spur_of|}}}|country={{{country|}}}|province={{{province|}}}|state={{{state|}}}|county={{{county|}}}}}|}} |data3 = {{#invoke:Infobox road|partOf}} |data4 = <!-- {{#invoke:Infobox road|law}} --> |data5 = {{#invoke:Infobox road|maint}} |data6 = {{#if:{{{time_period|}}}|{{#if:{{{established_by|}}}|Established by {{{established_by}}}|}}|}} |label7 = Length |data7 = {{#invoke:Infobox road/length|length}} |class8 = plainlist |label8= Status |data8= {{{status|}}} |class9= plainlist |label9= Existed |data9= {{#invoke:Infobox road|existed}} |class11 = plainlist |label11= History |data11= {{{history|}}} |data12 = {{#invoke:Infobox road|period}} |class16 = plainlist |label16 = {{#invoke:Infobox road|allocation}} |data16 = {{{allocation|}}} |class17 = plainlist |label17 = Tourist<br>routes |data17 = {{{tourist|}}} |class18 = plainlist |label18 = {{abbr|NHS|National Highway System}} |data18 = {{#ifeq:{{Infobox road/meta/mask/country|{{{state|}}}{{{province|}}}|{{{country|}}}}}|USA|{{#switch:{{{type|}}} |I = Entire route |#default = {{{nhs|}}} }}}} |class19 = plainlist |label19 = Restrictions |data19 = {{{restrictions|}}} |label20 = [[Margary numbers|Margary number]] |data20 = {{{margary|}}} <!-- MAJOR JUNCTIONS (FOR MOST ROUTES) --> |header30= {{#invoke:Infobox road/sections|main}} <!-- MAJOR JUNCTIONS (IF DIVIDED IN UP TO 25 SECTIONS) --> |header31= {{#invoke:Infobox road/sections|section}} <!-- LOCATION INFORMATION (SOME PARAMETERS ARE DISABLED FOR CERTAIN COUNTRIES) --> |header35={{#invoke:Infobox road/locations|location}} <!-- HIGHWAY SYSTEM --> |header50= {{#invoke:Infobox road|highwaySystem}} <!-- LINKS AND BROWSE SECTION --> |class52 = hlist |data52 = {{#if:{{{system|}}}|{{{system}}}|{{#invoke:Infobox road/browselinks|browselinks}}}} |rowstyle54 = display: none |header54 = {{#invoke:Infobox road|system}} |data56 = {{#invoke:Infobox road|browse}} |data58 = {{#invoke:Infobox road|extended}} <!-- HISTORICAL DESIGNATION, NRHP, EMBEDDED INFOBOXES --> |data60={{{nrhp|{{{embedded|}}}}}} |subbox={{yesno|{{{child|}}}}} }}<!-- // ERROR TRACKING CATEGORIES // -->{{#if:{{{country|}}}{{{state|}}}{{{province|}}}|{{#if:{{{type|}}}|{{#if:{{{route|}}}|{{#if:{{{translation|}}}{{{name|}}}|{{main other|[[Category:Infobox road temporary tracking category 1|{{#if:{{{name|}}}|†|{{#if:{{{translation|}}}|@}}}} {{Infobox road/meta/mask/country|{{{state|}}}{{{province|}}}|{{{country|}}}}} {{PAGENAME}}]]}}}}|}}}}}}<!-- -->{{main other|{{#if:{{{subtype|}}}|[[Category:Infobox road temporary tracking category 2|Ω {{Infobox road/meta/mask/country|{{{state|}}}{{{province|}}}|{{{country|}}}}} {{PAGENAME}}]]|}}}}<!-- -->{{#invoke:Infobox road/errors|errors}}<!-- -->{{#if:{{{header_type|}}}|{{#switch:{{lc:{{{header_type}}}}} |under construction|const|uc={{main other|[[Category:Infobox road temporary tracking category 1|ƒ {{Infobox road/meta/mask/country|{{{state|}}}{{{province|}}}|{{{country|}}}}} {{PAGENAME}}]]}} |scenic|historic|historical|hist={{main other|[[Category:Infobox road temporary tracking category 1|¶ {{Infobox road/meta/mask/country|{{{state|}}}{{{province|}}}|{{{country|}}}}} {{PAGENAME}}]]}} |decommissioned|former={{main other|[[Category:Infobox road temporary tracking category 1|∆ {{Infobox road/meta/mask/country|{{{state|}}}{{{province|}}}|{{{country|}}}}} {{PAGENAME}}]]}} |minor= |#default={{main other|[[Category:Infobox road temporary tracking category 1|£ {{Infobox road/meta/mask/country|{{{state|}}}{{{province|}}}|{{{country|}}}}} {{PAGENAME}}]]}}}}}}<!-- -->{{#if:{{{country|}}}{{{state|}}}{{{province|}}}|{{#if:{{{type|}}}|{{#if:{{{marker_image|}}}| {{main other|[[Category:Infobox road temporary tracking category 1|{{#ifeq:{{{marker_image}}}|none|&|$}} {{Infobox road/meta/mask/country|{{{state|}}}{{{province|}}}|{{{country|}}}}} {{PAGENAME}}]]}}}}}}}}<!-- -->{{#if:{{{map_custom|}}}||{{#ifeq:{{#property:P15}}||{{main other|[[Category:Infobox road maps tracking category]]}}|}}}}<!-- -->{{#if:{{{map_custom|}}}||{{#ifeq:{{{map|}}}|{{#property:P15}}||{{main other|[[Category:Infobox road maps for Wikidata migration]]}}|}}}}<!-- -->{{main other|{{#ifeq:{{#property:P17}}||[[Category:Infobox road articles without Wikidata country]]}}<!-- -->{{#ifeq:{{#property:P31}}||{{main other|[[Category:Infobox road articles without Wikidata instance of]]}}}}}}<!-- -->{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox road with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox road]] with unknown parameter "_VALUE_"|ignoreblank=y| above | ahn-shield | ahn | allocation | alternate_name | areas | beltway_city | bodystyle | borough | boroughs | browse_route | browse | cantons | child | cities | communes | community | communities | counties | countries | county | country | decommissioned | deleted | departments | destinations | direction_a | direction_a1 | direction_a2 | direction_a3 | direction_a4 | direction_a5 | direction_a6 | direction_a7 | direction_a8 | direction_a9 | direction_a10 | direction_b | direction_b1 | direction_b2 | direction_b3 | direction_b4 | direction_b5 | direction_b6 | direction_b7 | direction_b8 | direction_b9 | direction_b10 | districts | divisions | e-road | e-road-shield | embedded | end_a | end_a1 | end_a2 | end_a3 | end_a4 | end_a5 | end_a6 | end_a7 | end_a8 | end_a9 | end_a10 | end_b | end_b1 | end_b2 | end_b3 | end_b4 | end_b5 | end_b6 | end_b7 | end_b8 | end_b9 | end_b10 | established | established_by | federal_cities | formed | governorates | header_color | header_type | history | image | image_alt | image_notes | image_width | indep_city | indep_cities | island | junction | junctions | junction1 | junction2 | junction3 | junction4 | junction5 | junction6 | junction7 | junction8 | junction9 | junction10 | known_for | krais | label1 | label2 | label3 | label4 | label5 | labelstyle | lang | length_km | length_km1 | length_km2 | length_km3 | length_km4 | length_km5 | length_km6 | length_km7 | length_km8 | length_km9 | length_km10 | length_mi | length_mi1 | length_mi2 | length_mi3 | length_mi4 | length_mi5 | length_mi6 | length_mi7 | length_mi8 | length_mi9 | length_mi10 | length_nmi | length_notes | length_notes1 | length_notes2 | length_notes3 | length_notes4 | length_notes5 | length_notes6 | length_notes7 | length_notes8 | length_notes9 | length_notes10 | length_ref | length_ref1 | length_ref2 | length_ref3 | length_ref4| length_ref5 | length_ref6 | length_ref7 | length_ref8 | length_ref9 | length_ref10 | length_round | lga | location | location1 | location2 | location3 | location4 | location5 | locations | loop | maint | map | mapframe | mapframe-id | mapframe-geomask | mapframe-zoom | mapframe-width | mapframe-height | mapframe-marker | mapframe-marker-color | mapframe-marker-colour | mapframe-lat | mapframe-latitude | mapframe-long | mapframe-longitude | mapframe-raw | map_alt | map_custom | map_notes | margary | marker_image | mrn | mrn-shield | municipalities | municipality | name | next_dab | next_route | next_type | nhs | nobrowse | nrhp | oblasts | okrugs | orbital | parish | parishes | photo | photo_alt | photo_notes | photo_width | prefectures | previous_dab | previous_route | previous_type | province | provinces | regions | republics | related | restrictions | ring_road | route | rural_municipalities | section | section0 | section1 | section2 | section3 | section4 | section5 | section6 | section6 | section7 | section8 | section9 | section10 | sheadings | significance | spur_of | spur_type | state | states | state2 | status | subcounties | subprefectures | subregions | subsection | system | system1 | system2 | system3| system4 | system5 | system6 | system7 | system8 | system9 | system10 | tahn | tahn-shield | terminus_a | terminus_a1 | terminus_a2 | terminus_a3 | terminus_a4 | terminus_a5 | terminus_a6 | terminus_a7 | terminus_a8 | terminus_a9 | terminus_a10 | terminus_b | terminus_b1 | terminus_b2 | terminus_b3 | terminus_b4 | terminus_b5 | terminus_b6 | terminus_b7 | terminus_b8 | terminus_b9 | terminus_b10 | territories | time_period | tloop | tourist | towns | translation | type | villages | categories | nocat | demo }}<!-- --><includeonly>{{main other|[[Category:Infobox road instances {{Infobox road/meta/mask/category|1={{{country|}}}|2={{{state|}}}|3={{{province|}}}}}]]}}<!-- --></includeonly><noinclude> {{Documentation}} </noinclude> 94wp2s6col88l0e2cv16pwgygspndh3 Plantilla:Infobox road/styles.css 10 25939 116651 2025-07-03T14:26:40Z Aristorkle 14080 copied from enwiki 116651 sanitized-css text/css /* {{pp-template}} */ /* These are the 'hard-coded' header styles */ .header-default, .header-UNK, .header-ATA, .header-BDI, .header-CAF, .header-COG, .header-COM, .header-DMA, .header-ERI, .header-FSM, .header-GAB, .header-HTI, .header-GMB, .header-GUY, .header-HRV, .header-KEN, .header-KNA, .header-LBY, .header-LCA, .header-MHL, .header-MRT, .header-NER, .header-NIU, .header-NRU, .header-SDN, .header-SLB, .header-SOM, .header-SSD, .header-TGO, .header-TUV, .header-UGA, .header-VCT { background:#cedff2; } .header-deleted { background:#ccc; } .header-hist { background:#704214; color:#fff; } .header-deleted-hist { background:#ddcba4; } .header-uc { background:#ffa500; } /* These are the most common styles */ .header-autobahn { background:#2C5BB7; color:#fff; } .header-ASIA { background:#1e2c76; color:#fff; } .header-ASIA-RUS { background:#00004e; color:#fff; } .header-EUR { background:#08842C; color:#fff; } .header-EUR-ESP { background:#13926c; color:#fff; } .header-EUR-FIN { background:#00997c; color:#fff; } .header-EUR-FRA { background:#28961e; color:#fff; } .header-EUR-NOR { background:#00965e; color:#fff; } .header-EUR-RUS { background:#00a500; color:#fff; } .header-EUR-UKR { background:#090; color:#fff; } .header-minor, .header-AND, .header-AUT, .header-BFA, .header-CMR, .header-CPV, .header-DEU, .header-DJI, .header-DZA, .header-ENG, .header-FRA, .header-FIN, .header-GEO, .header-GGY, .header-GIB, .header-GBR, .header-GNB, .header-GNQ, .header-GUF, .header-IMN, .header-IRL, .header-IRN, .header-JEY, .header-MAR, .header-MCO, .header-MDV, .header-MLI, .header-MTQ, .header-MYT, .header-NIR, .header-NPL, .header-PRT, .header-PSE, .header-REU, .header-SCT, .header-SEN, .header-STP, .header-TCD, .header-TZA, .header-WLS { background:#fff; border:2px solid #000; } .header-motorway, .header-ALA, .header-AZE, .header-CHE, .header-EST, .header-GIN, .header-GRC, .header-JOR, .header-LAO, .header-LBN, .header-LIE, .header-MLT, .header-MNG, .header-MYS, .header-NLD, .header-OMN, .header-ROU, .header-SUR, .header-SVK, .header-SYR, .header-TTO, .header-YEM { background:#0079C1; color:#fff; } .header-MUTCDblue, .header-AFG, .header-BGR, .header-CZE, .header-CYP, .header-EGY, .header-ITA, .header-PAK, .header-SMR, .header-SVK, .header-SWE { background:#003f87; color:#fff; } .header-MUTCDgreen, .header-AGO, .header-ANG, .header-ARE, .header-ARG, .header-BEL, .header-BHN, .header-BEN, .header-BLZ, .header-BOL, .header-BRA, .header-BRN, .header-BWA, .header-CAN, .header-CHL, .header-CHN, .header-COL, .header-CRI, .header-CRI, .header-CUB, .header-DOM, .header-ECU, .header-ETH, .header-FJI, .header-GHA, .header-GRD, .header-GTM, .header-HKG, .header-HND, .header-HUN, .header-IDN, .header-IRQ, .header-KIR, .header-KHM, .header-KOR, .header-KWT, .header-LBR, .header-LKA, .header-LSO, .header-MEX, .header-MMR, .header-MOZ, .header-MUS, .header-NAM, .header-NGA, .header-NIC, .header-NZL, .header-PAN, .header-PER, .header-PLW, .header-PNG, .header-POL, .header-PRI, .header-PRK, .header-PRY, .header-QAT, .header-RWA, .header-SAU, .header-SGP, .header-SLV, .header-SWZ, .header-TAH, .header-THA, .header-TLS, .header-TON, .header-TUN, .header-TUR, .header-TWN, .header-URY, .header-VEN, .header-VNM, .header-USA, .header-WSM, .header-ZAF, .header-ZMB, .header-ZWE { background:#006a4d; color:#fff; } .header-primary, .header-BRB, .header-JAM { background:#00703c; color:#ffd200; } .header-primary-white, .header-BGD, .header-BTN, .header-MWI { background:#00703c; color:#fff; } .header-SUN, .header-ARM, .header-AZE, .header-BLR, .header-KAZ, .header-KGZ, .header-LVA, .header-LTU, .header-MDA, .header-RUS, .header-TJK, .header-TKM, .header-UKR, .header-UZB { background:#0d69e1; color:#fff; } /* Named colors*/ .header-blue-var1 { background:#06c; color:#fff; } .header-blue-var2 { background:#276fb7; color:#fff; } .header-dark-blue, .header-DNK, .header-VNM { background:#039; color:#fff; } .header-yellow { background:#fc3; border:1px solid #000; } .header-ALB { background:#00408b; color:#fff; } .header-AUS { background:#336745; color:#ffa709; } .header-AUS-freeway { background:#d2e2f9; } .header-AUS-highway { background:#e9f9d2; } .header-AUS-road { background:#ffffe0; } .header-AUS-street { background:#f9e2d2; } .header-AUS-track { background:#fee8ab; } .header-BEL, .header-COD { background:#005b8c; color:#fff; } .header-BIH { background:#0b8f4b; color:#fff; } .header-CYP-A { background:#005024; color:#ffc000; } .header-DEU-B, .header-LUX, .header-MKD, .header-MNE, .header-SRB, .header-SVN, .header-YUG { background:#fc3; } .header-DEU-scenic { background:#633a34; color:#fff; } .header-DNK-red { background:#fff; color:#af1e2d; border:2px solid #af1e2d; } .header-ESP { background:#e8e8e8; } .header-ESP-A, .header-ESP-AP, .header-ESP-Autovia, .header-ESP-Autopista { background:#19408b; color:#fff; } .header-ESP-N { background:#bf0411; color:#fff; } .header-FIN-blue { background:#005eb8; color:#fff; } .header-FIN-green { background:#00997c; color:#fff; } .header-IND { background:#128807; color:#fff; } .header-ISL { background:#ffd200; border:2px solid #000; } .header-ISR { background:#007e00; color:#fff; } .header-ISR-freeway { background:#0000fe; color:#fff; } .header-JPN { background:#0066b3; color:#fff; } .header-JPN-Exp { background:#005d35; color:#fff; } .header-KOS { background:#06c; color:#fff; } .header-KOS-R, .header-PHL { background:#093; color:#fff; } .header-MDG { background:#fff; color:#af1e2d; border:2px solid #000; } .header-NOR { background:#f2a900; } liw31c64iljzaaifoermw4xsjyee2o4 Módulo:Infobox road/errors 828 25940 116652 2025-07-03T14:28:15Z Aristorkle 14080 copied from enwiki 116652 Scribunto text/plain local p = {} local getArgs = require('Module:Arguments').getArgs local util = require("Module:Road data/util") local yesno = require('Module:Yesno') local routeModule = require("Module:Infobox road/route") local parserModule = require("Module:Road data/parser") local parser = parserModule.parser local format = mw.ustring.format local frame = mw.getCurrentFrame() local function country(args) local state = args.state or args.province local country local countryModule = mw.loadData("Module:Road data/countrymask") local country = args.country or countryModule[state] return country end local function countries(args) if not country(args) then if args.countries then return "no" end elseif country(args) == 'EUR' or country(args) == 'AFRICA' or country(args) == 'ASIA' or country(args) == 'SAD' then if args.countries then return "no" end end end local function states(args) if country(args) == 'BRA' or country(args) == 'MEX' then if args.areas or args.borough or args.boroughs or args.cantons or args.communes or args.communities or args.countries or args.county or args.departments or args.districts or args.divisions or args.federal_cities or args.governorates or args.indep_city or args.indep_cities or args.island or args.krais or args.label1 or args.label2 or args.label3 or args.label4 or args.label5 or args.lga or args.location1 or args.location2 or args.location3 or args.location4 or args.location5 or args.locations or args.municipality or args.oblasts or args.okrugs or args.parish or args.parishes or args.prefectures or args.provinces or args.regions or args.republics or args.rural_municipalities or args.sheadings or args.subcounties or args.subprefectures or args.subregions or args.territories then return "yes" else return "no" end end end local function australia(args) if country(args) == 'AUS' then if args.areas or args.borough or args.boroughs or args.cantons or args.communes or args.communities or args.counties or args.countries or args.county or args.departments or args.districts or args.divisions or args.federal_cities or args.governorates or args.indep_city or args.indep_cities or args.island or args.krais or args.label1 or args.label2 or args.label3 or args.label4 or args.label5 or args.location1 or args.location2 or args.location3 or args.location4 or args.location5 or args.municipalities or args.municipality or args.oblasts or args.okrugs or args.parish or args.parishes or args.prefectures or args.provinces or args.regions or args.republics or args.rural_municipalities or args.sheadings or args.subcounties or args.subprefectures or args.subregions or args.territories then return "yes" else return "no" end end end local function canada(args) if country(args) == 'CAN' then if args.borough or args.boroughs or args.cantons or args.communes or args.countries or args.departments or args.federal_cities or args.governorates or args.indep_city or args.indep_cities or args.island or args.krais or args.label1 or args.label2 or args.label3 or args.label4 or args.label5 or args.lga or args.location1 or args.location2 or args.location3 or args.location4 or args.location5 or args.locations or args.oblasts or args.okrugs or args.prefectures or args.republics or args.sheadings or args.states or args.subcounties or args.subprefectures or args.subregions then return "yes" else return "no" end end end local function china(args) if country(args) == 'CHN' then if args.areas or args.borough or args.boroughs or args.cantons or args.communes or args.communities or args.countries or args.departments or args.divisions or args.federal_cities or args.governorates or args.indep_city or args.indep_cities or args.island or args.krais or args.label1 or args.label2 or args.label3 or args.label4 or args.label5 or args.lga or args.location1 or args.location2 or args.location3 or args.location4 or args.location5 or args.locations or args.municipalities or args.municipality or args.oblasts or args.okrugs or args.parish or args.parishes or args.prefectures or args.republics or args.rural_municipalities or args.sheadings or args.states or args.subcounties or args.subprefectures or args.subregions or args.territories then return "yes" else return "no" end end end local function france(args) if country(args) == 'FRA' then if args.areas or args.borough or args.boroughs or args.cantons or args.communes or args.communities or args.counties or args.countries or args.county or args.districts or args.divisions or args.federal_cities or args.governorates or args.indep_city or args.indep_cities or args.island or args.krais or args.label1 or args.label2 or args.label3 or args.label4 or args.label5 or args.lga or args.location1 or args.location2 or args.location3 or args.location4 or args.location5 or args.locations or args.municipalities or args.municipality or args.oblasts or args.okrugs or args.parish or args.parishes or args.prefectures or args.provinces or args.republics or args.rural_municipalities or args.sheadings or args.states or args.subcounties or args.subprefectures or args.subregions or args.territories then return "yes" else return "no" end end end local function india(args) if country(args) == 'IND' then if args.areas or args.borough or args.boroughs or args.cantons or args.communes or args.communities or args.counties or args.countries or args.county or args.departments or args.divisions or args.federal_cities or args.governorates or args.indep_city or args.indep_cities or args.island or args.krais or args.label1 or args.label2 or args.label3 or args.label4 or args.label5 or args.lga or args.location1 or args.location2 or args.location3 or args.location4 or args.location5 or args.locations or args.oblasts or args.okrugs or args.parish or args.parishes or args.prefectures or args.provinces or args.regions or args.republics or args.rural_municipalities or args.sheadings or args.subcounties or args.subprefectures or args.subregions then return "yes" else return "no" end end end local function netherlands(args) if country(args) == 'NLD' then if args.areas or args.borough or args.boroughs or args.cantons or args.communes or args.communities or args.counties or args.countries or args.county or args.departments or args.districts or args.divisions or args.federal_cities or args.governorates or args.indep_city or args.indep_cities or args.island or args.krais or args.label1 or args.label2 or args.label3 or args.label4 or args.label5 or args.lga or args.location1 or args.location2 or args.location3 or args.location4 or args.location5 or args.locations or args.oblasts or args.okrugs or args.parish or args.parishes or args.prefectures or args.regions or args.republics or args.rural_municipalities or args.sheadings or args.states or args.subcounties or args.subprefectures or args.subregions or args.territories then return "yes" else return "no" end end end local function russia(args) if country(args) == 'RUS' then if args.areas or args.borough or args.boroughs or args.cantons or args.communes or args.communities or args.counties or args.countries or args.county or args.departments or args.districts or args.divisions or args.governorates or args.indep_city or args.indep_cities or args.island or args.label1 or args.label2 or args.label3 or args.label4 or args.label5 or args.lga or args.location1 or args.location2 or args.location3 or args.location4 or args.location5 or args.locations or args.municipalities or args.municipality or args.parish or args.parishes or args.prefectures or args.provinces or args.regions or args.rural_municipalities or args.sheadings or args.states or args.subcounties or args.subprefectures or args.subregions or args.territories then return "yes" else return "no" end end end local function spain(args) if country(args) == 'ESP' then if args.areas or args.borough or args.boroughs or args.cantons or args.communes or args.counties or args.countries or args.county or args.departments or args.districts or args.divisions or args.federal_cities or args.governorates or args.indep_city or args.indep_cities or args.island or args.krais or args.label1 or args.label2 or args.label3 or args.label4 or args.label5 or args.lga or args.location1 or args.location2 or args.location3 or args.location4 or args.location5 or args.locations or args.municipalities or args.municipality or args.oblasts or args.okrugs or args.parish or args.parishes or args.prefectures or args.regions or args.republics or args.rural_municipalities or args.sheadings or args.states or args.subcounties or args.subprefectures or args.subregions or args.territories then return "yes" else return "no" end end end local function unitedKingdom(args) if country(args) == 'GBR' then if args.borough or args.cantons or args.communes or args.communities or args.countries or args.county or args.departments or args.divisions or args.federal_cities or args.governorates or args.indep_city or args.indep_cities or args.krais or args.label1 or args.label2 or args.label3 or args.label4 or args.label5 or args.lga or args.location1 or args.location2 or args.location3 or args.location4 or args.location5 or args.locations or args.municipalities or args.municipality or args.oblasts or args.okrugs or args.parish or args.prefectures or args.provinces or args.regions or args.republics or args.rural_municipalities or args.states or args.subcounties or args.subprefectures or args.subregions or args.territories then return "yes" else return "no" end end end local function unitedStates(args) if country(args) == 'USA' then if args.areas or args.cantons or args.cities or args.communes or args.communities or args.countries or args.departments or args.destinations or args.districts or args.divisions or args.federal_cities or args.governorates or args.island or args.krais or args.label1 or args.label2 or args.label3 or args.label4 or args.label5 or args.lga or args.location1 or args.location2 or args.location3 or args.location4 or args.location5 or args.locations or args.oblasts or args.okrugs or args.photo or args.prefectures or args.provinces or args.regions or args.republics or args.rural_municipalities or args.sheadings or args.subcounties or args.subprefectures or args.subregions or args.territories or args.towns or args.villages then return "yes" else return "no" end end end local function trigger(args) if countries(args) == 'yes' or states(args) == 'yes' or australia(args) == 'yes' or canada(args) == 'yes' or china(args) == 'yes' or france(args) == 'yes' or india(args) == 'yes' or netherlands(args) == 'yes' or russia(args) == 'yes' or spain(args) == 'yes' or unitedKingdom(args) == 'yes' or unitedStates(args) == 'yes' then return true else return false end end function p.errors(frame) local args = getArgs(frame) local pagename = frame:getTitle() if trigger(args) == true then return string.format("[[Category:Infobox road transclusion errors|%% %s]]", pagename) else return nil end end return p --args.areas or args.borough or args.boroughs or args.cantons or args.communes or args.communities or args.counties or args.countries or args.county or args.departments or args.districts or args.divisions or args.federal_cities or args.governorates or args.indep_city or args.indep_cities or args.island or args.krais or args.label1 or args.label2 or args.label3 or args.label4 or args.label5 or args.lga or args.location1 or args.location2 or args.location3 or args.location4 or args.location5 or args.locations or args.municipalities or args.municipality or args.oblasts or args.okrugs or args.parish or args.parishes or args.prefectures or args.provinces or args.regions or args.republics or args.rural_municipalities or args.sheadings or args.states or args.subcounties or args.subprefectures or args.subregions or args.territories then 4rxk1qncfr48urrb3571ry6wck3nd7h Módulo:Road data/util 828 25941 116653 2025-07-03T14:29:16Z Aristorkle 14080 copied from enwiki 116653 Scribunto text/plain local util = {} local insert = table.insert local concat = table.concat local format = mw.ustring.format --- -- Add all entries in `arr` into `target`. -- An error is raised if `overwrite` is not true -- and any key in `arr` is already in `target`. function util.addAll(target, arr, overwrite) if type(target) ~= "table" then error("target is not a table") end for key,value in pairs(arr) do if overwrite or target[key] == nil then target[key] = value else error("Duplicate key: " .. tostring(key)) end end end local function comp(e1, e2) local t1 = type(e1) local t2 = type(e2) if t1 ~= t2 then return t1 < t2 end if t1 == "function" then error("Unexpected function type") end return e1 < e2 end local arrayToStringAux arrayToStringAux = function(arr, indent) if type(arr) ~= "table" then error("arr is not a table") end if type(indent) ~= "number" then error("indent is not a number") end local result = {} local keys = {} for key in pairs(arr) do insert(keys, key) end table.sort(keys, comp) for _,key in ipairs(keys) do local value = arr[key] local keyPrint if type(key) == "string" then keyPrint = format("\"%s\"", key) else keyPrint = tostring(key) end local valuePrint if type(value) == "table" then valuePrint = format("{\n%s\n%s}", arrayToStringAux(value, indent + 4), string.rep(" ", indent)) elseif type(value) == "string" then valuePrint = format("\"%s\"", value) else valuePrint = tostring(value) end insert(result, format("%s[%s] = %s", string.rep(" ", indent), keyPrint, valuePrint)) end return concat(result, ", \n") end --- Return a string representation of `arr`. function util.arrayToString(arr, indent) return arrayToStringAux(arr, indent or 0) end local function convert(distance, multiplier, desiredPrec) if type(distance) ~= "string" then error("distance is not a string") end if type(multiplier) ~= "number" then error("multiplier is not a number") end -- Import math functions. local math = require "Module:Math" -- This function returns the precision of a given string representing a number. local precision = math._precision -- This function returns the order of magnitude of a given string representing a number. local order = math._order -- This function rounds a given number to the given number of digits. local round = math._precision_format local prec = desiredPrec or precision(distance) if not desiredPrec then local ord = order(distance) -- Adjust precision based on multiplier, as done in {{convert}}. prec = prec - order(multiplier / 0.2) end local converted = distance * multiplier local magnitude = order(converted) if prec <= -magnitude then -- Ensure the result has at least two significant digits. prec = -magnitude + 1 end return round(converted, prec) end --[[- Convert length specified in one unit (mi or km) to length in the other unit. @param #map<#string, #string> lengths a map from unit to distance (as a string) in that unit; may contain entry `prec` indicating desired conversion precision @param #string blank text to be used if length is unspecified @return #table a table containing the conversion result: orig = source unit; comp = target unit; mi = length in miles; ft = converted length in feet; km = length in kilometers; m = converted length in meters; error = error message, if any ]] function util.convertLengths(lengths, blank) -- Import math functions. local math = require "Module:Math" -- In Lua, storing functions locally results in more efficient execution. -- This function rounds a given number to the given number of digits. local round = math._precision_format -- This function returns the precision of a given string representing a number. local precision = math._precision local kmPerMile = 1.609344 local ftPerMile = 5280 -- The length in kilometers as passed to the function. local km = lengths.km -- The length in miles as passed to the function. local mi = lengths.mi -- Precision for the converted length. local prec = lengths.prec local errMsg = {} -- Sanitize inputs. local km_ = tonumber(km) if km and not km_ then insert(errMsg, util.err("km is not a number")) end local mi_ = tonumber(mi) if mi and not mi_ then insert(errMsg, util.err("mi is not a number")) end local prec_ = tonumber(prec) if prec and not prec_ then insert(errMsg, util.err("prec is not a number")) end prec = prec_ local ft local m local orig = "mi" local comp = "km" if mi and km then insert(errMsg, util.err("Both mi and km are specified")) elseif mi then -- Length in miles was passed. if mi_ then -- If `mi` is indeed a number, compute and round the length in kilometers. km = convert(mi, kmPerMile, prec) m = convert(mi, kmPerMile * 1000, prec) -- format mi (insert separators as in 1,000) mi = round(mi_, precision(mi)) else -- `mi` is not a number. km = blank m = blank end elseif km then -- Length in kilometers was passed. -- Swap units. orig, comp = comp, orig if km_ then -- If `km` is indeed a number, compute and round the length in miles. mi = convert(km, 1 / kmPerMile, prec) ft = convert(km, ftPerMile / kmPerMile, prec) -- format km (insert separators as in 1,000) km = round(km_, precision(km)) else -- `km` is not a number. mi = blank ft = blank end else mi = blank ft = blank km = blank m = blank end local error = concat(errMsg) if error == "" then error = nil end return {mi = mi, ft = ft, km = km, m = m, orig = orig, comp = comp, error = error} end --- Generates wikitext error messages. function util.err(msg) if msg == nil then error("Unspecified error message") end return format('<strong class="error">Error: %s</strong>', msg) end return util apygisaiu5eia5cum3w605up3bqkhvp Módulo:Infobox road/route 828 25942 116654 2025-07-03T14:30:33Z Aristorkle 14080 copied from enwiki 116654 Scribunto text/plain local p = {} local format = mw.ustring.format require('strict') local getArgs = require('Module:Arguments').getArgs local parserModule = require 'Module:Road data/parser' local parser = parserModule.parser local function banner(args, style) if args.marker_image then return nil end local bannerSize if style == 'small' then bannerSize = "40px" else bannerSize = "72px" end local shield = parser(args, 'banner') local alt = parser(args, 'banner') if not shield or shield == '' then return nil else return string.format('[[File:%s|%s|alt=%s]]', shield, bannerSize, alt) end end local function shield(args, style) if args.marker_image then return args.marker_image end local horizontalSize local verticalSize if style == 'small' then horizontalSize = "90x40px" verticalSize = "40x90px" else horizontalSize = "154x72px" verticalSize = "72x154px" end local shield = parser(args, 'shieldmain') or parser(args, 'shield') or '' local label = parser(args, 'name') or parser(args, 'abbr') or '' local alt = label .. ' marker' local orientation = parser(args, 'orientation') local function simpleSize(args) if orientation and orientation == 'upright' then return verticalSize else return horizontalSize end end local function shield_size(image_name, orientation) local image = 'File:' .. image_name local title = mw.title.new(image) local width = title.file.width local height = title.file.height if (orientation and orientation == 'upright') or height > width then return verticalSize else return horizontalSize end end if not shield or shield == '' then return nil elseif type(shield) == 'table' then local res = {} local sizes = {} for i,v in ipairs(shield) do sizes[i] = v res[i] = string.format('[[File:%s|%s|alt=%s]]', v, shield_size(v), alt) end return table.concat(res, ' ') else return string.format('[[File:%s|%s|alt=%s]]', shield, simpleSize(args), alt) end end -- Links/abbreviations local function name(args) local name = args.name or parser(args, 'name') or parser(args, 'abbr') return name end function p._routeInfo(args) local style = args.style local banner = banner(args, style) local shield = shield(args, style) local name = name(args) if not args.type and not args.route and not args.name and not args.marker_image then local container = nil else local container = mw.html.create('div'):cssText('text-align:center;') if shield == nil or args.marker_image == 'none' or args.name and not args.marker_image and not args.type and not args.route then container:tag('div'):cssText('margin:0.1em;'):wikitext(name) elseif args.marker_image ~= '' and args.name == '' or args.name == nil and not args.type and not args.route then container:tag('div'):cssText('margin:0.1em;'):wikitext(shield) elseif args.country == 'AUS' then container:tag('div'):cssText('margin:0.1em;'):wikitext(name) container:tag('div'):cssText('margin:0.1em 0 0 0;'):wikitext(shield) else container:tag('div'):cssText('margin:0.1em 0 0 0;'):wikitext(banner) container:tag('div'):cssText('margin:0 0 0.1em;'):wikitext(shield) container:tag('div'):cssText('margin:0.1em;'):wikitext(name) end return tostring(container) end end function p.routeInfo(frame) local args = getArgs(frame) return p._routeInfo(args); end function p._shields(args) local style = args.style local banner = banner(args, style) local shield = shield(args, style) if not args.type and not args.route and not args.name and not args.marker_image then local container = nil else local container = mw.html.create('div'):cssText('text-align:center; display: inline-block; vertical-align: baseline; line-height: 0;') container:tag('div'):cssText('margin:0.1em 0 0 0;'):wikitext(banner) container:tag('div'):cssText('margin:0 0 0.1em;'):wikitext(shield) return tostring(container) end end function p.shields(frame) local args = getArgs(frame) return p._shields(args); end function p._names(args) local name = name(args) return name end function p.names(frame) local args = getArgs(frame) return p._names(args); end return p cva712o4kfhvhcsuqnpft32oyoi0u9k Módulo:Road data/parser 828 25943 116655 2025-07-03T14:32:42Z Aristorkle 14080 copied from enwiki 116655 Scribunto text/plain local p = {} -- Package to be exported -- Change to "" upon deployment. local moduleSuffix = "" local parserHooksModuleName = "Module:Road data/parser/hooks" .. moduleSuffix -- Local library aliases local format = string.format local gsub = mw.ustring.gsub local upper = mw.ustring.upper --- -- Substitution pattern based on passed arguments -- Syntax: [param|value|match|mismatch] -- where -- param is the parameter name to be tested -- value is the value to test against argument; if empty, the argument is -- tested for existence -- match is the string to be substituted if the argument matches value -- mismatch is the string to be substituted if the argument does not match -- the value -- These arguments may not contain "[", "|", or "]". local prepattern = "%[(%w+)%|([^%[|%]]*)%|([^%[|%]]*)%|([^%[|%]]*)%]" --- -- Parameter substitution pattern -- Syntax: %param% -- where param is the name of the parameter whose value is to be substituted -- in place of %param%. local pattern = "%%(%w+)%%" --- -- Perform substitutions. -- @param #string formatStr The string the be substituted -- @param #table args The arguments passed to this module local function subst(formatStr, args) --- -- Perform a substitution based on passed argument. -- @param #string param The parameter name to be tested -- @param #string value The value to test against argument; if empty, -- the argument is tested for existence -- @param #string ifmatch The resulting string if the argument matches -- `value` -- @param #string ifmismatch The resulting string if the argument does not -- match `value` -- @return #string either `ifmatch` or `ifmismatch`, based on the test local function testArgs(param, value, ifmatch, ifmismatch) local arg = args[param] or '' if value ~= '' then return arg == value and ifmatch or ifmismatch else return arg ~= '' and ifmatch or ifmismatch end end -- argument-test substitutions local preprocessed = gsub(formatStr, prepattern, testArgs) -- parameter substitutions return (gsub(preprocessed, pattern, args)) -- gsub returns number of matches as second value. -- The enclosing parens discards it. end --- -- Determine whether a given title exists on Wikipedia. -- @param #string name The title, e.g., article name and file name, -- without namespace prefix -- @param #string key The name of the entry being translated. -- @return #boolean `true` if the title exists, false otherwise local function titleExists(name, key) if name == '' then return false end local namespaceModule = mw.loadData('Module:Road data/parser/namespace') -- Retrieve the namespace for `key`. local namespace = namespaceModule[key] or 0 local title = mw.title.new(name, namespace); return title.exists end --- -- Determine whether titles exist on Wikipedia. -- @param value A string or a table containing strings of titles to be checked -- against -- @param #string key The name of the entry being translated. -- @return #boolean `true` if all titles exist, false otherwise local function ifexists(value, key) local valueType = type(value) if valueType == "table" then -- If `value` is a table, recursively check the existence -- for each element within the table. for _,entry in pairs(value) do if not ifexists(entry, key) then return false end end return true end -- Otherwise, `value` is a string, so check the existence for that string. return titleExists(value, key) end --- -- Perform a translation on a given entry. -- @param entry An entry to be translated; may be any non-function type. -- A table may be a parser hook specification, a switch table, or an -- ordinary value table. Translations are applied recursively. -- @param #table args The arguments passed to this module -- @param #string key The name of the entry being translated. -- @return The translated entry local function translate(entry, args, key) if type(entry) == "string" then return subst(entry, args) -- Substitute arguments as necessary. elseif type(entry) ~= "table" then return entry elseif entry.hook then -- This entry is a parser hook. -- Requires: Parser hook must have hook field. local hook = entry.hook local parserHooksModule = require(parserHooksModuleName) local hookFunction = parserHooksModule[hook] or error("Hook '" .. hook .. "' does not exist", 0) return translate(hookFunction(entry, args), args, key) elseif entry.arg or entry.undefined or entry.default then -- This entry is a switch table. -- Requires: Switch table must have -- arg, undefined, or default fields -- but not hook field. local arg = args[entry.arg or "route"] if entry[arg] then return translate(entry[arg], args, key) end if arg == nil and entry.undefined ~= nil then -- result for unspecified argument return translate(entry.undefined, args, key) end -- default result for mismatch local defaultValue = translate(entry.default, args, key) if defaultValue and entry.ifexists and not args.ignoreifexists then -- Check existence. if ifexists(defaultValue, key) then return defaultValue end -- Failed existence check results in fallback value (default to nil). return entry.otherwise and translate(entry.otherwise, args, key) or nil else return defaultValue end else -- This entry is a value table. -- Process each table element. local result = {} for key,elem in pairs(entry) do result[key] = translate(elem, args, key) end return result end end --- -- Retrieve an entry from a data module based on a given type and key. -- @param #string module The name of the data module to be fetched -- @param type The key for the type table within the loaded table -- @param key The key for the entry within the type table -- @return fetchedTable[type][key] if specified, where `fetchedTable` is the -- table fetched from `module`, nil otherwise local function getTypeData(module, type, key) -- Attempt to fetch the given data module. local success, moduleData = pcall(mw.loadData, module) if not success then return false, moduleData end -- Module could not be loaded -- The type table defaults to empty-key table if undefined. local typeTable = moduleData[type] or moduleData[''] -- Fallback table is the empty-key table, with the empty table as default. local defaultTable = moduleData[''] or {} if typeTable then local alias = typeTable.alias if alias and alias.module and alias.type then -- The type table is an alias table. -- Recursively fetch the aliased type data. local aliasedModule = "Module:Road data/strings/" .. alias.module local aliasedType = alias.type return getTypeData(aliasedModule, aliasedType, key) end return true, typeTable[key] or defaultTable[key] or nil else return true, nil end end --- -- Determine the module name for the lookup by country and state. -- @param #table args The arguments passed to this module -- @return #string The module name to be fetched local function getModuleName(args) -- countries with submodules for states or provinces local stateCountries = {USA = true, CAN = true} local state = upper(args.state or args.province or '') local country if args.country then country = upper(args.country) else -- Recover the country from the given state or province. local countryModule = mw.loadData("Module:Road data/countrymask") country = countryModule[state] or 'UNK' end if stateCountries[country] and state ~= '' then -- Submodule within the country exists. return format("Module:Road data/strings/%s/%s", country, state) end return format("Module:Road data/strings/%s", country) end --- -- Fetch the entry from the appropriate module, and return that entry -- substituted with appropriate values. -- @param #table args The arguments to be used for lookup and substitutions -- @param #string key The key for the entry within the type table -- @param #string type (optional) The key for the type table within the fetched -- module; defaults to args.type -- @param #string moduleName (optional) The name of the module to be fetched; -- defaults to the module determined by country and state -- @return The substituted entry function p.parser(args, key, type, moduleName) -- Determine module name, if not given. local dataModuleName = moduleName or getModuleName(args) -- Fetch the entry from the module. local success, formatStr = getTypeData(dataModuleName, type or args.type, key) if not success then return false, formatStr end -- Translate the entry. return translate(formatStr, args, key) end return p 4scjtctik1t23vka0c548dndeobrns4 Módulo:Road data/countrymask 828 25944 116656 2025-07-03T14:34:18Z Aristorkle 14080 copied from enwiki 116656 Scribunto text/plain local p = {AL = "USA", AK = "USA", AZ = "USA", AR = "USA", CA = "USA", CO = "USA", -- United States CT = "USA", DE = "USA", FL = "USA", GA = "USA", HI = "USA", ID = "USA", IL = "USA", IN = "USA", IA = "USA", KS = "USA", KY = "USA", LA = "USA", ME = "USA", MD = "USA", MA = "USA", MI = "USA", MN = "USA", MS = "USA", MO = "USA", MT = "USA", NE = "USA", NV = "USA", NH = "USA", NJ = "USA", NM = "USA", NY = "USA", NC = "USA", ND = "USA", OH = "USA", OK = "USA", OR = "USA", PA = "USA", RI = "USA", SC = "USA", SD = "USA", TN = "USA", TX = "USA", UT = "USA", VA = "USA", VT = "USA", WA = "USA", WV = "USA", WI = "USA", WY = "USA", DC = "USA", AS = "USA", GU = "USA", MP = "USA", PR = "USA", UM = "USA", VI = "USA", AB = "CAN", BC = "CAN", MB = "CAN", NB = "CAN", NL = "CAN", NS = "CAN", -- Canada NT = "CAN", NU = "CAN", ON = "CAN", PE = "CAN", QC = "CAN", SK = "CAN", YT = "CAN", AH = "CHN", BJ = "CHN", CQ = "CHN", FJ = "CHN", GD = "CHN", GS = "CHN", -- China GX = "CHN", GZ = "CHN", HA = "CHN", HB = "CHN", HE = "CHN", HK = "CHN", HL = "CHN", JL = "CHN", JS = "CHN", JX = "CHN", LN = "CHN", MC = "CHN", NX = "CHN", QH = "CHN", SH = "CHN", SN = "CHN", SX = "CHN", TJ = "CHN", TW = "CHN", XJ = "CHN", XZ = "CHN", YN = "CHN", ZJ = "CHN", AICHI = "JPN", AKITA = "JPN", AOMORI = "JPN", CHIBA = "JPN", EHIME = "JPN", -- Japan FUKUI = "JPN", FUKUOKA = "JPN", FUKUSHIMA = "JPN", GIFU = "JPN", GUNMA = "JPN", HIROSHIMA = "JPN", HOKKAIDO = "JPN", HYOGO = "JPN", IBARAKI = "JPN", ISHIKAWA = "JPN", IWATE = "JPN", KAGAWA = "JPN", KAGOSHIMA = "JPN", KANAGAWA = "JPN", KOCHI = "JPN", KUMAMOTO = "JPN", KYOTO = "JPN", MIE = "JPN", MIYAGI = "JPN", MIYAZAKI = "JPN", NAGANO = "JPN", NAGASAKI = "JPN", NARA = "JPN", NIIGATA = "JPN", OITA = "JPN", OKAYAMA = "JPN", OKINAWA = "JPN", OSAKA = "JPN", SAGA = "JPN", SAITAMA = "JPN", SHIGA = "JPN", SHIMANE = "JPN", SHIZUOKA = "JPN", TOCHIGI = "JPN", TOKUSHIMA = "JPN", TOKYO = "JPN", TOTTORI = "JPN", TOYAMA = "JPN", WAKAYAMA = "JPN", YAMAGATA = "JPN", YAMAGUCHI = "JPN", YAMANASHI = "JPN", AGU = "MEX", BCN = "MEX", BCS = "MEX", CAM = "MEX", CHP = "MEX", -- Mexico CHH = "MEX", COA = "MEX", COL = "MEX", DIF = "MEX", DUR = "MEX", GUA = "MEX", GRO = "MEX", HID = "MEX", JAL = "MEX", MEX = "MEX", MIC = "MEX", MOR = "MEX", NAY = "MEX", NLE = "MEX", OAX = "MEX", PUE = "MEX", QUE = "MEX", ROO = "MEX", SLP = "MEX", SIN = "MEX", SON = "MEX", TAB = "MEX", TAM = "MEX", TLA = "MEX", VER = "MEX", YUC = "MEX", ZAC = "MEX", ACT = "AUS", NSW = "AUS", QLD = "AUS", SA = "AUS", TAS = "AUS", VIC = "AUS" -- Australia } return p 8iv05j9zzp40bbby4dtwxoj9mw7gna4 Módulo:Infobox road 828 25945 116657 2025-07-03T14:36:57Z Aristorkle 14080 copied from enwiki 116657 Scribunto text/plain local p = {} local getArgs = require('Module:Arguments').getArgs local util = require("Module:Road data/util") local yesno = require('Module:Yesno') local langModule = require('Module:Lang') local routeModule = require("Module:Infobox road/route") local parserModule = require("Module:Road data/parser") local parser = parserModule.parser local format = mw.ustring.format local frame = mw.getCurrentFrame() local function country(args) local state = args.state or args.province local country local countryModule = mw.loadData("Module:Road data/countrymask") local country = args.country or countryModule[state] return country end -- HEADER COLORS function p.headerStyle(frame) local args = getArgs(frame) local header if args.header_type == nil then header = args.header_type else header = string.lower(args.header_type) end local deleted = args.decommissioned or args.deleted or header == "former" local uc = header == "under construction" or header == "const" or header == "uc" local minor = header == "minor" local hist = header == "hist" or header == "historic" or header == "historical" or header == "scenic" local color = parser(args, 'color') or args['header_color'] local freeway = header == "freeway" if freeway then return "header-MUTCDblue" elseif uc then return "header-uc" elseif minor then return "header-minor" elseif deleted and header == 'hist' or deleted and color == 'hist' then return "header-deleted-hist" elseif deleted then return "header-deleted" elseif hist then return "header-hist" elseif color then return "header-" .. color elseif args.state or args.province or args.country then local country = country(args) return "header-" .. country or "header-default" else return "header-default" end end -- SECOND IMAGE local function photo(args) local country = country(args) local photo = args.photo or args.image local width = args.photo_wide or args.image_width or "290px" local alt = args.photo_alt or args.image_alt or photo if photo == nil then return nil elseif country == "USA" then return nil else return string.format('[[File:%s|%s|alt=%s]]', photo, width, alt) end end function p.photo(frame) local args = getArgs(frame) return photo(args) end -- TRANSLATION local function translate(args, lang) local lang = parser(args, 'lang') or args.lang or 'none' local translation = args.translation or parser(args, 'translation') or '' if country(args) == "PAK" and translation ~= '' then local route = args.route if route ~= nil then local arabicModule = require( "Module:Convert to eastern arabic numerals" ) local arabic = arabicModule._convert({route}) local translated = string.gsub( translation, route, arabic) return frame:expandTemplate{title = 'Nastaliq', args = {translated}} else return frame:expandTemplate{title = 'Nastaliq', args = {translation}} end elseif translation ~= '' and lang == 'none' then return translation elseif country(args) == "CHN" and args.type == "Expwy" then local trans = require( "Module:Road data/masks/CHN/Expwy translations" ) local route = args.route return langModule._lang({lang, trans[route]}) elseif country(args) == "HUN" then local nominal = require( "Module:Road data/masks/HUN" ) local routeNum local leading if string.len(args.route) > 2 then routeNum = string.match(args.route, "%d%d$", 0) leading = string.match(args.route, "(%d*)%d%d$", 0) else routeNum = args.route leading = '' end if args.type == "M" then return langModule._lang({"hu", "M" .. leading .. nominal[routeNum] .. " autópálya"}) elseif args.type == "Mb" then return langModule._lang({"hu", "M" .. leading .. nominal[routeNum] .. " autóút"}) elseif args.type == "MR" then return langModule._lang({"hu", leading .. nominal[routeNum] .. " főút"}) elseif args.type == "Mb" then return langModule._lang({"hu", leading .. nominal[routeNum] .. " közút"}) end elseif lang == "ar" and translation ~= '' then local route = args.route local arabicModule = require( "Module:Convert to eastern arabic numerals" ) local arabic = arabicModule._convert({route}) local translated = string.gsub( translation, route, arabic) return langModule._lang({lang, translated}) elseif translation ~= '' and lang ~= 'none' then return langModule._lang({lang, translation}) else return nil end end function p.translate(frame) local pframe = frame:getParent() local config = frame.args -- the arguments passed BY the template, in the wikitext of the template itself local args = pframe.args -- the arguments passed TO the template, in the wikitext that transcludes the template local lang = config.lang return translate(args, lang) end -- MAINTAINED BY local function maint(args) local maint = args.maint or parser(args, 'maint') or '' if maint == "none" or maint == '' then return nil else return "Maintained by " .. maint end end function p.maint(frame) local args = getArgs(frame) return maint(args) end -- DEFINED BY LAW local function law(args) local law = parser(args, 'law') or '' if args.section == '' then return nil else return "Defined by " .. law end end function p.law(frame) local args = getArgs(frame) return law(args) end -- EXISTED function p._existed(args) local formed = args.established or args.formed or '' local deleted = args.decommissioned or args.deleted or '' if formed == '' then return nil elseif deleted == '' then return formed .. "–present" else return formed .. "–" .. deleted end end function p.existed(frame) local args = getArgs(frame) return p._existed(args) end -- TIME PERIOD local function period(args) local infobox_args = {} infobox_args['bodystyle'] = 'display:inline-table;' infobox_args['child'] = 'yes' infobox_args['decat'] = 'yes' infobox_args['label1'] = "Time period" infobox_args['data1'] = args.time_period if args.time_period then infobox_args['label2'] = "Cultural significance" infobox_args['data2'] = args.significance infobox_args['label3'] = "Known for" infobox_args['data3'] = args.known_for infobox_args['label4'] = "Related routes" infobox_args['data4'] = args.related else infobox_args['label3'] = "Known for" infobox_args['data3'] = args.known_for end return frame:expandTemplate ({title='Infobox', args = infobox_args}) end local function period_params(args) if args.time_period or args.known_for then return true else return false end end function p.period(frame) local args = getArgs(frame) if period_params(args) == false then return nil else return period(args) end end -- ALLOCATION local function allocation(args) local country = country(args) if country == "AUS" then return "[[Route number#Australia|Allocation]]" else return "Component<br>highways" end end function p.allocation(frame) local args = getArgs(frame) return allocation(args) end -- SPUR OF local function spurOf(args) local state = args.state or args.province local country = args.country local county = args.county local parentType = args.spur_type local parentRoute = args.spur_of local aux = parser(args, 'aux') or "Auxiliary route" or nil local jct = frame:expandTemplate{ title = 'jct', args = { state = state, country = country, county1 = county, parentType, parentRoute, noshield1 = "yes" } } if not parentType and not parentRoute then return nil elseif type(aux) == "table" then return "Auxiliary route of " .. jct else return tostring(aux) .. " of " .. jct end end function p.spurOf(frame) local args = getArgs(frame) return spurOf(args) end -- PART OF local function partOf(args) if args["e-road"] or args.ahn or args.tahn or args.mrn then local infobox_args = {} infobox_args['bodystyle'] = 'display:inline-table;' infobox_args['child'] = 'yes' infobox_args['decat'] = 'yes' if args["e-road"] then local eshield = args["e-road-shield"] or '' infobox_args['data1'] = eshield .. " Part of " .. args["e-road"] end if args.ahn then local ashield = args["ahn-shield"] or '' infobox_args['data2'] = ashield .. " Part of " .. args.ahn end if args.tahn then local tshield = args["tahn-shield"] or '' infobox_args['data3'] = tshield .. " Part of " .. args.tahn end if args.mrn then local mshield = args["mrn-shield"] or '' infobox_args['data4'] = mshield .. " Part of " .. args.mrn end return frame:expandTemplate ({title='Infobox', args = infobox_args}) else return nil end end function p.partOf(frame) local args = getArgs(frame) return partOf(args) end --BROWSE LINKS local function browse(args) if args.nobrowse then return nil end local previousRoute = args.previous_route local nextRoute = args.next_route if previousRoute or nextRoute then local boxModule = require "Module:Road data/browse" local primary = boxModule._browse(args) local tblModule = require "Module:Road data/browsetable" return tblModule._browsetable(primary) end end function p.browse(frame) local args = getArgs(frame) return browse(args) end local function extended(args) local extended = args.browse if args.nobrowse or extended == nil then return nil else local tblModule = require "Module:Road data/browsetable" -- Negative margin to counteract infobox border-spacing return tblModule._browsetable(extended, 'margin-top:-3px') end end function p.extended(frame) local args = getArgs(frame) return extended(args) end -- HIGHWAY SYSTEM LINKS local function system(args) if args.system1 then local infobox_args = { ['child'] = "yes", ['decat'] = "yes", ['bodystyle'] = "border-collapse:collapse;" } local i = 1 while (1) do local systemClassn = "class" .. i local systemDatan = "data" .. i local systemArgn = args['system' .. i] infobox_args[systemClassn] = "hlist" infobox_args[systemDatan] = systemArgn if i == 10 then break else i = i + 1 end end return frame:expandTemplate ({title='Infobox', args = infobox_args}) end end function p.system(frame) local args = getArgs(frame) return system(args) end -- ROUTE INFORMATION HEADER local function info(args) local maint = maint(args) local law = law(args) local period = period_params(args) local existed = args.established or args.formed or nil local spur = args.spur_type or args.spur_of or nil local part = partOf(args) if period == true or spur ~= nil or part ~= nil or existed ~= nil or maint ~= nil or args.section or args.length_mi or args.length_km or args.allocation or args.history or args.restrictions or args.tourist or args.status or args.margary then return "Route information" else return nil end end function p.info(frame) local args = getArgs(frame) return info(args) end -- HIGHWAY SYSTEM HEADER local function highwaySystem(args) if args.nobrowse then return nil end local country = country(args) or args.countries if country == nil then return nil elseif country == "GBR" or country == "ENG" or country == "NIR" or country == "SCT" or country == "WLS" or country == "GGY" or country == "IMN" or country == "JEY" or country == "AIA" or country == "BMU" or country == "IOT" or country == "VGB" or country == "CYM" or country == "FLK" or country == "GIB" or country == "MSR" or country == "PCN" or country == "SHN" or country == "SGS" or country == "TCA" then return "Road network" else return "Highway system" end end function p.highwaySystem(frame) local args = getArgs(frame) return highwaySystem(args) end return p qctvnh8s1hy7kw9a0ufnt7bokwmhryq Módulo:Infobox road/doc 828 25946 116658 2025-07-03T14:38:34Z Aristorkle 14080 copied from enwiki 116658 wikitext text/x-wiki <!-- Add categories where indicated at the bottom of this page and interwikis at Wikidata --> {{Lua|Module:Road data/countrymask|Module:Road data/browse|Module:Road data/browsetable|Module:Infobox road/route|Module:Road data/parser|Module:Road data/util|Module:Road data/masks/HUN|Module:Road data/masks/CHN/Expwy translations|Module:Convert to eastern arabic numerals|Module:Lang|Module:Yesno|Module:Arguments|noprotcat=yes}} This module implements {{tl|infobox road}}. Please see the template documentation for further explanation. <includeonly>{{Sandbox other|| <!-- Categories below this line; interwikis at Wikidata --> }}</includeonly><noinclude> [[Category:Module documentation pages]] </noinclude> tvdsep1lkx27lxrkec8zo2wtjx0sui9 Plantilla:Infobox road 10 25947 116659 2025-07-03T14:39:10Z Aristorkle 14080 copied from enwiki 116659 wikitext text/x-wiki {{Infobox |templatestyles =Infobox road/styles.css |headerclass={{#invoke:Infobox road|headerStyle}} |belowstyle=line-height:150% <!-- ROUTE MARKER AND ROUTE NAME --> |above={{#switch:{{Infobox road/meta/mask/country|{{{state|}}}{{{province|}}}|{{{country|}}}}} |USA|CAN={{#invoke:Infobox road/route|routeInfo}} |#default={{#ifeq:{{{country|}}}|AUS |{{#if:{{{name|}}}|{{{name}}}|{{#ifeq:{{Infobox road/name/AUS|state={{{state|¬}}}|type={{{type|}}}|route={{{route}}}}}|none||{{Infobox road/name/AUS|state={{{state|¬}}}|type={{{type|}}}|route={{{route}}}}}|}}}}{{#if:{{{alternate_name|}}}|<br /><div style="font-weight:normal;display:inline;">{{{alternate_name|}}}</div>}} {{#if:{{{marker_image|}}}|{{#ifeq:{{{marker_image|}}}|none||<div style="margin:6px 0 2px 0">{{{marker_image}}}</div>}}|{{#if:{{{state|{{{province|{{{country|}}}}}}}}}|{{#ifeq:{{Infobox road/shieldmain/{{Infobox road/meta/mask/country|{{{state|}}}{{{province|}}}|{{{country|}}}}}|province={{{province|¬}}}|state={{{state|¬}}}|type={{{type|}}}|county={{{county|}}}|route={{{route|}}}|subtype={{Infobox road/meta/mask/subtype1|{{{subtype|}}}}}}}|none||<div style="margin:6px 0 2px 0">{{Infobox road/shieldmain/{{Infobox road/meta/mask/country|{{{state|}}}{{{province|}}}|{{{country|}}}}}|province={{{province|¬}}}|state={{{state|¬}}}|type={{{type|}}}|county={{{county|}}}|route={{{route|}}}|subtype={{Infobox road/meta/mask/subtype1|{{{subtype|}}}}}}}</div>}}}}}} |{{#if:{{{marker_image|}}}|{{#ifeq:{{{marker_image|}}}|none||<div style="margin:0 0 4px 0">{{{marker_image}}}</div>}}|{{#if:{{{state|{{{province|{{{country|}}}}}}}}}|{{#ifeq:{{Infobox road/shieldmain/{{Infobox road/meta/mask/country|{{{state|}}}{{{province|}}}|{{{country|}}}}}|province={{{province|¬}}}|state={{{state|¬}}}|type={{{type|}}}|county={{{county|}}}|route={{{route|}}}|subtype={{Infobox road/meta/mask/subtype1|{{{subtype|}}}}}}}|none||<div style="margin:0 0 4px 0">{{Infobox road/shieldmain/{{Infobox road/meta/mask/country|{{{state|}}}{{{province|}}}|{{{country|}}}}}|province={{{province|¬}}}|state={{{state|¬}}}|type={{{type|}}}|county={{{county|}}}|route={{{route|}}}|subtype={{Infobox road/meta/mask/subtype1|{{{subtype|}}}}}}}</div>}}}}}} {{#if:{{{name|}}}|{{{name}}}|{{#if:{{{state|{{{province|{{{country|}}}}}}}}}|{{#ifeq:{{Infobox road/name/{{Infobox road/meta/mask/country|{{{state|}}}{{{province|}}}|{{{country|}}}}}|province={{{province|¬}}}|state={{{state|¬}}}|type={{{type|}}}|subtype={{Infobox road/meta/mask/subtype1|{{{subtype|}}}}}|route={{{route}}}|county={{{county|}}}}}|none||{{Infobox road/name/{{Infobox road/meta/mask/country|{{{state|}}}{{{province|}}}|{{{country|}}}}}|province={{{province|¬}}}|state={{{state|¬}}}|type={{{type|}}}|subtype={{Infobox road/meta/mask/subtype1|{{{subtype|}}}}}|route={{{route}}}|county={{{county|}}}}}|}}}}}}}} }} |subheaderstyle1 = font-size: 125%; |subheader={{#invoke:Infobox road|translate}} |subheader2={{#ifeq:{{{country|}}}|AUS||{{{alternate_name|}}}}} <!-- MAP --> |image={{#invoke:Infobox road/map|map}} |caption={{{map_notes|}}} |image2={{#invoke:Infobox road|photo}} |caption2={{{photo_notes|}}}{{{image_notes|}}} <!-- ROUTE INFORMATION --> |header1= {{#invoke:Infobox road|info}} |data2 = {{#if:{{{spur_of|}}}|{{Infobox road/meta/spur of|1={{{type|}}}|2={{{subtype|}}}|spur_type={{{spur_type|}}}|spur_route={{{spur_of|}}}|country={{{country|}}}|province={{{province|}}}|state={{{state|}}}|county={{{county|}}}}}|}} |data3 = {{#invoke:Infobox road|partOf}} |data4 = <!-- {{#invoke:Infobox road|law}} --> |data5 = {{#invoke:Infobox road|maint}} |data6 = {{#if:{{{time_period|}}}|{{#if:{{{established_by|}}}|Established by {{{established_by}}}|}}|}} |label7 = Length |data7 = {{#invoke:Infobox road/length|length}} |class8 = plainlist |label8= Status |data8= {{{status|}}} |class9= plainlist |label9= Existed |data9= {{#invoke:Infobox road|existed}} |class11 = plainlist |label11= History |data11= {{{history|}}} |data12 = {{#invoke:Infobox road|period}} |class16 = plainlist |label16 = {{#invoke:Infobox road|allocation}} |data16 = {{{allocation|}}} |class17 = plainlist |label17 = Tourist<br>routes |data17 = {{{tourist|}}} |class18 = plainlist |label18 = {{abbr|NHS|National Highway System}} |data18 = {{#ifeq:{{Infobox road/meta/mask/country|{{{state|}}}{{{province|}}}|{{{country|}}}}}|USA|{{#switch:{{{type|}}} |I = Entire route |#default = {{{nhs|}}} }}}} |class19 = plainlist |label19 = Restrictions |data19 = {{{restrictions|}}} |label20 = [[Margary numbers|Margary number]] |data20 = {{{margary|}}} <!-- MAJOR JUNCTIONS (FOR MOST ROUTES) --> |header30= {{#invoke:Infobox road/sections|main}} <!-- MAJOR JUNCTIONS (IF DIVIDED IN UP TO 25 SECTIONS) --> |header31= {{#invoke:Infobox road/sections|section}} <!-- LOCATION INFORMATION (SOME PARAMETERS ARE DISABLED FOR CERTAIN COUNTRIES) --> |header35={{#invoke:Infobox road/locations|location}} <!-- HIGHWAY SYSTEM --> |header50= {{#invoke:Infobox road|highwaySystem}} <!-- LINKS AND BROWSE SECTION --> |class52 = hlist |data52 = {{#if:{{{system|}}}|{{{system}}}|{{#invoke:Infobox road/browselinks|browselinks}}}} |rowstyle54 = display: none |header54 = {{#invoke:Infobox road|system}} |data56 = {{#invoke:Infobox road|browse}} |data58 = {{#invoke:Infobox road|extended}} <!-- HISTORICAL DESIGNATION, NRHP, EMBEDDED INFOBOXES --> |data60={{{nrhp|{{{embedded|}}}}}} |subbox={{yesno|{{{child|}}}}} }}<!-- // ERROR TRACKING CATEGORIES // -->{{#if:{{{country|}}}{{{state|}}}{{{province|}}}|{{#if:{{{type|}}}|{{#if:{{{route|}}}|{{#if:{{{translation|}}}{{{name|}}}|{{main other|[[Category:Infobox road temporary tracking category 1|{{#if:{{{name|}}}|†|{{#if:{{{translation|}}}|@}}}} {{Infobox road/meta/mask/country|{{{state|}}}{{{province|}}}|{{{country|}}}}} {{PAGENAME}}]]}}}}|}}}}}}<!-- -->{{main other|{{#if:{{{subtype|}}}|[[Category:Infobox road temporary tracking category 2|Ω {{Infobox road/meta/mask/country|{{{state|}}}{{{province|}}}|{{{country|}}}}} {{PAGENAME}}]]|}}}}<!-- -->{{#invoke:Infobox road/errors|errors}}<!-- -->{{#if:{{{header_type|}}}|{{#switch:{{lc:{{{header_type}}}}} |under construction|const|uc={{main other|[[Category:Infobox road temporary tracking category 1|ƒ {{Infobox road/meta/mask/country|{{{state|}}}{{{province|}}}|{{{country|}}}}} {{PAGENAME}}]]}} |scenic|historic|historical|hist={{main other|[[Category:Infobox road temporary tracking category 1|¶ {{Infobox road/meta/mask/country|{{{state|}}}{{{province|}}}|{{{country|}}}}} {{PAGENAME}}]]}} |decommissioned|former={{main other|[[Category:Infobox road temporary tracking category 1|∆ {{Infobox road/meta/mask/country|{{{state|}}}{{{province|}}}|{{{country|}}}}} {{PAGENAME}}]]}} |minor= |#default={{main other|[[Category:Infobox road temporary tracking category 1|£ {{Infobox road/meta/mask/country|{{{state|}}}{{{province|}}}|{{{country|}}}}} {{PAGENAME}}]]}}}}}}<!-- -->{{#if:{{{country|}}}{{{state|}}}{{{province|}}}|{{#if:{{{type|}}}|{{#if:{{{marker_image|}}}| {{main other|[[Category:Infobox road temporary tracking category 1|{{#ifeq:{{{marker_image}}}|none|&|$}} {{Infobox road/meta/mask/country|{{{state|}}}{{{province|}}}|{{{country|}}}}} {{PAGENAME}}]]}}}}}}}}<!-- -->{{#if:{{{map_custom|}}}||{{#ifeq:{{#property:P15}}||{{main other|[[Category:Infobox road maps tracking category]]}}|}}}}<!-- -->{{#if:{{{map_custom|}}}||{{#ifeq:{{{map|}}}|{{#property:P15}}||{{main other|[[Category:Infobox road maps for Wikidata migration]]}}|}}}}<!-- -->{{main other|{{#ifeq:{{#property:P17}}||[[Category:Infobox road articles without Wikidata country]]}}<!-- -->{{#ifeq:{{#property:P31}}||{{main other|[[Category:Infobox road articles without Wikidata instance of]]}}}}}}<!-- -->{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox road with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox road]] with unknown parameter "_VALUE_"|ignoreblank=y| above | ahn-shield | ahn | allocation | alternate_name | areas | beltway_city | bodystyle | borough | boroughs | browse_route | browse | cantons | child | cities | communes | community | communities | counties | countries | county | country | decommissioned | deleted | departments | destinations | direction_a | direction_a1 | direction_a2 | direction_a3 | direction_a4 | direction_a5 | direction_a6 | direction_a7 | direction_a8 | direction_a9 | direction_a10 | direction_b | direction_b1 | direction_b2 | direction_b3 | direction_b4 | direction_b5 | direction_b6 | direction_b7 | direction_b8 | direction_b9 | direction_b10 | districts | divisions | e-road | e-road-shield | embedded | end_a | end_a1 | end_a2 | end_a3 | end_a4 | end_a5 | end_a6 | end_a7 | end_a8 | end_a9 | end_a10 | end_b | end_b1 | end_b2 | end_b3 | end_b4 | end_b5 | end_b6 | end_b7 | end_b8 | end_b9 | end_b10 | established | established_by | federal_cities | formed | governorates | header_color | header_type | history | image | image_alt | image_notes | image_width | indep_city | indep_cities | island | junction | junctions | junction1 | junction2 | junction3 | junction4 | junction5 | junction6 | junction7 | junction8 | junction9 | junction10 | known_for | krais | label1 | label2 | label3 | label4 | label5 | labelstyle | lang | length_km | length_km1 | length_km2 | length_km3 | length_km4 | length_km5 | length_km6 | length_km7 | length_km8 | length_km9 | length_km10 | length_mi | length_mi1 | length_mi2 | length_mi3 | length_mi4 | length_mi5 | length_mi6 | length_mi7 | length_mi8 | length_mi9 | length_mi10 | length_nmi | length_notes | length_notes1 | length_notes2 | length_notes3 | length_notes4 | length_notes5 | length_notes6 | length_notes7 | length_notes8 | length_notes9 | length_notes10 | length_ref | length_ref1 | length_ref2 | length_ref3 | length_ref4| length_ref5 | length_ref6 | length_ref7 | length_ref8 | length_ref9 | length_ref10 | length_round | lga | location | location1 | location2 | location3 | location4 | location5 | locations | loop | maint | map | mapframe | mapframe-id | mapframe-geomask | mapframe-zoom | mapframe-width | mapframe-height | mapframe-marker | mapframe-marker-color | mapframe-marker-colour | mapframe-lat | mapframe-latitude | mapframe-long | mapframe-longitude | mapframe-raw | map_alt | map_custom | map_notes | margary | marker_image | mrn | mrn-shield | municipalities | municipality | name | next_dab | next_route | next_type | nhs | nobrowse | nrhp | oblasts | okrugs | orbital | parish | parishes | photo | photo_alt | photo_notes | photo_width | prefectures | previous_dab | previous_route | previous_type | province | provinces | regions | republics | related | restrictions | ring_road | route | rural_municipalities | section | section0 | section1 | section2 | section3 | section4 | section5 | section6 | section6 | section7 | section8 | section9 | section10 | sheadings | significance | spur_of | spur_type | state | states | state2 | status | subcounties | subprefectures | subregions | subsection | system | system1 | system2 | system3| system4 | system5 | system6 | system7 | system8 | system9 | system10 | tahn | tahn-shield | terminus_a | terminus_a1 | terminus_a2 | terminus_a3 | terminus_a4 | terminus_a5 | terminus_a6 | terminus_a7 | terminus_a8 | terminus_a9 | terminus_a10 | terminus_b | terminus_b1 | terminus_b2 | terminus_b3 | terminus_b4 | terminus_b5 | terminus_b6 | terminus_b7 | terminus_b8 | terminus_b9 | terminus_b10 | territories | time_period | tloop | tourist | towns | translation | type | villages | categories | nocat | demo }}<!-- --><includeonly>{{main other|[[Category:Infobox road instances {{Infobox road/meta/mask/category|1={{{country|}}}|2={{{state|}}}|3={{{province|}}}}}]]}}<!-- --></includeonly><noinclude> {{Documentation}} </noinclude> 94wp2s6col88l0e2cv16pwgygspndh3 116660 116659 2025-07-03T14:40:06Z Aristorkle 14080 changed redirect 116660 wikitext text/x-wiki #REDIRECT [[Template:Infobox calsada]] 6bynqm8yzzzltvgm2iu1acbon5maws2 Módulo:Road data/browse 828 25948 116661 2025-07-03T14:41:15Z Aristorkle 14080 copied from enwiki 116661 Scribunto text/plain local p = {} local format = mw.ustring.format local roadDataModule = require("Module:Road data") local function routeText(route) local shieldText = roadDataModule.shield(route, nil, nil, nil, true) local linkText = roadDataModule.link(route) local result = mw.html.create("span"):css({display = "inline-block"}) result:wikitext(shieldText .. ' ' .. linkText) return tostring(result) end local function previousRoute(route) local cell = mw.html.create('td'):css({ ["text-align"] = "left" }) if not route.type or route.type == '' then cell:wikitext("&nbsp;") else cell:wikitext("← " .. routeText(route)) end return cell end local function nextRoute(route) local cell = mw.html.create('td'):css({ direction = "rtl", ["text-align"] = "right" }) if not route.type or route.type == '' then cell:wikitext("&nbsp;") else cell:wikitext("→ " .. routeText(route)) end return cell end function p._browse(route) local country = route.country local state = route.state or route.province local county = route.county local previousData = { country = country, state = state, county = county, type = route.previous_type, route = route.previous_route, dab = route.previous_dab } local nextData = { country = country, state = state, county = county, type = route.next_type, route = route.next_route, dab = route.next_dab } local previousRoute = previousRoute(previousData) local nextRoute = nextRoute(nextData) if previousData.typeerror or nextData.typeerror then route.typeerror = true end local centerRoute = mw.html.create('td'):css({ ["text-align"] = "center", ["white-space"] = "nowrap", ["padding-left"] = "3px", ["padding-right"] = "3px" }) local route = route.browse_route if route then centerRoute:css("padding-left", "6px") centerRoute:css("padding-right", "6px") centerRoute:wikitext(format("'''%s'''", route)) end local browseRow = mw.html.create('tr') browseRow:node(previousRoute):node(centerRoute):node(nextRoute) return tostring(browseRow) end function p.browse(frame) -- Import module function to work with passed arguments local getArgs = require('Module:Arguments').getArgs local args = getArgs(frame) args.browse_route = args.route return p._browse(args) end return p rqrx3ect4kzc4gnjpiejo19b4igw4xe Módulo:Road data/masks/HUN 828 25949 116662 2025-07-03T14:43:03Z Aristorkle 14080 copied from enwiki 116662 Scribunto text/plain --NOMINAL SUFFIXES FOR HUNGARIAN TRANSLATION local p = { arg = 'route', ["0"] = "0-s", ["1"] = "1-es", ["2"] = "2-es", ["3"] = "3-as", ["4"] = "4-es", ["5"] = "5-ös", ["6"] = "6-os", ["7"] = "7-es", ["8"] = "8-as", ["9"] = "9-es", ["10"] = "10-es", ["11"] = "11-es", ["12"] = "12-es", ["13"] = "13-as", ["14"] = "14-es", ["15"] = "15-ös", ["16"] = "16-os", ["17"] = "17-es", ["18"] = "18-as", ["19"] = "19-es", ["20"] = "20-as", ["21"] = "21-es", ["22"] = "22-es", ["23"] = "23-as", ["24"] = "24-es", ["25"] = "25-ös", ["26"] = "26-os", ["27"] = "27-es", ["28"] = "28-as", ["29"] = "29-es", ["30"] = "30-as", ["31"] = "31-es", ["32"] = "32-es", ["33"] = "33-as", ["34"] = "34-es", ["35"] = "35-ös", ["36"] = "36-os", ["37"] = "37-es", ["38"] = "38-as", ["39"] = "39-es", ["40"] = "40-es", ["41"] = "41-es", ["42"] = "42-es", ["43"] = "43-as", ["44"] = "44-es", ["45"] = "45-ös", ["46"] = "46-os", ["47"] = "47-es", ["48"] = "48-as", ["49"] = "49-es", ["50"] = "50-es", ["51"] = "51-es", ["52"] = "52-es", ["53"] = "53-as", ["54"] = "54-es", ["55"] = "55-ös", ["56"] = "56-os", ["57"] = "57-es", ["58"] = "58-as", ["59"] = "59-es", ["60"] = "60-as", ["61"] = "61-es", ["62"] = "62-es", ["63"] = "63-as", ["64"] = "64-es", ["65"] = "65-ös", ["66"] = "66-os", ["67"] = "67-es", ["68"] = "68-as", ["69"] = "69-es", ["70"] = "70-es", ["71"] = "71-es", ["72"] = "72-es", ["73"] = "73-as", ["74"] = "74-es", ["75"] = "75-ös", ["76"] = "76-os", ["77"] = "77-es", ["78"] = "78-as", ["79"] = "79-es", ["80"] = "80-as", ["81"] = "81-es", ["82"] = "82-es", ["83"] = "83-as", ["84"] = "84-es", ["85"] = "85-ös", ["86"] = "86-os", ["87"] = "87-es", ["88"] = "88-as", ["89"] = "89-es", ["90"] = "90-es", ["91"] = "91-es", ["92"] = "92-es", ["93"] = "93-as", ["94"] = "94-es", ["95"] = "95-ös", ["96"] = "96-os", ["97"] = "97-es", ["98"] = "98-as", ["99"] = "99-es", ["00"] = "00-as", ["01"] = "01-es", ["02"] = "02-es", ["03"] = "03-as", ["04"] = "04-es", ["05"] = "05-ös", ["06"] = "06-os", ["07"] = "07-es", ["08"] = "08-as", ["09"] = "09-es" } return p kp3ubjkuz3y8y03f38754qvy5oq8gic Módulo:Road data/masks/CHN/Expwy translations 828 25950 116663 2025-07-03T14:44:46Z Aristorkle 14080 copied from enwiki 116663 Scribunto text/plain local p = { ["0401"] = "长沙绕城高速公路", ["0501"] = "临汾绕城高速公路", --wrong use ["0601"] = "西宁绕城高速公路", ["0602"] = "拉萨绕城高速公路", --canceled ["1001"] = "哈尔滨绕城高速公路", ["1101"] = "大连绕城高速公路", --canceled ["1201"] = "吉林绕城高速公路", --wrong use ["1202"] = "松原绕城高速公路", --wrong use ["1204"] = "白城绕城高速公路", --wrong use ["1501"] = "沈阳绕城高速公路", ["1502"] = "青岛绕城高速公路", --canceled ["1503"] = "上海绕城高速公路", ["1504"] = "宁波绕城高速公路", ["1505"] = "福州绕城高速公路", ["1506"] = "厦门绕城高速公路", --canceled ["1507"] = "深圳绕城高速公路", --canceled ["1508"] = "广州绕城高速公路", ["2001"] = "济南绕城高速公路", ["2002"] = "石家庄绕城高速公路", ["2003"] = "太原绕城高速公路", ["2004"] = "银川绕城高速公路", ["2201"] = "兰州绕城高速公路", ["2501"] = "长春绕城高速公路", ["2502"] = "天津绕城高速公路", ["2503"] = "南京绕城高速公路", ["2504"] = "杭州绕城高速公路", ["3001"] = "郑州绕城高速公路", ["3002"] = "西安绕城高速公路", ["3003"] = "乌鲁木齐绕城高速公路", ["4001"] = "合肥绕城高速公路", ["4201"] = "武汉绕城高速公路", ["4202"] = "成都绕城高速公路", ["4501"] = "北京绕城高速公路", ["5001"] = "重庆绕城高速公路", ["5601"] = "昆明绕城高速公路", ["5901"] = "呼和浩特绕城高速公路", ["6001"] = "南昌绕城高速公路", ["6002"] = "贵阳绕城高速公路", ["7201"] = "南宁绕城高速公路", ["9801"] = "海口绕城高速公路", --canceled ["1"] = "北京-哈尔滨高速公路", ["2"] = "北京-上海高速公路", ["3"] = "北京-台北高速公路", ["4"] = "北京-港澳高速公路", ["5"] = "北京-昆明高速公路", ["6"] = "北京-拉萨高速公路", ["7"] = "北京-乌鲁木齐高速公路", ["0111"] = "秦皇岛-滨州高速公路", ["0112"] = "长春-辽源高速公路", ["0211"] = "天津-石家庄高速公路", ["0212"] = "武清-滨海新区高速公路", ["0311"] = "济南-聊城高速公路", ["0411"] = "安阳-长治高速公路", ["0412"] = "深圳-南宁高速公路", ["0413"] = "新乐-忻州高速公路", ["0511"] = "德阳-都江堰高速公路", ["0512"] = "成都-乐山高速公路", ["0513"] = "平遥-洛阳高速公路", ["0611"] = "张掖-汶川高速公路", ["0612"] = "西宁-和田高速公路", ["0613"] = "西宁-丽江高速公路", ["0615"] = "德令哈-康定高速公路", ["0616"] = "乌拉特前旗-甘其毛都高速公路", ["0711"] = "乌鲁木齐-若羌高速公路", ["0712"] = "额济纳旗-策克高速公路", ["0121"] = "北京-秦皇岛高速公路", ["0122"] = "秦皇岛-沈阳高速公路", ["0321"] = "德州-上饶高速公路", ["0322"] = "北京-德州高速公路", ["0323"] = "济宁-合肥高速公路", ["0421"] = "许昌-广州高速公路", ["0422"] = "武汉-深圳高速公路", ["0423"] = "乐昌-广州高速公路", ["0424"] = "北京-武汉高速公路", ["0425"] = "广州-澳门高速公路", ["11"] = "鹤岗-大连高速公路", ["15"] = "沈阳-海口高速公路", ["25"] = "长春-深圳高速公路", ["35"] = "济南-广州高速公路", ["45"] = "大庆-广州高速公路", ["55"] = "二连浩特-广州高速公路", ["59"] = "呼和浩特-北海高速公路", ["65"] = "包头-茂名高速公路", ["69"] = "银川-百色高速公路", ["75"] = "兰州-海口高速公路", ["85"] = "银川-昆明高速公路", ["1111"] = "鹤岗-哈尔滨高速公路", ["1112"] = "集安-双辽高速公路", ["1113"] = "丹东-阜新高速公路", ["1115"] = "鸡西-建三江高速公路", ["1116"] = "伊春-北安高速公路", ["1117"] = "绥化-北安高速公路", ["1118"] = "抚松-长白高速公路", ["1119"] = "白山-临江高速公路", ["1131"] = "牡丹江-延吉高速公路", ["1511"] = "日照-兰考高速公路", ["1512"] = "宁波-金华高速公路", ["1513"] = "温州-丽水高速公路", ["1514"] = "宁德-上饶高速公路", ["1515"] = "盐城-靖江高速公路", ["1516"] = "盐城-洛阳高速公路", ["1517"] = "莆田-炎陵高速公路", ["1518"] = "盐城-蚌埠高速公路", ["1519"] = "南通-如东高速公路", ["1531"] = "上海-慈溪高速公路", ["1532"] = "泉州-梅州高速公路", ["1533"] = "泉州-金门高速公路", ["1534"] = "厦门-金门高速公路", ["1535"] = "潮州-南昌高速公路", ["1536"] = "东莞-广州高速公路", ["2511"] = "新民-鲁北高速公路", ["2512"] = "阜新-锦州高速公路", ["2513"] = "淮安-徐州高速公路", ["2515"] = "鲁北-霍林郭勒高速公路", ["2516"] = "东营-吕梁高速公路", ["2517"] = "沙县-厦门高速公路", ["2518"] = "深圳-岑溪高速公路", ["2519"] = "康平-沈阳高速公路", ["2531"] = "杭州-上饶高速公路", ["3511"] = "菏泽-宝鸡高速公路", ["3512"] = "寻乌-赣州高速公路", ["4511"] = "龙南-河源高速公路", ["4512"] = "双辽-嫩江高速公路", ["4513"] = "奈曼旗-营口高速公路", ["4515"] = "赤峰-绥中高速公路", ["5511"] = "集宁-阿荣旗高速公路", ["5512"] = "晋城-新乡高速公路", ["5513"] = "长沙-张家界高速公路", ["5515"] = "张家界-南充高速公路", ["5516"] = "苏尼特右旗-张家口高速公路", ["5517"] = "常德-长沙高速公路", ["5518"] = "晋城-潼关高速公路", ["5911"] = "朔州-太原高速公路", ["5912"] = "房县-五峰高速公路", ["6511"] = "安塞-清涧高速公路", ["6512"] = "秀山-从江高速公路", ["6517"] = "梧州-柳州高速公路", ["6911"] = "安康-来风高速公路", ["7511"] = "钦州-东兴高速公路", ["7512"] = "贵阳-成都高速公路", ["8511"] = "昆明-磨憨高速公路", ["8512"] = "景洪-打洛高速公路", ["8513"] = "平凉-绵阳高速公路", ["8515"] = "广安-泸州高速公路", ["8516"] = "巴中-成都高速公路", ["8517"] = "坪山-兴义高速公路", ["1521"] = "常熟-嘉善高速公路", ["1522"] = "常熟-台州高速公路", ["1523"] = "宁波-东莞高速公路", ["6521"] = "榆林-蓝田高速公路", ["6522"] = "延安-西安高速公路", ["7521"] = "重庆-贵阳高速公路", ["7522"] = "贵阳-北海高速公路", ["10"] = "绥芬河-满洲里高速公路", ["12"] = "珲春-乌兰浩特高速公路", ["16"] = "丹东-锡林浩特高速公路", ["18"] = "荣成-乌海高速公路", ["20"] = "青岛-银川高速公路", ["22"] = "青岛-兰州高速公路", ["30"] = "连云港-霍尔果斯高速公路", ["36"] = "南京-洛阳高速公路", ["40"] = "上海-西安高速公路", ["42"] = "上海-成都高速公路", ["50"] = "上海-重庆高速公路", ["56"] = "杭州-瑞丽高速公路", ["60"] = "上海-昆明高速公路", ["70"] = "福州-银川高速公路", ["72"] = "泉州-南宁高速公路", ["76"] = "厦门-成都高速公路", ["78"] = "汕头-昆明高速公路", ["80"] = "广州-昆明高速公路", ["1011"] = "哈尔滨-同江高速公路", ["1012"] = "建三江-黑瞎子岛高速公路", ["1013"] = "海拉尔-张家口高速公路", ["1015"] = "铁力-科右中旗高速公路", ["1016"] = "双鸭山-宝清高速公路", ["1017"] = "海拉尔-加格达奇高速公路", ["1211"] = "吉林-黑河高速公路", ["1212"] = "沈阳-吉林高速公路", ["1213"] = "北安-漠河高速公路", ["1215"] = "松江-长白山高速公路", ["1216"] = "乌兰浩特-阿力得尔高速公路", ["1611"] = "克什克腾-承德高速公路", ["1612"] = "锡林浩特-二连浩特高速公路", ["1811"] = "黄骅-石家庄高速公路", ["1812"] = "沧州-榆林高速公路", ["1813"] = "威海-青岛高速公路", ["1815"] = "潍坊-日照高速公路", ["1816"] = "乌海-玛沁高速公路", ["1817"] = "乌海-银川高速公路", ["1818"] = "滨州-德州高速公路", ["2011"] = "青岛-新河高速公路", ["2012"] = "定边-武威高速公路", ["2211"] = "长治-延安高速公路", ["3011"] = "柳园-格尔木高速公路", ["3012"] = "吐鲁番-和田高速公路", ["3013"] = "阿图什-伊尔克什坦高速公路", ["3014"] = "奎屯-阿勒泰高速公路", ["3015"] = "奎屯-塔城高速公路", ["3016"] = "清水河-伊宁高速公路", ["3017"] = "武威-金昌高速公路", ["3018"] = "精河-阿拉山口高速公路", ["3019"] = "博乐-阿拉山口高速公路", ["3031"] = "商丘-固始高速公路", ["3032"] = "永登-海晏高速公路", ["3033"] = "奎屯-库车高速公路", ["3035"] = "伊宁-新源高速公路", ["3036"] = "阿克苏-阿拉尔高速公路", ["3611"] = "南京-信阳高速公路", ["3612"] = "平顶山-宜昌高速公路", ["3613"] = "洛阳-内乡高速公路", ["3615"] = "洛阳-卢氏高速公路", ["4011"] = "扬州-溧阳高速公路", ["4012"] = "溧阳-宁德高速公路", ["4013"] = "扬州-乐清高速公路", ["4015"] = "丹凤-宁陕高速公路", ["4211"] = "南京-芜湖高速公路", ["4212"] = "合肥-安庆高速公路", ["4213"] = "麻城-安康高速公路", ["4215"] = "成都-遵义高速公路", ["4216"] = "成都-丽江高速公路", ["4217"] = "成都-昌都高速公路", ["4218"] = "雅安-叶城高速公路", ["4219"] = "曲水-乃东高速公路", ["4231"] = "南京-九江高速公路", ["5011"] = "芜湖-合肥高速公路", ["5012"] = "恩施-广元高速公路", ["5013"] = "重庆-成都高速公路", ["5015"] = "武汉-岳阳高速公路", ["5016"] = "宜昌-华容高速公路", ["5611"] = "大理-丽江高速公路", ["5612"] = "大理-临沧高速公路", ["5613"] = "保山-泸水高速公路", ["5615"] = "天保-猴桥高速公路", ["5616"] = "安乡-吉首高速公路", ["5617"] = "临沧-勐海高速公路", ["5618"] = "临沧-清水河高速公路", ["6011"] = "南昌-韶关高速公路", ["6012"] = "曲靖-弥勒高速公路", ["7011"] = "十堰-天水高速公路", ["7012"] = "抚州-吉安高速公路", ["7013"] = "沙县-南平高速公路", ["7211"] = "南宁-友谊关高速公路", ["7212"] = "柳州-北海高速公路", ["7611"] = "都匀-香格里拉高速公路", ["7612"] = "纳雍-兴义高速公路", ["8011"] = "开源-河口高速公路", ["8012"] = "弥勒-楚雄高速公路", ["8013"] = "砚山-文山高速公路", ["1221"] = "延吉-长春高速公路", ["3021"] = "临潼-兴平高速公路", ["4221"] = "上海-武汉高速公路", ["4222"] = "和县-襄阳高速公路", ["4223"] = "武汉-重庆高速公路", ["5021"] = "石柱-重庆高速公路", ["5621"] = "昆明-大理高速公路", ["6021"] = "杭州-长沙高速公路", ["6022"] = "醴陵-娄底高速公路", ["6023"] = "南昌-凤凰高速公路", ["6025"] = "洞口-三穗高速公路", ["7021"] = "宁德-武汉高速公路", ["7221"] = "衡阳-南宁高速公路", ["91"] = "辽中地区环线高速公路", ["92"] = "杭州湾地区环线高速公路", ["93"] = "成渝地区环线高速公路", ["94"] = "珠江三角洲地区环线高速公路", ["95"] = "首都地区环线高速公路", ["98"] = "海南地区环线高速公路", ["99"] = "台湾地区环线高速公路", --canceled ["9111"] = "本溪-集安高速公路", ["9211"] = "宁波-舟山高速公路", ["9411"] = "东莞-佛山高速公路", ["9511"] = "涞水-涞源高速公路", ["9811"] = "海口-乐东高速公路", ["9812"] = "海口-琼海高速公路", ["9813"] = "万宁-洋浦高速公路", ["9221"] = "杭州-宁波高速公路", ["9901"] = "哈尔滨都市圈环线高速公路", ["9902"] = "长春都市圈环线高速公路", ["9903"] = "杭州都市圈环线高速公路", ["9904"] = "南京都市圈环线高速公路", ["9905"] = "郑州都市圈环线高速公路", ["9906"] = "武汉都市圈环线高速公路", ["9907"] = "长株潭都市圈环线高速公路", ["9908"] = "西安都市圈环线高速公路", ["9909"] = "重庆都市圈环线高速公路", ["9910"] = "成都都市圈环线高速公路", ["9911"] = "济南都市圈环线高速公路", ["9912"] = "合肥都市圈环线高速公路", ["3012"] = "تۇرپان-خوتەن چىڭسىخوزا-غۇلجا", ["3013"] = "قەشقەر-ئەرکەشتام چىڭسىخوزا-غۇلجا", ["3014"] = "كۇيتۇن-ئالتاي چىڭسىخوزا-غۇلجا", ["3015"] = "كۇيتۇن-چۆچەك چىڭسىخوزا-غۇلجا", ["3016"] = "يۇقىرى سۈرئەتلىك تاشيولى چىڭسىخوزا-غۇلجا" } return p jdg8ag6kbjl1lxes4mtamtbvvjbdf7d Módulo:Convert to eastern arabic numerals 828 25951 116664 2025-07-03T14:45:42Z Aristorkle 14080 copied from enwiki 116664 Scribunto text/plain local p = {} local conversion_table = { ['0'] = '٠', ['1'] = '١', ['2'] = '٢', ['3'] = '٣', ['4'] = '٤', ['5'] = '٥', ['6'] = '٦', ['7'] = '٧', ['8'] = '٨', ['9'] = '٩', ['.'] = '٫' } function p._convert(args) if args == nil then return 'Error! Arguments provided are null' end if args[1] == nil then return '' end local num_str = tostring(args[1]) local new_str, _ = string.gsub(num_str, '[0-9.]', conversion_table) return new_str end function p.convert(frame) return p._convert(frame.args) end return p 7ekleea0u3y566dmyg0blqlzs6nf9r8 Plantilla:Infobox calsada/doc 10 25952 116665 2025-07-03T14:46:53Z Aristorkle 14080 copied from enwiki 116665 wikitext text/x-wiki {{documentation subpage}}<includeonly> {{High-use}} </includeonly> <!------------------------------------------------------------------- Place categories where indicated at the bottom of this page, please; interwikis to Wikidata (see [[Wikipedia:Wikidata]]). --------------------------------------------------------------------> {{Lua|Module:Infobox road|Module:Infobox road/length|Module:Infobox road/locations|Module:Infobox road/map|Module:Infobox road/sections|Module:Infobox road/browselinks|Module:Check for unknown parameters}} {{TemplateStyles|Template:Infobox road/styles.css}} {{Uses Wikidata|P15}} {{Tracks Wikidata|P15|P17|P31}} == Usage == This template generates an infobox for roads, both numbered and unnumbered. Below is the basic syntax needed to get a complete infobox for an article. Place this below any hatnotes and before any other text and fill in the variables. If a variable is empty, it should be omitted. Other, more specific, parameters exist and are described in detail below. === Numbered roads === This is the basic code needed to set up an infobox for a numbered route. <syntaxhighlight lang="wikitext" style="overflow: auto;"> {{Infobox road | country = | type = | route = | map = | length_mi = | length_km = | length_ref = | established = | direction_a = | terminus_a = | junction = | direction_b = | terminus_b = | previous_type = | previous_route = | next_type = | next_route = }} </syntaxhighlight> === Unnumbered roads === This is the basic code needed to set up an infobox for an unnumbered route. See also {{tl|infobox street}}. <syntaxhighlight lang="wikitext" style="overflow: auto;"> {{Infobox road | name = | marker_image = | map = | length_mi = | length_km = | length_ref = | established = | allocation = | direction_a = | terminus_a = | junction = | direction_b = | terminus_b = }} </syntaxhighlight> === Full=== {{Hidden | style=overflow:auto; border:1px solid silver; | titlestyle=background-color:#CFC; | title=Extended content | content= {{Parameter names example | country=AFG | name | type | route | alternate_name | marker_image | translation | lang=en | map | map_notes | image | image_width | image_alt | image_notes | section | maint | time_period | length_mi=0 | length_km | length_nmi | length_mi1=0 | length_km1 | length_mi2 | length_km2=0 | length_mi3=0 | length_km3 | length_mi4 | length_km4=0 | length_mi5=0 | length_km5 | length_mi6 | length_km6=0 | length_mi7=0 | length_km7 | length_mi8 | length_km8=0 | length_mi9=0 | length_km9 | length_mi10 | length_km10=0 | length_notes | length_notes1 | length_notes2 | length_notes3 | length_notes4 | length_notes5 | length_notes6 | length_notes7 | length_notes8 | length_notes9 | length_notes10 | length_ref | length_ref1 | length_ref2 | length_ref3 | length_ref4 | length_ref5 | length_ref6 | length_ref7 | length_ref8 | length_ref9 | length_ref10 | established | formed | history | known_for | restrictions | tourist | allocation | margary | status | e-road | ahn | tahn | mrn | e-road-shield | tahn-shield | mrn-shield | established_by | header_type | decommissioned | deleted | significance | related | terminus_a | end_a | beltway_city | ring_road | orbital | loop | tloop | junction | junction1 | junction2 | junction3 | junction4 | junction5 | junction6 | junction7 | junction8 | junction9 | junction10 | section0 | direction_a | terminus_b | end_b | direction_b | section1 | direction_a1 | terminus_a1 | direction_b1 | terminus_b1 | section2 | direction_a2 | terminus_a2 | direction_b2 | terminus_b2 | section3 | direction_a3 | terminus_a3 | direction_b3 | terminus_b3 | section4 | direction_a4 | terminus_a4 | direction_b4 | terminus_b4 | section5 | direction_a5 | terminus_a5 | direction_b5 | terminus_b5 | section6 | direction_a6 | terminus_a6 | direction_b6 | terminus_b6 | section7 | direction_a7 | terminus_a7 | direction_b7 | terminus_b7 | section8 | direction_a8 | terminus_a8 | direction_b8 | terminus_b8 | section9 | direction_a9 | terminus_a9 | direction_b9 | terminus_b9 | section10 | direction_a10 | terminus_a10 | direction_b10 | terminus_b10 | system | system1 | system2 | system3 | system4 | system5 | system6 | system7 | system8 | system9 | system10 | browse | nrhp | countries | island | community | communities | regions | province | provinces | state | states | governorates | county | counties | departments | cantons | prefectures | divisions | oblasts | districts | parish | parishes | communes | territories | location1 | location2 | location3 | location4 | location5 | subregions | subcounties | subprefectures | label1 | label2 | label3 | label4 | label5 | lga | locations | rural_municipalities | divisions | republics | okrugs | krais | federal_cities | borough | boroughs }} '''Notes''' *{{para|country|AFG}} shown for convenience. }} == Parameters == === Numbered roads === These parameters are typically used only for numbered routes. * '''country''': the [[ISO 3166-1]] alpha-3 code of the country that the route is in (not to be confused with the '''countries''' [[#Locations|location]] parameter). Use [[ISO 3166-1#Current codes|this list]] to find the correct code for the country. [[Template:Infobox road/doc/country|These countries]] have had the necessary subtemplates set up; see that page for instructions on how to set up new countries. If the route is located in Australia, the United States, Canada, or Mexico, ''and'' the route is located within one state or province use '''state''' (Australia, US, and Mexico) or '''province''' (Canada) instead (not to confused with the '''states''' and '''provinces''' [[#Locations|location]] parameters). The "state" and "province" parameters are ''not'' interchangeable. Accepted values for these two parameters are as follows: ** '''Australian state''': the two- or three-letter abbreviation of the state. '''Note''': <code>|country=AUS</code> must also be set if the state is NT or WA to avoid conflicts with other countries. ** '''U.S. state''': the two-letter [[United States postal abbreviations|postal abbreviation]] of the state. ** '''Canadian province''': the two-letter [[Canadian subnational postal abbreviations|postal abbreviation]] of the province. ** '''Mexican state''': the three-letter [[ISO 3166-2:MX]] code of the state, minus the "MX-" prefix. * '''type''': the type of route the article is about. The type code can be used to make shield images appear automatically. See [[Template:Infobox road/doc/type|this page]] for a list. * '''subtype''': the type of [[special route]] that the article route is, if applicable * '''county''': the county associated with the route that the article is about (not to be confused with the '''counties''' [[#Locations|location]] parameter). Use only for county routes. * '''route''': the number of the route. * '''section''': the section of code that defines this route. Very few areas use this, and the appropriate subpage (<nowiki>[[/law/USA]]</nowiki> for example) must be set up for the parameter to work. The state of Minnesota also uses '''subsection''' to specify the exact section of the legal code definition. * '''spur_type''': defines the type of route that the route is a spur of. Use for [[spur route]]s, such as a loop road, bypass, alternate route, business route, truck route, or other type of route. Example: Use WV for [[West Virginia Route 10 Alternate]]. * '''spur_of''': defines what the parent route is, such as [[Highway 7A (Ontario)|Highway 7A]]'s parent is [[Highway 7 (Ontario)|Highway 7]], or [[Interstate 110 (disambiguation)|Interstate 110]]'s parent is [[Interstate 10]]. The usual text that would go here is the road number, such as "7" or "10" or "500". * '''previous_type''': this is the type of route that proceeds the current one in the system. See [[Template:Infobox road/doc/type|this page]] for a list. * '''previous_route''': the number of the route preceding this one * '''previous_dab''': any disambiguation needed to generate the correct link to the previous route * '''browse_route''': the route associated with the current browse row. Typically used only if the browsing route is not the route that the rest of the infobox is about. * '''next_type''': same as "previous_type" but for the route following this one * '''next_route''': the number of the route succeeding this one * '''next_dab''': same as "previous_dab" but for the route following this one * '''browse''': use to add additional browse lines, which are generated by templates similar to {{tl|ny browse}}. These templates accept the seven parameters given above plus "county"; however, "route" is used instead of "browse_route". See [[:Category:Browse templates]]. === Historical roads === These parameters are typically used only for roads of a historic nature, such as the [[Silk Road]]. * '''time_period''': the time period that the road existed in. ** '''established_by''': the body that built or established the road. Used only in conjunction with "time_period". ** '''significance''': the historical/cultural significance of the route. Used only in conjunction with "time_period". ** '''related''': roads related to the historical road. Used only in conjunction with "time_period". * '''margary''': the [[Margary number]] of a Roman road in Britain. === Route information === * '''marker_image''': shield image to be displayed. Requires full wiki markup. Typically not needed for numbered routes. Can be set to 'none' to show no marker * '''name''': road name to be displayed. Typically not needed for numbered routes. * '''maint''': the agency that maintains the highway. If the appropriate subpage (<nowiki>[[/maint/USA]]</nowiki> for example) exists and a specific jurisdiction is specified (such as "state=AZ"), this parameter will be filled in automatically with that jurisdiction's department of transportation. "maint" still works, however, if the default agency needs to be overwritten, for instance if the route is maintained by another agency. * '''alternate_name''': Use in situations where the '''''entire route''''' has another name. For example, [[New York State Route 590]] is called the Sea Breeze Expressway for its entire length. * '''map''': image name of a map for the route, without the <code>File:</code> [[Help:Namespace|namespace]] prefix, which the template will place into an [[Help:Image|image link]] for you. For example, <code>map=''map_name''|map_alt=''alt text''</code> will render as: <code><nowiki>[[</nowiki>File:''map_name''|290x172px|alt=''alt text''<nowiki>]]</nowiki></code>. Note: this will pull the file name from Wikidata if left empty and the associated item has the information. ** '''map_alt''': alt text for the map, for visually impaired readers. See [[WP:ALT]]. This parameter should be specified if '''map''' is specified. ** '''map_notes''': an optional parameter with text to display along with the map. ** '''map_custom''': optionally set to ''yes'' if you want to override the template's default image link; then you may specify your own complete image link with: <code><nowiki>map=[[File:</nowiki>''map_name''|<nowiki>...]]</nowiki></code> ** For best results, your map image width should be 290px. ** See the [[WP:USRD/MTF|WP:USRD maps task force]] for maps for roads in the United States. * '''photo''' or '''image''': image name of a photo for the route, without the <code>File:</code> [[Help:Namespace|namespace]] prefix, which the template will place into an [[Help:Image|image link]] for you. For example, <code>photo=''photo_name''|photo_alt=''alt text''</code> will render as: <code><nowiki>[[</nowiki>File:''photo_name''|290px|alt=''alt text''<nowiki>]]</nowiki></code>. ** '''photo_width''' or '''image_width''': sets the width in pixels of non-map images. Default value is 290. ** '''photo_alt''' or '''image_alt''': alt text for the photo, for visually impaired readers. See [[WP:ALT]]. This parameter should be specified if '''photo''' is specified. ** '''photo_notes''' or '''image_notes''': an optional parameter with text to display along with the photo. ** This set of parameters will not work for articles in the United States per [[WP:USRD]] consensus. * '''length_mi''' or '''length_km''': length of the route in miles (in countries where the imperial system is used) or kilometres (in countries where the metric system is used). Only one can be used in an article. The value from the one defined is the one that appears first. The other is calculated and rounded to the same level of precision as the stated value. If neither "length_mi" nor "length_km" exists, no length is displayed. ** '''length_ref''', if defined, appears after the first length. Use a citation for the length (wrapped in {{tag|ref}} tags) or {{tl|fact}} here. Be sure that the first length is the one for which you have a reference. ** '''length_notes''', if defined, appears as a note below the length. This can be used to show former length, or future length, etc. * '''status''': the status of cancelled or under construction roadways; this will not show unless the infobox uses {{para|header_type}} with historic, former or under construction values (or their alternates). * '''established''': this is the date or year in which the route was commissioned or assigned to its current alignment. (Alternate parameter: '''formed''') * '''decommissioned''': the date or year the route was [[decommissioned highway|decommissioned]] (Alternate parameter: '''deleted''') * '''history''': a brief summary of the route's history. Typically used in place of the above two parameters. * '''known_for''': if defined, prints any notable landmarks on the road with an independent article; eg: [[Stonehenge]], [[Angel of the North]] * '''allocation''': a list of highway designations allocated to the roadway. For Australia, this uses a label of "Allocation:" while for other countries it will use "Component highways:" instead. * '''tourist''': a list of the tourist routes that follow the route; currently only set up for use in Australia, New Zealand, Canada, and the US. * '''restrictions''': a brief mention of any restrictions on the road. Examples include regular seasonal closures or permit requirements needed by motorists. * '''nhs''': sections of the road included in the [[National Highway System (United States)|U.S. National Highway System]] (NHS) network. If the entire road is part of the NHS, input "Entire route". This parameter is automatically generated for [[Interstate Highway System|U.S. Interstate Highways]] (with <code>type=I</code>). === Major intersections === * '''beltway_city''', '''orbital''', '''loop''', or '''tloop''': for beltways, orbitals, loop roads, or tourist loops only. This is the city that the beltway/orbital/loop encircles. The output differs between the three to accommodate variation in English for different geographic areas. In the case of tourist loops, using {{para|tloop|none}} will omit a location around which the roadway would loop. * '''direction_a''': for U.S. roads, this should be either "South" or "West" per the [[WP:USRD/STDS|standards]] set by [[WP:USRD|the U.S. Roads project]]. For roads in other jurisdictions, consult that area's WikiProject to determine which direction to put here. * '''terminus_a''' or '''end_a''': this is where the route begins and, for U.S. roads, is either at the southern terminus or western terminus * '''junction''': a list of major junctions. Each WikiProject has different standards for major junctions, so consult the relevant WikiProject for more details. Uses plainlist class so {{tlx|Plainlist}} is not necessary; only a bulleted list is needed. * '''direction_b''': The opposite of "direction_a" * '''terminus_b''' or '''end_b''': where the route ends, in accordance with the guidelines set forth with terminus_a This template is capable of creating separate "major intersection" sections for individual segments of a route that is split into two to four segments. The parameters associated with this feature are: * '''section#''', where # is the number of the segment (1 being the first entered into the infobox, 2 being the next, and so on). By default, the text "Major intersections" is replaced in the header with "Section #"; this parameter allows for a custom header to be used. * '''length_mi#''' or '''length_km#''': "length_mi" or "length_km" for the # segment ** '''length_ref#''': "length_ref" for the # segment ** '''length_notes#''': "length_notes" for the # segment * '''direction_a''': same as described above; however, in this usage it will provide a default direction for the beginning point of all of the segments. If the direction of one endpoint is different, use '''direction_a#''' for that endpoint. * '''terminus_a#''' or '''end_a#''': "terminus_a"/"end_a" for the # segment * '''junction#''': "junction" for the # segment * '''direction_b''': same as described above; however, in this usage it will provide a default direction for the ending point of all of the segments. If the direction of one endpoint is different, use '''direction_b#''' for that endpoint. * '''terminus_b#''' or '''end_b#''': for the # segment === Location === This infobox has several parameters to list locations; however, many are restricted to use in only certain regions or countries for various reasons, including but not limited to local WikiProject consensus and common sense (for example, "countries" shouldn't be used on intra-country articles, and since the only locations with [[rural municipalities]] are Manitoba and Saskatchewan, "rural_municipalities" should be used there and nowhere else). Updates in 2022 added many new parameters for describing locations and made them available to more locations. Even where usage is possible, each parameter is still optional on an article-by-article basis based on local consensus. ====Specific countries==== {| class="wikitable collapsible" |- |+{{nowrap|Available location parameters by listed country}} |- !Country !Subdivision !Parameter !Location description |- |colspan=2|'''Asian Highway Network'''<br><sup>ASIA</sup> |{{para|countries}} |'''Countries''', only wikilinks |-style="border-top: 4px solid #a2a9b1;" |rowspan=5 colspan=2|'''Australia'''<br><sup>AUS</sup> |rowspan=2|{{para|state}} |'''State''', two-letter abbreviation; {{para|country|AUS}} is required for {{para|state|WA}} |- |'''Territory''', two-letter abbreviation (ACT, JBT, or NT); {{para|country|AUS}} is required for {{para|state|NT}} |- |{{para|states}} |'''States''', will not display if {{para|state}} is used |- |{{para|lga}} |'''Local government areas'''; links based on state |- |{{para|locations}} |'''Major settlements''', '''Major suburbs''', or '''Suburb''' based on type |-style="border-top: 4px solid #a2a9b1;" |rowspan=3 colspan=2|'''Brazil'''<br><sup>BRA</sup> |rowspan=2|{{para|state}} |'''State'''; two-letter abbreviation |- |'''Federal district'''; two-letter abbreviation (DF) |- |{{para|states}} |'''States''', will not display if {{para|state}} is used |-style="border-top: 4px solid #a2a9b1;" |rowspan=24|'''Canada'''<br><sup>CAN</sup> |rowspan=3|All locations |rowspan=2|{{para|province}} |'''Province''', two-letter abbreviation |- |'''Territory''', two-letter abbreviation (NT, NU, or YK) |- |{{para|provinces}} |'''Provinces''', will not display if {{para|province}} is used |-style="border-top: 2px solid #a2a9b1;" |rowspan=3|Alberta<br><sup>AB</sup> |{{para|rural_municipalities}} |'''Specialized and rural municipalities''' |- |{{para|areas}} |'''Special areas''' |- |{{para|districts}} |'''Improvement districts''' |-style="border-top: 2px solid #a2a9b1;" |British Columbia<br><sup>BC</sup> |{{para|districts}}<br>{{para|rural_municipalities}} |'''Regional districts''' |-style="border-top: 2px solid #a2a9b1;" |Manitoba<br><sup>MB</sup> |{{para|rural_municipalities}} |'''Rural municipalities''' |-style="border-top: 2px solid #a2a9b1;" |rowspan=2|New Brunswick<br><sup>NB</sup> |{{para|counties}} |'''Counties''' |- |{{para|parishes}} |'''Parishes''' |-style="border-top: 2px solid #a2a9b1;" |Northwest Territories<br><sup>NT</sup> |{{para|regions}} |'''Regions''' |-style="border-top: 2px solid #a2a9b1;" |Nova Scotia<br><sup>NS</sup> |{{para|counties}} |'''Counties''' |-style="border-top: 2px solid #a2a9b1;" |Nunavut<br><sup>NU</sup> |{{para|regions}} |'''Regions''' |-style="border-top: 2px solid #a2a9b1;" |rowspan=5|Ontario<br><sup>ON</sup> |{{para|rural_municipalities}} |'''Municipalities''' |- |{{para|counties}} |'''Counties''' |- |{{para|regions}} |'''Regions''' |- |{{para|districts}} |'''Districts''' |- |{{para|divisions}} |'''Divisions''' |-style="border-top: 2px solid #a2a9b1;" |rowspan=2|Prince Edward Island<br><sup>PE</sup> |{{para|counties}} |'''Counties''' |- |{{para|parishes}} |'''Parishes''' |-style="border-top: 2px solid #a2a9b1;" |rowspan=2|Québec<br><sup>QC</sup> |{{para|rural_municipalities}} |'''Regional county municipalities''' |- |{{para|territories}} |'''Equivalent territories''' |-style="border-top: 2px solid #a2a9b1;" |Saskatchewan<br><sup>SK</sup> |{{para|rural_municipalities}} |'''Rural municipalities''' |-style="border-top: 2px solid #a2a9b1;" |Yukon<br><sup>YK</sup> |colspan=2 {{n/a}} |-style="border-top: 4px solid #a2a9b1;" |rowspan=5|'''China'''<br><sup>CHN</sup> |Hong Kong SAR<br><sup>HKG</sup> |{{para|districts}} |'''Districts''' |-style="border-top: 2px solid #a2a9b1;" |Macau SAR<br><sup>MAC</sup> |colspan=2 {{n/a}} |-style="border-top: 2px solid #a2a9b1;" |rowspan=3|All other locations |{{para|province}} |'''Province'''; two-letter abbreviation |- |{{para|provinces}} |'''Provinces'''; two-letter abbreviation, will not display if {{para|province}} is used |- |{{para|regions}} |'''Autonomous regions''' |-style="border-top: 4px solid #a2a9b1;" |colspan=2|'''International E-road Network'''<br><sup>EUR</sup> |{{para|countries}} |'''Countries''', only wikilinks |-style="border-top: 4px solid #a2a9b1;" |rowspan=7|'''France'''<br><sup>FRA</sup> |French Guiana<br><sup>GUF</sup> |colspan=2 {{n/a}} |-style="border-top: 2px solid #a2a9b1;" |Guadaloupe<br><sup>GLP</sup> |colspan=2 {{n/a}} |-style="border-top: 2px solid #a2a9b1;" |Martinique<br><sup>MTQ</sup> |colspan=2 {{n/a}} |-style="border-top: 2px solid #a2a9b1;" |Mayotte<br><sup>MYT</sup> |colspan=2 {{n/a}} |-style="border-top: 2px solid #a2a9b1;" |Reunion<br><sup>REU</sup> |colspan=2 {{n/a}} |-style="border-top: 2px solid #a2a9b1;" |rowspan=2|All other locations |{{para|regions}} |'''Regions''' |- |{{para|departments}} |'''Departments''' |-style="border-top: 4px solid #a2a9b1;" |rowspan=5 colspan=2|'''India'''<br><sup>IND</sup> |rowspan=2|{{para|state}} |'''State'''; two-letter abbreviation |- |'''Union territory'''; two-letter abbreviation (AN, CH, DH, DL, JK, LA, LD, PY) |- |{{para|states}} |'''States''', will not display if {{para|state}} is used |- |{{para|territories}} |'''Union territories''' |- |{{para|districts}} |'''Districts''' |-style="border-top: 4px solid #a2a9b1;" |rowspan=3 colspan=2|'''Mexico'''<br><sup>MEX</sup> |rowspan=2|{{para|state}} |'''State'''; three-letter abbreviation |- |'''Autonomous city'''; three-letter abbreviation (CMX) |- |{{para|states}} |'''States''', will not display if {{para|state}} is used |-style="border-top: 4px solid #a2a9b1;" |rowspan=4|'''Kingdom of the<br>Netherlands''' |'''Netherlands'''<br><sup>NLD</sup> |{{para|provinces}} |'''Provinces''' |-style="border-top: 2px solid #a2a9b1;" |Aruba<br><sup>ABW</sup> |colspan=2 {{n/a}} |-style="border-top: 2px solid #a2a9b1;" |Curaçao<br><sup>CUW</sup> |colspan=2 {{n/a}} |-style="border-top: 2px solid #a2a9b1;" |Sint Maarten<br><sup>SXM</sup> |colspan=2 {{n/a}} |-style="border-top: 4px solid #a2a9b1;" |rowspan=5 colspan=2|'''Russia'''<br><sup>RUS</sup> |{{para|oblasts}} |'''Oblasts''' |- |{{para|republics}} |'''Republics''' |- |{{para|okrugs}} |'''Autonomous okrugs''' |- |{{para|krais}} |'''Krais''' |- |{{para|federal_cities}} |'''Federal cities''' |-style="border-top: 4px solid #a2a9b1;" |rowspan=4 colspan=2|'''Spain'''<br><sup>ESP</sup> |{{para|province}} |'''Province''', one- or two-letter abbreviation; will display the appropriate autonomous community automatically |- |{{para|provinces}} |'''Provinces''', will not display if {{para|province}} is used |- |{{para|community}} |'''Autonomous community''', two-letter abbreviation; only use for inter-provincial routes |- |{{para|communities}} |'''Autonomous communities'''; will not display if {{para|community}} is used |- |-style="border-top: 4px solid #a2a9b1;" |rowspan=23|'''United Kingdom''' |Generic usage<br><sup>GBR</sup> |{{para|counties}} |'''Counties''' |-style="border-top: 2px solid #a2a9b1;" |rowspan=2|England<br><sup>ENG</sup> |{{para|counties}} |'''Counties''' |- |{{para|boroughs}} |'''Boroughs''' |-style="border-top: 2px solid #a2a9b1;" |Northern Ireland<br><sup>NIR</sup> |{{para|districts}} |'''Districts''' |-style="border-top: 2px solid #a2a9b1;" |Scotland<br><sup>SCT</sup> |{{para|areas}} |'''Council areas''' |-style="border-top: 2px solid #a2a9b1;" |rowspan=2|Wales<br><sup>WLS</sup> |{{para|counties}} |'''Counties''' |- |{{para|boroughs}} |'''County boroughs''' |-style="border-top: 2px solid #a2a9b1;" |Guernsey<br><sup>GGY</sup> |{{para|parishes}} |'''Parishes''' |-style="border-top: 2px solid #a2a9b1;" |Isle of Man<br><sup>IMN</sup> |{{para|sheadings}} |'''Sheadings''' |-style="border-top: 2px solid #a2a9b1;" |Jersey<br><sup>JEY</sup> |{{para|parishes}} |'''Parishes''' |-style="border-top: 2px solid #a2a9b1;" |Anguilla<br><sup>AIA</sup> |{{para|districts}} |'''Districts''' |-style="border-top: 2px solid #a2a9b1;" |Bermuda<br><sup>BMU</sup> |{{para|parishes}} |'''Parishes''' |-style="border-top: 2px solid #a2a9b1;" |British Indian Ocean Territory<br><sup>IOT</sup> |colspan=2 {{n/a}} |-style="border-top: 2px solid #a2a9b1;" |British Virgin Islands<br><sup>VGB</sup> |{{para|districts}} |'''Districts''' |-style="border-top: 2px solid #a2a9b1;" |Cayman Islands<br><sup>CYM</sup> |{{para|districts}} |'''Districts''' |-style="border-top: 2px solid #a2a9b1;" |Falkland Islands<br><sup>FLK</sup> |colspan=2 {{n/a}} |-style="border-top: 2px solid #a2a9b1;" |Gibraltar<br><sup>GIB</sup> |colspan=2 {{n/a}} |-style="border-top: 2px solid #a2a9b1;" |Montserrat<br><sup>MSR</sup> |{{para|parishes}} |'''Parishes''' |-style="border-top: 2px solid #a2a9b1;" |Pitcairn Islands<br><sup>PCN</sup> |colspan=2 {{n/a}} |-style="border-top: 2px solid #a2a9b1;" |Saint Helena, Ascension and<br>Tristan da Cunha<br><sup>SHN</sup> |{{para|island}} |'''Island''' |-style="border-top: 2px solid #a2a9b1;" |South Georgia and the<br>South Sandwich Islands<br><sup>SGS</sup> |colspan=2 {{n/a}} |-style="border-top: 2px solid #a2a9b1;" |Turks and Caicos Islands<br><sup>TCA</sup> |{{para|districts}} |'''Districts''' |-style="border-top: 2px solid #a2a9b1;" |All locations |{{para|destinations}} |'''Primary destinations''' |-style="border-top: 4px solid #a2a9b1;" |rowspan=14|'''United States'''<br><sup>USA</sup> |rowspan=6|All locations |rowspan=3|{{para|state}} |'''State''', two-letter abbreviation |- |'''Territory''', two-letter abbreviation (AS, GU, MP, PR, or VI) |- |'''Federal district''', two-letter abbreviation (DC) |- |{{para|states}} |'''States''', will not display if {{para|state}} is used |- |{{para|indep_city}} |'''Independent city''' |- |{{para|indep_cities}} |'''Independent cities''', will not display if {{para|indep_city}} is used |-style="border-top: 2px solid #a2a9b1;" |rowspan=2|Alaska<br><sup>AK</sup> |{{para|borough}} |'''Borough''' |- |{{para|boroughs}} |'''Boroughs''', will not display if {{para|borough}} is used |-style="border-top: 2px solid #a2a9b1;" |rowspan=2|Louisiana<br><sup>LA</sup> |{{para|parish}} |'''Parish''' |- |{{para|parishes}} |'''Parishes''', will not display if {{para|parish}} is used |-style="border-top: 2px solid #a2a9b1;" |rowspan=2|Puerto Rico<br><sup>PR</sup> |{{para|municipality}} |'''Municipality''' |- |{{para|municipalities}} |'''Municipalities''', will not display if {{para|municipality}} is used |-style="border-top: 2px solid #a2a9b1;" |rowspan=2|All other locations |{{para|county}} |'''County''' |- |{{para|counties}} |'''Counties''', will not display if {{para|county}} is used |} ====All other countries==== {| class="wikitable collapsible" |- |+{{nowrap|Available location parameters for all other countries}} |- !Parameter !Location description |- |{{para|country}} |'''Country''' |- |{{para|countries}} |'''Countries''', will not display if {{para|country}} is used |- |{{para|island}} |'''Island''' |- |{{para|communities}} |'''Communities''' |- |{{para|regions}} |'''Regions''' |- |{{para|provinces}} |'''Provinces''' |- |{{para|states}} |'''States''' |- |{{para|governorates}} |'''Governorates''' |- |{{para|counties}} |'''Counties''' |- |{{para|departments}} |'''Departments''' |- |{{para|cantons}} |'''Cantons''' |- |{{para|prefectures}} |'''Prefectures''' |- |{{para|divisions}} |'''Divisions''' |- |{{para|oblasts}} |'''Oblasts''' |- |{{para|districts}} |'''Districts''' |- |{{para|parishes}} |'''Parishes''' |- |{{para|communes}} |'''Communes''' |- |{{para|territories}} |'''Territories''' |- |{{para|location1}} |{{para|label1}} Generic label |- |{{para|location2}} |{{para|label2}} Generic label |- |{{para|location3}} |{{para|label3}} Generic label |- |{{para|location4}} |{{para|label4}} Generic label |- |{{para|location5}} |{{para|label5}} Generic label |- |{{para|subregions}} |'''Subregions''' |- |{{para|subcounties}} |'''Subcounties''' |- |{{para|subprefectures}} |'''Subprefectures''' |} ====Municipal divisions==== {| class="wikitable collapsible" |- |+{{nowrap|Available municipal parameters for all countries except the United States}} |- !Parameter !Location description |- |{{para|municipalities}} |'''Municipalities''' |- |{{para|cities}} |'''Major cities''' |- |{{para|towns}} |'''Towns''' |- |{{para|villages}} |'''Villages''' |- |{{para|destinations}} |'''Primary destinations''' |- |} === Other parameters === * '''header_type''': IBR has a small set of alternate header shades for specific sets of articles. They are: ** '''under construction''': for roads where construction has begun on the highway and no sections have been opened to traffic. Do ''not'' use for roads that are open to traffic in some capacity. (Alternate values: '''const''', '''uc''') ** '''historic''': for roads of a historic nature, such as [[auto trail]]s or highways posted with brown, historical or scenic signage. (Alternate values: '''historical''', '''hist''', '''scenic''') ** '''former''': for highway designations no longer maintained by the corresponding government authority. (Alternate value: '''decommissioned''') ** '''minor''': UK only. For [[A roads in Great Britain|A roads]] signed with black-on-white markers. * '''system''': the highway system that the article route is part of. Typically not needed for numbered routes. * '''system#''', where # is the number of the next additional highway system to be displayed (1 being the first entered into the infobox, 2 being the next, and so on). * '''e-road''', '''ahn''', '''tahn''' or '''mrn''': used to indicate that a roadway is part of the [[International E-road network]] in Europe, the [[Asian Highway Network]], the [[Trans-African Highway network]] or the [[Arab Mashreq International Road Network]]. ** '''e-road-shield''', '''ahn-shield''', '''tahn-shield''' or '''mrn-shield''': shield or route marker image for the E-road, AHN, TAHN or MRN route. Requires full wiki markup. * '''embedded''': embed another infobox with such capability like {{tl|Designation list}} and {{tl|Infobox NRHP}}. == Example == {{Infobox road | state = NJ | type = NJTP | map = {{maplink-road|from=New Jersey Turnpike.map}} | map_custom = yes | map_notes = New Jersey Turnpike mainline and spurs highlighted in green | map_alt = Map of New Jersey with a long red line running from the southwest corner of the state to the northeast corner of the state signifying the mainline, three short red lines signifying the spur routes | length_mi = 117.20 | length_ref = <ref name="sld 1" /><ref name="sld 0">{{cite web |author = New Jersey Department of Transportation |url = http://www.state.nj.us/transportation/refdata/sldiag/pdf/00000700__-.pdf |title = Route 700 Straight Line Diagram |access-date = March 17, 2020 |publisher = New Jersey Department of Transportation |url-status = live |archive-url = https://web.archive.org/web/20160304211723/http://www.state.nj.us/transportation/refdata/sldiag/00000700__-.pdf |archive-date = March 4, 2016 |df = mdy-all |author-link = New Jersey Department of Transportation }}</ref><!--equation is 76.78+52.17-6.55=122.4--> | length_notes = (Mainline) {{plainlist| * {{cvt|11.03|mi|km}}—Western Spur<ref name="sld 2">{{cite web |author = New Jersey Department of Transportation |url = http://www.state.nj.us/transportation/refdata/sldiag/pdf/00000095W_-.pdf |title = Route 95W Straight Line Diagram |access-date = March 17, 2020 |publisher = New Jersey Department of Transportation |url-status = live |archive-url = https://web.archive.org/web/20160113180423/http://www.state.nj.us/transportation/refdata/sldiag/00000095W_-.pdf |archive-date = January 13, 2016 |df = mdy-all }}</ref> * {{cvt|6.55|mi|km}}—Pennsylvania Extension<ref name="sld 1">{{cite web |author = New Jersey Department of Transportation |url = http://www.state.nj.us/transportation/refdata/sldiag/pdf/00000095__-.pdf |title = Route 95 Straight Line Diagram |access-date = March 17, 2020 |publisher = New Jersey Department of Transportation |url-status = live |archive-url = https://web.archive.org/web/20160304210126/http://www.state.nj.us/transportation/refdata/sldiag/00000095__-.pdf |archive-date = March 4, 2016 |df = mdy-all }}</ref> * {{cvt|8.17|mi|km}}—Newark Bay Extension<ref name="sld 3">{{cite web |author = New Jersey Department of Transportation |url = http://www.state.nj.us/transportation/refdata/sldiag/pdf/00000078__-.pdf |title = Route 78 Straight Line Diagram |access-date = March 17, 2020 |publisher = New Jersey Department of Transportation |url-status = live |archive-url = https://web.archive.org/web/20160304212003/http://www.state.nj.us/transportation/refdata/sldiag/00000078__-.pdf |archive-date = March 4, 2016 |df = mdy-all }}</ref> * {{cvt|5.20|mi|km}}—I-95 Extension<ref name="sld 1" /> * {{cvt|148.18|mi|km}}—Total Length of Turnpike including Extensions }} | established = 1951 | allocation = * {{Jct|state=NJ|Route|700|nolink=yes|noshield1=yes}} (unsigned) from [[Pennsville Township, New Jersey|Pennsville Township]] to [[Mansfield Township, Burlington County, New Jersey|Mansfield Township]] * {{jct|state=NJ|I-Toll|95}} from [[Burlington Township, New Jersey|Burlington Township]] to [[Fort Lee, New Jersey|Fort Lee]] * {{jct|state=NJ|I-Toll|78}} Newark Bay Extension from [[Newark, New Jersey|Newark]] to [[Jersey City, New Jersey|Jersey City]] | restrictions = Buses and commercial vehicles must use outer roadways between Exits 6 and 14 | direction_a = South | direction_b = North | terminus_a = {{jct|state=NJ|I|295|US|40|US|130}} in [[Pennsville Township, New Jersey|Pennsville]] near the [[Delaware Memorial Bridge]] | junction = * {{jct|state=NJ|NJ|73}} in [[Mount Laurel, New Jersey|Mount Laurel]] * {{jct|state=NJ|I-Toll|95|PAEX|nolink2=yes}} in [[Mansfield Township, Burlington County, New Jersey|Mansfield Township]] * {{jct|state=NJ|I|195}} in [[Robbinsville Township, New Jersey|Robbinsville Township]] * {{jct|state=NJ|I|287|NJ|440}} in [[Edison, New Jersey|Edison]] * {{jct|state=NJ|GSP||US|9}} in [[Woodbridge Township, New Jersey|Woodbridge Township]] * {{jct|state=NJ|I|278}} in [[Elizabeth, New Jersey|Elizabeth]] * {{jct|state=NJ|I-Toll|78|NBEX||US|1-9|nolink2=yes}} in [[Newark, New Jersey|Newark]] * {{jct|state=NJ|I|280}} in [[Kearny, New Jersey|Kearny]] * {{jct|state=NJ|NJ|495}} in [[Secaucus, New Jersey|Secaucus]] * {{jct|state=NJ|I|80}} in [[Teaneck, New Jersey|Teaneck]] | terminus_b = {{jct|state=NJ|I|95|US|1-9|US|46|NJ|4|US|9W|PIP|}} in [[Fort Lee, New Jersey|Fort Lee]] near the [[George Washington Bridge]] | counties = [[Salem County, New Jersey|Salem]], [[Gloucester County, New Jersey|Gloucester]], [[Camden County, New Jersey|Camden]], [[Burlington County, New Jersey|Burlington]], [[Mercer County, New Jersey|Mercer]], [[Middlesex County, New Jersey|Middlesex]], [[Union County, New Jersey|Union]], [[Essex County, New Jersey|Essex]], [[Hudson County, New Jersey|Hudson]], [[Bergen County, New Jersey|Bergen]] | previous_type = I | previous_route = 695 | browse_route = Route&nbsp;700 | next_type = I | next_route = 895 | browse = {{nj browse|previous_type=I|previous_route=95|route=Route&nbsp;100|next_type=NJ-old|next_route=101 }}{{nj browse|previous_type=I|previous_route=295|route=Route&nbsp;300|next_type=NJ|next_route=303}} }} <syntaxhighlight lang="wikitext" style="overflow:auto;"> {{Infobox road | state = NJ | type = NJTP | map = {{maplink-road|from=New Jersey Turnpike.map}} | map_custom = yes | map_notes = New Jersey Turnpike mainline and spurs highlighted in green | map_alt = Map of New Jersey with a long red line running from the southwest corner of the state to the northeast corner of the state signifying the mainline, three short red lines signifying the spur routes | length_mi = 117.20 | length_ref = <ref name="sld 1" /><ref name="sld 0">{{cite web |author = New Jersey Department of Transportation |url = http://www.state.nj.us/transportation/refdata/sldiag/pdf/00000700__-.pdf |title = Route 700 Straight Line Diagram |access-date = March 17, 2020 |publisher = New Jersey Department of Transportation |url-status = live |archive-url = https://web.archive.org/web/20160304211723/http://www.state.nj.us/transportation/refdata/sldiag/00000700__-.pdf |archive-date = March 4, 2016 |df = mdy-all |author-link = New Jersey Department of Transportation }}</ref><!--equation is 76.78+52.17-6.55=122.4--> | length_notes = (Mainline) {{plainlist| * {{cvt|11.03|mi|km}}—Western Spur<ref name="sld 2">{{cite web |author = New Jersey Department of Transportation |url = http://www.state.nj.us/transportation/refdata/sldiag/pdf/00000095W_-.pdf |title = Route 95W Straight Line Diagram |access-date = March 17, 2020 |publisher = New Jersey Department of Transportation |url-status = live |archive-url = https://web.archive.org/web/20160113180423/http://www.state.nj.us/transportation/refdata/sldiag/00000095W_-.pdf |archive-date = January 13, 2016 |df = mdy-all }}</ref> * {{cvt|6.55|mi|km}}—Pennsylvania Extension<ref name="sld 1">{{cite web |author = New Jersey Department of Transportation |url = http://www.state.nj.us/transportation/refdata/sldiag/pdf/00000095__-.pdf |title = Route 95 Straight Line Diagram |access-date = March 17, 2020 |publisher = New Jersey Department of Transportation |url-status = live |archive-url = https://web.archive.org/web/20160304210126/http://www.state.nj.us/transportation/refdata/sldiag/00000095__-.pdf |archive-date = March 4, 2016 |df = mdy-all }}</ref> * {{cvt|8.17|mi|km}}—Newark Bay Extension<ref name="sld 3">{{cite web |author = New Jersey Department of Transportation |url = http://www.state.nj.us/transportation/refdata/sldiag/pdf/00000078__-.pdf |title = Route 78 Straight Line Diagram |access-date = March 17, 2020 |publisher = New Jersey Department of Transportation |url-status = live |archive-url = https://web.archive.org/web/20160304212003/http://www.state.nj.us/transportation/refdata/sldiag/00000078__-.pdf |archive-date = March 4, 2016 |df = mdy-all }}</ref> * {{cvt|5.20|mi|km}}—I-95 Extension<ref name="sld 1" /> * {{cvt|148.18|mi|km}}—Total Length of Turnpike including Extensions }} | established = 1951 | allocation = * {{Jct|state=NJ|Route|700|nolink=yes|noshield1=yes}} (unsigned) from [[Pennsville Township, New Jersey|Pennsville Township]] to [[Mansfield Township, Burlington County, New Jersey|Mansfield Township]] * {{jct|state=NJ|I-Toll|95}} from [[Burlington Township, New Jersey|Burlington Township]] to [[Fort Lee, New Jersey|Fort Lee]] * {{jct|state=NJ|I-Toll|78}} Newark Bay Extension from [[Newark, New Jersey|Newark]] to [[Jersey City, New Jersey|Jersey City]] | restrictions = Buses and commercial vehicles must use outer roadways between Exits 6 and 14 | direction_a = South | direction_b = North | terminus_a = {{jct|state=NJ|I|295|US|40|US|130}} in [[Pennsville Township, New Jersey|Pennsville]] near the [[Delaware Memorial Bridge]] | junction = * {{jct|state=NJ|NJ|73}} in [[Mount Laurel, New Jersey|Mount Laurel]] * {{jct|state=NJ|I-Toll|95|PAEX|nolink2=yes}} in [[Mansfield Township, Burlington County, New Jersey|Mansfield Township]] * {{jct|state=NJ|I|195}} in [[Robbinsville Township, New Jersey|Robbinsville Township]] * {{jct|state=NJ|I|287|NJ|440}} in [[Edison, New Jersey|Edison]] * {{jct|state=NJ|GSP||US|9}} in [[Woodbridge Township, New Jersey|Woodbridge Township]] * {{jct|state=NJ|I|278}} in [[Elizabeth, New Jersey|Elizabeth]] * {{jct|state=NJ|I-Toll|78|NBEX||US|1-9|nolink2=yes}} in [[Newark, New Jersey|Newark]] * {{jct|state=NJ|I|280}} in [[Kearny, New Jersey|Kearny]] * {{jct|state=NJ|NJ|495}} in [[Secaucus, New Jersey|Secaucus]] * {{jct|state=NJ|I|80}} in [[Teaneck, New Jersey|Teaneck]] | terminus_b = {{jct|state=NJ|I|95|US|1-9|US|46|NJ|4|US|9W|PIP|}} in [[Fort Lee, New Jersey|Fort Lee]] near the [[George Washington Bridge]] | counties = [[Salem County, New Jersey|Salem]], [[Gloucester County, New Jersey|Gloucester]], [[Camden County, New Jersey|Camden]], [[Burlington County, New Jersey|Burlington]], [[Mercer County, New Jersey|Mercer]], [[Middlesex County, New Jersey|Middlesex]], [[Union County, New Jersey|Union]], [[Essex County, New Jersey|Essex]], [[Hudson County, New Jersey|Hudson]], [[Bergen County, New Jersey|Bergen]] | previous_type = I | previous_route = 695 | browse_route = Route&nbsp;700 | next_type = I | next_route = 895 | browse = {{nj browse|previous_type=I|previous_route=95|route=Route&nbsp;100|next_type=NJ-old|next_route=101 }}{{nj browse|previous_type=I|previous_route=295|route=Route&nbsp;300|next_type=NJ|next_route=303}} }} </syntaxhighlight> '''Example references''' {{Reflist}} {{Clear}} == TemplateData == {{collapse top|[[Wikipedia:TemplateData|TemplateData]] documentation used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools}} {{TemplateData header|noheader=1}} <templatedata> { "description": "An infobox template for highway articles. ", "params": { "country": { "label": "Country", "type": "string", "description": "The ISO 3166-1 alpha-3 code of the country the route is in." }, "state": { "label": "State", "type": "string", "description": "The two to three letter abbreviation of the Australian, U.S., or Mexican state the route is in." }, "province": { "label": "Province", "type": "string", "description": "The two letter postal abbreviation of the Canadian province the route is in." }, "type": { "label": "Type", "type": "string", "description": "The type code of the route from Template:Infobox_road/doc/type." }, "route": { "label": "Route number", "type": "string", "description": "The number of the route." }, "marker_image": { "label": "Marker image", "type": "content", "description": "Marker image or shield to be displayed. Use full wiki markup. Not needed for numbered routes, usually." }, "name": { "label": "Name", "type": "string", "description": "The name of the road (not used for numbered routes)." }, "alternate_name": { "label": "Alternate name", "type": "string", "description": "The alternate name of the road. Use only when the entire route has that name." }, "maint": { "label": "Maintenance", "type": "string", "description": "The agency that maintains the road. Numbered routes have this automatically populated." }, "map": { "label": "Map", "type": "string", "description": "The file name of the map of the road, without File:. If this is blank and the map is available on Wikidata, it will be used." }, "map_alt": { "label": "Map alternate text", "type": "string", "description": "The alternate text for the map, for visually impaired readers." }, "map_notes": { "label": "Map notes", "type": "string", "description": "Text to display with the map." }, "photo": { "label": "Photo", "type": "wiki-file-name", "description": "A photo to display, without File:. Does not work in the US.", "aliases": [ "image" ] }, "photo_alt": { "label": "Photo alternate text", "type": "string", "description": "The alternate text for the photo, for visually impaired readers.", "aliases": [ "image_alt" ] }, "photo_notes": { "label": "Photo notes", "type": "string", "description": "Text to display with the map.", "aliases": [ "image_notes" ] }, "map_custom": { "label": "Map custom", "type": "string", "description": "Use yes if you want to override the template's default image link; then use the Map parameter to specify a link instead." }, "length_mi": { "label": "Length in miles", "type": "number", "description": "If and only if the route is in a country on the imperial system, list the length in miles here." }, "length_km": { "label": "Length in kilometres", "type": "number", "description": "If and only if the route is in a country on the metric system, list the length in kilometres here." }, "length_ref": { "label": "Length reference", "type": "string", "description": "A reference for the given length." }, "length_notes": { "label": "Length notes", "type": "string", "description": "Notes for the length." }, "established": { "label": "Established", "type": "string", "description": "Date the route was commissioned.", "aliases": [ "formed" ] }, "decommissioned": { "label": "Decommissioned", "type": "string", "description": "Date the route was decommissioned.", "aliases": [ "deleted" ] }, "history": { "label": "History", "type": "content", "description": "Summary of the route's history, instead of the established and decommissioned fields." }, "allocation": { "label": "Allocation", "type": "string", "description": "Highway designations allocated to the roadway." }, "tourist": { "label": "Tourist routes", "type": "string", "description": "Tourist routes that follow the route (Australia, New Zealand, Canada, US)." }, "restrictions": { "label": "Restrictions", "type": "string", "description": "Summary of the route's restrictions such as closures or permits." }, "direction_a": { "label": "Direction A", "type": "string", "description": "The first direction." }, "direction_b": { "label": "Direction B", "type": "string", "description": "The second direction." }, "terminus_a": { "label": "Terminus A", "type": "string", "description": "The first terminus.", "aliases": [ "end_a" ] }, "terminus_b": { "label": "Terminus B", "type": "string", "description": "The second terminus.", "aliases": [ "end_b" ] }, "junctions": { "label": "Major junctions", "type": "string", "description": "A brief list of major junctions. In the US, do not use more than 10.", "aliases": [ "junction" ] }, "beltway_city": { "label": "Beltway city", "type": "string", "description": "The city the beltway encircles." }, "orbital": { "label": "Orbital city", "type": "string", "description": "The city the orbital encircles." }, "loop": { "label": "Loop road city", "type": "string", "description": "The city the loop road encircles." }, "tloop": { "label": "Tourist loop city", "type": "string", "description": "The city the tourist loop encircles." }, "time_period": { "label": "Time period", "type": "string", "description": "The time period the road existed in." }, "established_by": { "label": "Established by", "type": "string", "description": "If a time period is used, the body that built or established the road." }, "significance": { "label": "Significance", "type": "string", "description": "If a time period is used, the historical/cultural significance of the route." }, "related": { "label": "Related roads", "type": "string", "description": "If a time period is used, roads related to the historical road." }, "subtype": { "label": "Subtype", "type": "string", "description": "If the route is a spur or a special route." }, "spur_type": { "label": "Spur type", "type": "string", "description": "The type of the parent route that this is a spur of." }, "spur_of": { "label": "Spur of", "type": "string", "description": "The parent route of this spur route." }, "county": { "label": "County (for county routes)", "type": "string", "description": "The county associated with the route that the article is about. Use only for county routes." }, "previous_type": { "label": "Previous route type", "type": "string", "description": "The type code of the previous route in the system from Template:Infobox_road/doc/type." }, "next_type": { "label": "Next route type", "type": "string", "description": "The type code of the next route in the system from Template:Infobox_road/doc/type." }, "previous_route": { "label": "Previous route", "type": "string", "description": "The number of the previous route in the system." }, "next_route": { "label": "Next route", "type": "string", "description": "The number of the next route in the system." }, "previous_dab": { "label": "Previous route disambiguation", "type": "string", "description": "The disambiguation suffix of the previous route in the system." }, "next_dab": { "label": "Next route disambiguation", "type": "string", "description": "The disambiguation suffix of the next route in the system." }, "browse_route": { "label": "Browse route", "type": "string", "description": "The number of the current route in the system, if not the same as the rest of the infobox." }, "browse": { "label": "Additional browse lines", "type": "string", "description": "Use to add additional browse lines with additional templates" }, "countries": { "label": "List of countries", "type": "string", "description": "A list of countries the route enters (EUR, ASIA)" }, "regions": { "label": "List of regions", "type": "string", "description": "A list of regions the route enters (EUR, ITA, HRV, CZE, CYP, GRC, POL, HUN, SVN, SVK, AUT, TUR, UKR, BIH, SRB, SGP)" }, "states": { "label": "List of states", "type": "string", "description": "A list of states the route enters (USA in multiple states, IND, DEU)" }, "provinces": { "label": "List of provinces", "type": "string", "description": "A list of provinces the route enters (IRN, TUR, THA)" }, "counties": { "label": "List of counties", "type": "string", "description": "A list of counties the route enters (anywhere)" }, "parishes": { "label": "List of parishes", "type": "string", "description": "A list of parishes the route enters (Louisiana)" }, "rural_municipalities": { "label": "List of rural municipalities", "type": "string", "description": "A list of countries the route enters (Manitoba, Saskatchewan)" }, "municipalities": { "label": "List of municipalities", "type": "string", "description": "A list of municipalities the route enters (Puerto Rico)" }, "districts": { "label": "List of districts", "type": "string", "description": "A list of districts the route enters (India, other countries with districts)" }, "boroughs": { "label": "List of boroughs", "type": "string", "description": "A list of boroughs the route enters (Alaska)", "aliases": [ "borough" ] }, "divisions": { "label": "List of divisions", "type": "string", "description": "A list of divisions the route enters (Ontario)" }, "cities": { "label": "List of cities", "type": "string", "description": "A list of cities the route enters (everywhere but USA)" }, "towns": { "label": "List of towns", "type": "string", "description": "A list of towns the route enters (everywhere but USA)" }, "villages": { "label": "List of villages", "type": "string", "description": "A list of villages the route enters (everywhere but USA)" }, "destinations": { "label": "List of destinations", "type": "string", "description": "A list of primary destinations the route enters (AUS, GBR, IRL, MYS, NZL, IND)" }, "lga": { "label": "List of LGAs", "type": "string", "description": "A list of LGAs the route enters (Australia)" }, "locations": { "label": "List of locations", "type": "string", "description": "A list of locations the route enters (Australia)" }, "section": { "label": "Section of code", "type": "string", "description": "The section of the highway code the route is defined in." }, "subsection": { "label": "Subsection of code", "type": "string", "description": "The subsection of the highway code the route is defined in (for Minnesota only)." }, "header_type": { "label": "Header type", "type": "string", "description": "under construction, historic, former, freeway (Canada only), minor (UK only)" }, "system": { "label": "Highway system", "type": "string", "description": "The highway system the article route is a part of. Typically not used for numbered routes." }, "e-road": { "label": "E-road", "type": "string", "description": "The E-road that the route is a part of (Europe)." }, "e-road-shield": { "label": "E-road route marker image", "type": "string", "description": "Route marker image for the E-road that the route is a part of (Europe). Requires full wiki markup." }, "ahn": { "label": "Asian Highway Network designation", "type": "string", "description": "The Asian Highway that the route is a part of." }, "ahn-shield": { "label": "Asian Highway route marker image", "type": "string", "description": "Route marker image for the Asian Highway that the route is a part of. Requires full wiki markup." }, "tahn": { "label": "Trans-African Highway designation", "type": "string", "description": "The Trans-African Highway that the route is a part of." }, "tahn-shield": { "label": "Trans-African Highway route marker image", "type": "string", "description": "Route marker image for the Trans-African Highway that the route is a part of. Requires full wiki markup." }, "section1": { "label": "Header for section 1", "type": "string", "default": "Section 1", "description": "If the route is divided into sections, this is the header for section 1." }, "length_mi1": { "label": "Section 1 length in miles", "type": "number", "description": "If and only if the route is in a country on the imperial system, list the length in miles on section 1 here." }, "length_km1": { "label": "Section 1 length in kilometres", "type": "number", "description": "If and only if the route is in a country on the metric system, list the length in kilometres on section 1 here." }, "length_ref1": { "label": "Length reference for section 1", "type": "string", "description": "A reference for the given length for section 1." }, "length_notes1": { "label": "Length notes for section 1", "type": "string", "description": "Notes for the length for section 1." }, "direction_a1": { "label": "Direction A for section 1", "type": "string", "description": "The first direction for section 1, to override direction_a." }, "direction_b1": { "label": "Direction B for section 1", "type": "string", "description": "The second direction for section 1, to override direction_b." }, "terminus_a1": { "label": "Terminus A for section 1", "type": "string", "description": "The first terminus for section 1.", "aliases": [ "end_a1" ] }, "terminus_b1": { "label": "Terminus B for section 1", "type": "string", "description": "The second terminus for section 1.", "aliases": [ "end_b1" ] }, "junctions1": { "label": "Major junctions for section 1", "type": "string", "description": "A brief list of major junctions for section 1. In the US, do not use more than 10." }, "section2": { "label": "Header for section 2", "type": "string", "default": "Section 2", "description": "If the route is divided into sections, this is the header for section 2." }, "length_mi2": { "label": "Section 2 length in miles", "type": "number", "description": "If and only if the route is in a country on the imperial system, list the length in miles on section 2 here." }, "length_km2": { "label": "Section 2 length in kilometres", "type": "number", "description": "If and only if the route is in a country on the metric system, list the length in kilometres on section 2 here." }, "length_ref2": { "label": "Length reference for section 2", "type": "string", "description": "A reference for the given length for section 2." }, "length_notes2": { "label": "Length notes for section 2", "type": "string", "description": "Notes for the length for section 2." }, "direction_a2": { "label": "Direction A for section 2", "type": "string", "description": "The first direction for section 2, to override direction_a." }, "direction_b2": { "label": "Direction B for section 2", "type": "string", "description": "The second direction for section 2, to override direction_b." }, "terminus_a2": { "label": "Terminus A for section 2", "type": "string", "description": "The first terminus for section 2.", "aliases": [ "end_a2" ] }, "terminus_b2": { "label": "Terminus B for section 2", "type": "string", "description": "The second terminus for section 2.", "aliases": [ "end_b2" ] }, "junctions2": { "label": "Major junctions for section 2", "type": "string", "description": "A brief list of major junctions for section 2. In the US, do not use more than 10." }, "section3": { "label": "Header for section 3", "type": "string", "default": "Section 3", "description": "If the route is divided into sections, this is the header for section 3." }, "length_mi3": { "label": "Section 3 length in miles", "type": "number", "description": "If and only if the route is in a country on the imperial system, list the length in miles on section 3 here." }, "length_km3": { "label": "Section 3 length in kilometres", "type": "number", "description": "If and only if the route is in a country on the metric system, list the length in kilometres on section 3 here." }, "length_ref3": { "label": "Length reference for section 3", "type": "string", "description": "A reference for the given length for section 3." }, "length_notes3": { "label": "Length notes for section 3", "type": "string", "description": "Notes for the length for section 3." }, "direction_a3": { "label": "Direction A for section 3", "type": "string", "description": "The first direction for section 3, to override direction_a." }, "direction_b3": { "label": "Direction B for section 3", "type": "string", "description": "The second direction for section 3, to override direction_b." }, "terminus_a3": { "label": "Terminus A for section 3", "type": "string", "description": "The first terminus for section 3.", "aliases": [ "end_a3" ] }, "terminus_b3": { "label": "Terminus B for section 3", "type": "string", "description": "The second terminus for section 3.", "aliases": [ "end_b3" ] }, "junctions3": { "label": "Major junctions for section 3", "type": "string", "description": "A brief list of major junctions for section 3. In the US, do not use more than 10." }, "section4": { "label": "Header for section 4", "type": "string", "default": "Section 4", "description": "If the route is divided into sections, this is the header for section 4." }, "length_mi4": { "label": "Section 4 length in miles", "type": "number", "description": "If and only if the route is in a country on the imperial system, list the length in miles on section 4 here." }, "length_km4": { "label": "Section 4 length in kilometres", "type": "number", "description": "If and only if the route is in a country on the metric system, list the length in kilometres on section 4 here." }, "length_ref4": { "label": "Length reference for section 4", "type": "string", "description": "A reference for the given length for section 4." }, "length_notes4": { "label": "Length notes for section 4", "type": "string", "description": "Notes for the length for section 4." }, "direction_a4": { "label": "Direction A for section 4", "type": "string", "description": "The first direction for section 4, to override direction_a." }, "direction_b4": { "label": "Direction B for section 4", "type": "string", "description": "The second direction for section 4, to override direction_b." }, "terminus_a4": { "label": "Terminus A for section 4", "type": "string", "description": "The first terminus for section 4.", "aliases": [ "end_a4" ] }, "terminus_b4": { "label": "Terminus B for section 4", "type": "string", "description": "The second terminus for section 4.", "aliases": [ "end_b4" ] }, "junctions4": { "label": "Major junctions for section 4", "type": "string", "description": "A brief list of major junctions for section 4. In the US, do not use more than 10." }, "translation": { "label": "Translated title", "description": "A translation of the title, displayed as a subheading.", "type": "content" } }, "format": "block" } </templatedata> {{collapse bottom}} == Technical details == See [[Template:Infobox road/doc/tech|Infobox road/doc/tech]] for details on the inner workings of the template, including a list of [[Template:Infobox road/doc/tech#Tracking categories|tracking categories]]. == Tracking categories == * {{clc|Infobox road transclusion errors}} * {{clc|Infobox road maps for Wikidata migration}} * {{clc|Infobox road articles without Wikidata country}} * {{clc|Infobox road articles without Wikidata instance of}} * {{clc|Pages using infobox road with unknown parameters}} == Instances == * {{Category tree|Infobox road instances by country}} == See also == * {{tl|Infobox Australian road}}&nbsp;– A similar template that includes several additional parameters that are specific for roads in Australia. * {{tl|Infobox road small}}&nbsp;– Compact version of this template, used for [[special route]]s that are present on lists or parent route articles. * {{tl|Infobox road junction}}&nbsp;– An infobox for use on articles about road junctions and interchanges. * {{tl|Infobox street}}&nbsp;– An infobox for use on streets. <includeonly>{{When on basepage| <!------------------------------------------------------------------- Categories below here, please; interwikis to Wikidata. --------------------------------------------------------------------> [[Category:Highway infobox templates|*]] [[Category:Infobox templates using Wikidata]] [[Category:Templates with coordinates fields]] [[Category:Templates that add a tracking category|{{PAGENAME}}]] }}</includeonly> so5rw2pgt6z6es3nu6zpk9sng9hhjur Plantilla:TemplateStyles 10 25953 116666 2025-07-03T14:47:18Z Aristorkle 14080 redirect 116666 wikitext text/x-wiki #REDIRECT [[Template:Uses TemplateStyles]] tmjsm6iqvyczbrecmj7ndfqiz13fl0n Módulo:Infobox road/length 828 25954 116667 2025-07-03T14:47:55Z Aristorkle 14080 copied from enwiki 116667 Scribunto text/plain local p = {} local concat = table.concat local insert = table.insert local format = mw.ustring.format local frame = mw.getCurrentFrame() function p._length(num, args) local km = args["length_km" .. num] or '' local mi = args["length_mi" .. num] or '' local nmi = args["length_nmi" .. num] or '' local ref = args["length_ref" .. num] or '' local notes = args["length_notes" .. num] or '' if '' == mi and '' == km and '' == nmi then return nil -- none of these set, abandon end local first, unit, unit2, unit3 -- if nmi ~= '0' and mi == '' and km == '' then if tonumber (nmi) then first = nmi unit = "nmi" unit2 = "km mi" unit3 = "km mi" -- elseif mi ~= '0' and km == '' then elseif tonumber (mi) then first = mi unit = "mi" unit2 = "km" unit3 = "m" -- elseif km ~= '0' and mi == '' then elseif tonumber (km) then first = km unit = "km" unit2 = "mi" unit3 = "mi ft" else return nil -- something other than numbers so abandon end if not first then return nil end -- if mi == '' and km == '' and nmi == '' then -- return nil -- elseif notes ~= '' and first < '1' then if notes ~= '' and first < '1' then return frame:expandTemplate{ title = 'cvt', args = { first, unit, unit3, disp = "x", ref .. "&nbsp;("}} .. ")<div>" .. notes .. "</div>" elseif notes == '' and first < '1' then return frame:expandTemplate{ title = 'cvt', args = { first, unit, unit3, disp = "x", ref .. "&nbsp;("}} .. ")" elseif notes ~= '' then return frame:expandTemplate{ title = 'cvt', args = { first, unit, unit2, disp = "x", ref .. "&nbsp;("}} .. ")<div>" .. notes .. "</div>" else return frame:expandTemplate{ title = 'cvt', args = { first, unit, unit2, disp = "x", ref .. "&nbsp;("}} .. ")" end end function p.length(frame) local pframe = frame:getParent() local config = frame.args -- the arguments passed BY the template, in the wikitext of the template itself local args = pframe.args -- the arguments passed TO the template, in the wikitext that transcludes the template local num = config.num or '' return p._length(num, args) end return p 64hr1r7lf9w70q0sir5aig19rt9c35z Módulo:Infobox road/locations 828 25955 116668 2025-07-03T14:49:10Z Aristorkle 14080 copied from enwiki 116668 Scribunto text/plain local p = {} local format = mw.ustring.format local frame = mw.getCurrentFrame() local getArgs = require('Module:Arguments').getArgs local function country(args) local state = args.state or args.province local country local countryModule = mw.loadData("Module:Road data/countrymask") local country = args.country or countryModule[state] return country end local function state(args) local state = args.state or args.province local country = country(args) return frame:expandTemplate ({title='Country name', args = { country .. "-" .. state}}) end local function state2(args) local state = args.state2 or args.province2 local country = country(args) return frame:expandTemplate ({title='Country name', args = { country .. "-" .. state}}) end local function spain(args) local province = args.province or args.community local communities = { ["AL"] = "AN", ["CA"] = "AN", ["CO"] = "AN", ["GR"] = "AN", ["H"] = "AN", ["J"] = "AN", ["MA"] = "AN", ["SE"] = "AN", ["HU"] = "AR", ["TE"] = "AR", ["Z"] = "AR", ["O"] = "AS", ["S"] = "CB", ["AV"] = "CL", ["BU"] = "CL", ["LE"] = "CL", ["P"] = "CL", ["SA"] = "CL", ["SG"] = "CL", ["SO"] = "CL", ["VA"] = "CL", ["ZA"] = "CL", ["AB"] = "CM", ["CR"] = "CM", ["CU"] = "CM", ["GU"] = "CM", ["TO"] = "CM", ["GC"] = "CN", ["TF"] = "CN", ["B"] = "CT", ["GI"] = "CT", ["L"] = "CT", ["T"] = "CT", ["BA"] = "EX", ["CC"] = "EX", ["C"] = "GA", ["LU"] = "GA", ["OR"] = "GA", ["PO"] = "GA", ["PM"] = "IB", ["MU"] = "MC", ["M"] = "MD", ["NA"] = "NC", ["VI"] = "PV", ["BI"] = "PV", ["SS"] = "PV", ["LO"] = "RI", ["A"] = "VC", ["CS"] = "VC", ["V"] = "VC", } local comm = communities[province] local data = frame:expandTemplate ({title='Flagg', args = { "xx", frame:expandTemplate ({title='Country name', args = { "ESP-" .. comm}}) } }) return data end local function constituent(args) local loc = country(args) if loc == "GBR" then return nil else local labels = { ["ENG"] = "Constituent country", ["NIR"] = "Constituent country", ["SCT"] = "Constituent country", ["WLS"] = "Constituent country", ["NLD"] = "Constituent country", ["ABW"] = "Constituent country", ["CUW"] = "Constituent country", ["SXM"] = "Constituent country", ["GGY"] = "Crown dependency", ["IMN"] = "Crown dependency", ["JEY"] = "Crown dependency", ["AIA"] = "Overseas territory", ["BMU"] = "Overseas territory", ["IOT"] = "Overseas territory", ["VGB"] = "Overseas territory", ["CYM"] = "Overseas territory", ["FLK"] = "Overseas territory", ["GIB"] = "Overseas territory", ["MSR"] = "Overseas territory", ["PCN"] = "Overseas territory", ["SHN"] = "Overseas territory", ["SGS"] = "Overseas territory", ["TCA"] = "Overseas territory", } local label = labels[loc] local countryname = frame:expandTemplate ({title='Country name', args = { country(args)}}) local data = frame:expandTemplate ({title='Flagg', args = { "xx", countryname, nodata = 1 }}) return label, data end end local function location(args) local infobox_args = {} infobox_args['title'] = 'Location' infobox_args['bodystyle'] = 'display:inline-table;' infobox_args['child'] = 'yes' infobox_args['decat'] = 'yes' ------------- EUROPE & ASIA -------------- if country(args) == "EUR" or country(args) == "ASIA" then infobox_args['label1'] = 'Countries' infobox_args['data1'] = args.countries ------------- ÅLAND -------------- elseif country(args) == "ALA" then infobox_args['label1'] = 'Country' infobox_args['data1'] = "[[Finland]]" infobox_args['label2'] = 'Autonomous region' infobox_args['data2'] = "[[Åland]]" ------------- AUSTRALIA -------------- elseif country(args) == "AUS" then infobox_args['label1'] = 'Country' infobox_args['data1'] = "[[Australia]]" local function lga(args) local labels = { SA = "[[Local government areas of South Australia|LGA(s)]]", VIC = "[[Local government in Victoria|LGA(s)]]", NSW = "[[Local government areas of New South Wales|LGA(s)]]", QLD = "[[Local government areas of Queensland|LGA(s)]]", NT = "[[Local government areas of the Northern Territory|LGA(s)]]", WA = "[[Local government areas of Western Australia|LGA(s)]]", TAS = "[[Local government areas of Tasmania|LGA(s)]]", ACT = "District(s)" } local state = args.state or '' local label = labels[state] or "[[Local government in Australia|LGA(s)]]" return label, args.lga end local function locations(args) local labels = { highway = "Major settlements", ["rural road"] = "Major settlements", freeway = "Major suburbs", ["city highway"] = "Major suburbs", road = "Major suburbs", street = "Suburb" } local type = args.type or '' local label = labels[type] or "Primary<br>destinations" return label, args.locations end if args.state then if args.state == "NT" or args.state == "ACT" or args.state == "JBT" then infobox_args['label2'] = 'Territory' else infobox_args['label2'] = 'State' end infobox_args['data2'] = frame:expandTemplate ({title='Flagg', args = {"xx" , state(args), nodata = 1 }}) else infobox_args['label2'] = 'States' infobox_args['data2'] = args.states end infobox_args['label3'], infobox_args['data3'] = lga(args) infobox_args['label4'], infobox_args['data4'] = locations(args) ------------- BRAZIL -------------- elseif country(args) == "BRA" then infobox_args['label1'] = 'Country' infobox_args['data1'] = "[[Brazil]]" if args.state then if args.state == "DF" then infobox_args['label2'] = 'Federal district' else infobox_args['label2'] = 'State' end infobox_args['data2'] = frame:expandTemplate ({title='Flagg', args = {"xx" , state(args), nodata = 1 }}) else infobox_args['label2'] = 'States' infobox_args['data2'] = args.states end ------------- CANADA -------------- elseif country(args) == "CAN" then infobox_args['label1'] = 'Country' infobox_args['data1'] = "[[Canada]]" if args.province then if args.province == "YK" or args.province == "NT" or args.province == "NU" then infobox_args['label2'] = 'Territory' else infobox_args['label2'] = 'Province' end infobox_args['data2'] = frame:expandTemplate ({title='Flagg', args = {"xx" , state(args), nodata = 1 }}) else infobox_args['label2'] = 'Provinces' infobox_args['data2'] = args.provinces end if args.province == 'AB' then infobox_args['label3'] = "Specialized and rural municipalities" infobox_args['data3'] = args.rural_municipalities infobox_args['label4'] = "Special areas" infobox_args['data4'] = args.areas infobox_args['label5'] = "Improvement districts" infobox_args['data5'] = args.districts elseif args.province == 'BC' then infobox_args['label3'] = "Regional districts" infobox_args['data3'] = args.districts or args.rural_municipalities elseif args.province == 'MB' or args.province == 'SK' then infobox_args['label3'] = "Rural municipalities" infobox_args['data3'] = args.rural_municipalities elseif args.province == 'NB' or args.province == 'PE' then infobox_args['label3'] = "Counties" infobox_args['data3'] = args.counties infobox_args['label4'] = "Parishes" infobox_args['data4'] = args.parishes infobox_args['label5'] = "Communities" infobox_args['data5'] = args.communities elseif args.province == 'NS' then infobox_args['label3'] = "Counties" infobox_args['data3'] = args.counties elseif args.province == 'ON' then infobox_args['label3'] = "Municipalities" infobox_args['data3'] = args.rural_municipalities infobox_args['label4'] = "Counties" infobox_args['data4'] = args.counties infobox_args['label5'] = "Regions" infobox_args['data5'] = args.regions infobox_args['label6'] = "Districts" infobox_args['data6'] = args.districts infobox_args['label7'] = "Divisions" infobox_args['data7'] = args.divisions elseif args.province == 'QC' then infobox_args['label3'] = "Regional county municipalities" infobox_args['data3'] = args.rural_municipalities infobox_args['label4'] = "Equivalent territories" infobox_args['data4'] = args.territories elseif args.province == 'NT' or args.province == 'NU' then infobox_args['label3'] = "Regions" infobox_args['data3'] = args.regions end ------------- CHINA -------------- elseif country(args) == "CHN" or country(args) == "HKG" or country(args) == "MAC" then infobox_args['label1'] = 'Country' infobox_args['data1'] = "[[China]]" if country(args) == "HKG" then infobox_args['label2'] = 'Special administrative region' infobox_args['data2'] = "[[Hong Kong]]" infobox_args['label3'] = 'Districts' infobox_args['data3'] = args.districts elseif country(args) == "MAC" then infobox_args['label2'] = 'Special administrative region' infobox_args['data2'] = "[[Macau]]" else if args.province then infobox_args['label2'] = 'Province' infobox_args['data2'] = frame:expandTemplate ({title='Flagg', args = {"xx" , state(args), nodata = 1 }}) infobox_args['label3'] = 'Counties' infobox_args['data3'] = args.counties else infobox_args['label2'] = 'Provinces' infobox_args['data2'] = args.provinces infobox_args['label3'] = 'Autonomous regions' infobox_args['data3'] = args.regions end end ------------- FRANCE -------------- elseif country(args) == "FRA" or country(args) == "GUF" or country(args) == "GLP" or country(args) == "MTQ" or country(args) == "MYT" or country(args) == "REU" then infobox_args['label1'] = 'Country' infobox_args['data1'] = "[[France]]" if country(args) == "GUF" then infobox_args['label2'] = 'Overseas region' infobox_args['data2'] = "[[French Guiana]]" infobox_args['label3'] = 'Department' infobox_args['data3'] = "[[Guyane]]" elseif country(args) == "GLP" then infobox_args['label2'] = 'Overseas region and department' infobox_args['data2'] = "[[Guadeloupe]]" elseif country(args) == "MTQ" then infobox_args['label2'] = 'Overseas region and department' infobox_args['data2'] = "[[Martinique]]" elseif country(args) == "MYT" then infobox_args['label2'] = 'Overseas region and department' infobox_args['data2'] = "[[Mayotte]]" elseif country(args) == "REU" then infobox_args['label2'] = 'Overseas region' infobox_args['data2'] = "[[Réunion]]" infobox_args['label3'] = 'Department' infobox_args['data3'] = "[[La Réunion]]" else infobox_args['label2'] = 'Regions' infobox_args['data2'] = args.regions infobox_args['label3'] = 'Departments' infobox_args['data3'] = args.departments end ------------ GEORGIA ------------- elseif country(args) == "GEO" then infobox_args['data1'] = "[[Georgia (country)|Georgia]]" ------------- INDIA -------------- elseif country(args) == "IND" then infobox_args['label1'] = 'Country' infobox_args['data1'] = "[[India]]" infobox_args['label4'] = 'Districts' infobox_args['data4'] = args.districts if args.state then if args.state == "AN" or args.state == 'CH' or args.state == 'DH' or args.state == 'DL' or args.state == 'JK' or args.state == 'LA' or args.state == 'LD' or args.state == 'PY' then infobox_args['label2'] = 'Union territory' else infobox_args['label2'] = 'State' end infobox_args['data2'] = frame:expandTemplate ({title='Flagg', args = {"xx" , state(args), nodata = 1 }}) else infobox_args['label2'] = 'States' infobox_args['data2'] = args.states infobox_args['label3'] = 'Union territories' infobox_args['data3'] = args.territories end ------------- MEXICO -------------- elseif country(args) == "MEX" then infobox_args['label1'] = 'Country' infobox_args['data1'] = "[[Mexico]]" if args.state then if args.state == "CMX" then infobox_args['label2'] = 'Autonomous city' else infobox_args['label2'] = 'State' end if args.state == "CHH" then infobox_args['data2'] = '[[Chihuahua (state)|Chihuahua]]' elseif args.state == "HID" then infobox_args['data2'] = '[[Hidalgo (state)|Hidalgo]]' elseif args.state == "MEX" then infobox_args['data2'] = '[[State of Mexico|México]]' else infobox_args['data2'] = frame:expandTemplate ({title='Flagg', args = {"xx" , state(args), nodata = 1 }}) end infobox_args['label3'] = 'Municipalities' infobox_args['data3'] = args.counties or args.municipalities else infobox_args['label2'] = 'States' infobox_args['data2'] = args.states infobox_args['label3'] = 'Municipalities' infobox_args['data3'] = args.counties or args.municipalities end ------------- NETHERLANDS -------------- elseif country(args) == "NLD" or country(args) == "ABW" or country(args) == "CUW" or country(args) == "SXM"then infobox_args['label1'] = 'Country' infobox_args['data1'] = "[[Kingdom of the Netherlands]]" infobox_args['label2'], infobox_args['data2'] = constituent(args) if country(args) == "NLD" then infobox_args['label3'] = 'Provinces' infobox_args['data3'] = args.provinces end ------------- RUSSIA -------------- elseif country(args) == "RUS" then infobox_args['label1'] = 'Country' infobox_args['data1'] = "[[Russia]]" infobox_args['label2'] = 'Oblasts' infobox_args['data2'] = args.oblasts infobox_args['label3'] = 'Republics' infobox_args['data3'] = args.republics infobox_args['label4'] = 'Autonomous okrugs' infobox_args['data4'] = args.okrugs infobox_args['label5'] = 'Krais' infobox_args['data5'] = args.krais infobox_args['label6'] = 'Federal cities' infobox_args['data6'] = args.federal_cities ------------- SPAIN -------------- elseif country(args) == "ESP" then infobox_args['label1'] = 'Country' infobox_args['data1'] = "[[Spain]]" local province = args.province if province and province ~= '' then infobox_args['label2'] = 'Autonomous<br>community' infobox_args['data2'] = spain(args) if province == "O" or province == "S" or province == "PM" or province == "LO" or province == "M" or province == "MU" or province == "NA" then return nil else infobox_args['label3'] = 'Province' infobox_args['data3'] = frame:expandTemplate ({title='Flagg', args = {"xx" , state(args), nodata = 1 }}) end elseif args.community then infobox_args['label2'] = 'Autonomous<br>community' infobox_args['data2'] = frame:expandTemplate ({title='Flagg', args = {"xx" , frame:expandTemplate ({title='country name', args = {"ESP-" .. args.community} }) } }) infobox_args['label3'] = 'Provinces' infobox_args['data3'] = args.provinces else infobox_args['label2'] = 'Autonomous<br>communities' infobox_args['data2'] = args.communities infobox_args['label3'] = 'Provinces' infobox_args['data3'] = args.provinces end ------------- UNITED KINGDOM -------------- elseif country(args) == "GBR" or country(args) == "ENG" or country(args) == "NIR" or country(args) == "SCT" or country(args) == "WLS" or country(args) == "GGY" or country(args) == "IMN" or country(args) == "JEY" or country(args) == "AIA" or country(args) == "BMU" or country(args) == "IOT" or country(args) == "VGB" or country(args) == "CYM" or country(args) == "FLK" or country(args) == "GIB" or country(args) == "MSR" or country(args) == "PCN" or country(args) == "SHN" or country(args) == "SGS" or country(args) == "TCA" then infobox_args['label1'] = 'Country' infobox_args['data1'] = "[[United Kingdom]]" infobox_args['label2'], infobox_args['data2'] = constituent(args) if country(args) ~= "ENG" then infobox_args['label5'] = 'Counties' infobox_args['data5'] = args.counties end if country(args) == "ENG" then infobox_args['label3'] = 'Administrative areas' infobox_args['data3'] = args.areas infobox_args['label4'] = 'Counties' infobox_args['data4'] = args.counties infobox_args['label5'] = 'Boroughs' infobox_args['data5'] = args.boroughs elseif country(args) == "NIR" then infobox_args['label3'] = 'Districts' infobox_args['data3'] = args.districts elseif country(args) == "SCT" then infobox_args['label3'] = 'Council areas' infobox_args['data3'] = args.areas elseif country(args) == "WLS" then infobox_args['label3'] = 'Counties' infobox_args['data3'] = args.counties infobox_args['label4'] = 'County boroughs' infobox_args['data4'] = args.boroughs elseif country(args) == "GGY" or country(args) == "JEY" or country(args) == "BMU" or country(args) == "MSR" then infobox_args['label3'] = 'Parishes' infobox_args['data3'] = args.parishes elseif country(args) == "IMN" then infobox_args['label3'] = 'Sheadings' infobox_args['data3'] = args.sheadings elseif country(args) == "AIA" or country(args) == "VGB" or country(args) == "CYM" or country(args) == "TCA" then infobox_args['label3'] = 'Districts' infobox_args['data3'] = args.districts elseif country(args) == "SHN" then infobox_args['label3'] = 'Island' infobox_args['data3'] = args.island end ------------- UNITED STATES -------------- elseif country(args) == "USA" then infobox_args['label1'] = 'Country' infobox_args['data1'] = "[[United States]]" local function county(args) local state = args.state local stateName = frame:expandTemplate ({title='Country name', args = { "USA-" .. state}}) local country = country(args) local countyName = args.county or args.parish or args.borough or args.municipality local county if state == 'LA' then county = 'Parish' elseif state == 'AK' then county = 'Borough' elseif state == 'PR' then county = 'Municipality' else county = 'County' end return string.format("[[%s %s, %s|%s]]", countyName, county, stateName, countyName) end if args.state2 then infobox_args['label2'] = 'States' infobox_args['data2'] = frame:expandTemplate ({title='Flagg', args = {"xx" , state(args) }}) .. ", " .. frame:expandTemplate ({title='Flagg', args = {"xx" , state2(args) }}) elseif args.state then if args.state == "AS" or args.state == "GU" or args.state == "MP" or args.state == "PR" or args.state == "VI" then infobox_args['label2'] = 'Territory' elseif args.state == "DC" then infobox_args['label2'] = 'Federal district' else infobox_args['label2'] = 'State' end if args.state == "GA" then infobox_args['data2'] = '[[Georgia (U.S. state)|Georgia]]' elseif args.state == "WA" then infobox_args['data2'] = '[[Washington (state)|Washington]]' elseif args.state == "NY" then infobox_args['data2'] = '[[New York (state)|New York]]' else infobox_args['data2'] = frame:expandTemplate ({title='Flagg', args = {"xx" , state(args), nodata = 1 }}) end else infobox_args['label2'] = 'States' infobox_args['data2'] = args.states end if args.county then infobox_args['label3'] = 'County' infobox_args['data3'] = county(args) else infobox_args['label3'] = 'Counties' infobox_args['data3'] = args.counties end if args.parish then infobox_args['label4'] = 'Parish' infobox_args['data4'] = county(args) else infobox_args['label4'] = 'Parishes' infobox_args['data4'] = args.parishes end if args.borough then infobox_args['label5'] = 'Borough' infobox_args['data5'] = county(args) else infobox_args['label5'] = 'Boroughs' infobox_args['data5'] = args.boroughs end if args.municipality then infobox_args['label6'] = 'Municipality' infobox_args['data6'] = county(args) else infobox_args['label6'] = 'Municipalities' infobox_args['data6'] = args.municipalities end if args.indep_city then infobox_args['label6'] = 'Independent city' infobox_args['data6'] = args.indep_city else infobox_args['label7'] = 'Independent cities' infobox_args['data7'] = args.indep_cities end else ------------- ALL OTHER COUNTRIES -------------- if country(args) ~= nil then local countryname = frame:expandTemplate ({title='Country name', args = { country(args)}}) infobox_args['label1'] = 'Country' infobox_args['data1'] = frame:expandTemplate ({title='Flagg', args = { "xx", countryname, nodata = 1 }}) else infobox_args['label1'] = 'Countries' infobox_args['data1'] = args.countries end infobox_args['label2'] = 'Island' infobox_args['data2'] = args.island infobox_args['label3'] = 'Communities' infobox_args['data3'] = args.communities infobox_args['label4'] = 'Regions' infobox_args['data4'] = args.regions infobox_args['label5'] = 'Provinces' infobox_args['data5'] = args.provinces infobox_args['label6'] = 'States' infobox_args['data6'] = args.states infobox_args['label7'] = 'Governorates' infobox_args['data7'] = args.governorates infobox_args['label8'] = 'Counties' infobox_args['data8'] = args.counties infobox_args['label9'] = 'Departments' infobox_args['data9'] = args.departments infobox_args['label10'] = 'Cantons' infobox_args['data10'] = args.cantons infobox_args['label11'] = 'Prefectures' infobox_args['data11'] = args.prefectures infobox_args['label12'] = 'Divisions' infobox_args['data12'] = args.divisions infobox_args['label13'] = 'Oblasts' infobox_args['data13'] = args.oblasts infobox_args['label14'] = 'Districts' infobox_args['data14'] = args.districts infobox_args['label15'] = 'Parishes' infobox_args['data15'] = args.parishes infobox_args['label16'] = 'Communes' infobox_args['data16'] = args.communes infobox_args['label17'] = 'Territories' infobox_args['data17'] = args.territories infobox_args['label18'] = args.label1 infobox_args['data18'] = args.location1 infobox_args['label19'] = args.label2 infobox_args['data19'] = args.location2 infobox_args['label20'] = args.label3 infobox_args['data20'] = args.location3 infobox_args['label21'] = args.label4 infobox_args['data21'] = args.location4 infobox_args['label22'] = args.label5 infobox_args['data22'] = args.location5 infobox_args['label23'] = 'Subregions' infobox_args['data23'] = args.subregions infobox_args['label24'] = 'Subcounties' infobox_args['data24'] = args.subcounties infobox_args['label25'] = 'Subprefectures' infobox_args['data25'] = args.subprefectures end if country(args) ~= "USA" then infobox_args['label26'] = 'Municipalities' infobox_args['data26'] = args.municipalities infobox_args['label27'] = 'Major cities' infobox_args['data27'] = args.cities infobox_args['label28'] = 'Towns' infobox_args['data28'] = args.towns infobox_args['label29'] = 'Villages' infobox_args['data29'] = args.villages if country(args) == "GBR" or country(args) == "ENG" or country(args) == "NIR" or country(args) == "SCT" or country(args) == "WLS" or country(args) == "GGY" or country(args) == "IMN" or country(args) == "JEY" or country(args) == "AIA" or country(args) == "BMU" or country(args) == "IOT" or country(args) == "VGB" or country(args) == "CYM" or country(args) == "FLK" or country(args) == "GIB" or country(args) == "MSR" or country(args) == "PCN" or country(args) == "SHN" or country(args) == "SGS" or country(args) == "TCA" then infobox_args['label30'] = '[[Primary status|Primary<br>destinations]]' infobox_args['data30'] = args.destinations else infobox_args['label30'] = 'Primary<br>destinations' infobox_args['data30'] = args.destinations end end return frame:expandTemplate ({title='Infobox', args = infobox_args}) end local function params(args) if country(args) or args.areas or args.borough or args.boroughs or args.cantons or args.cities or args.communes or args.communities or args.counties or args.countries or args.county or args.departments or args.destinations or args.districts or args.divisions or args.federal_cities or args.governorates or args.indep_city or args.indep_cities or args.island or args.krais or args.label1 or args.label2 or args.label3 or args.label4 or args.label5 or args.lga or args.location1 or args.location2 or args.location3 or args.location4 or args.location5 or args.locations or args.municipalities or args.municipality or args.oblasts or args.okrugs or args.parish or args.parishes or args.prefectures or args.provinces or args.regions or args.republics or args.rural_municipalities or args.sheadings or args.states or args.subcounties or args.subprefectures or args.subregions or args.territories or args.towns or args.villages then return true else return false end end function p.location(frame) local args = getArgs(frame) if params(args) == false then return nil else return location(args) end end return p bf7y5djm83ccfujslc45hfilb9r1fqn Módulo:Infobox road/map 828 25956 116669 2025-07-03T14:50:14Z Aristorkle 14080 copied from enwiki 116669 Scribunto text/plain local p = {} local format = mw.ustring.format local mapsizes = { DEU = "200", } function p._map(args) local map = args.map or '' if args.map_custom == "yes" then return format('<div style="white-space:nowrap;">%s</div>', map) end if map == '' then local entity = mw.wikibase.getEntityObject() or {} local claims = entity.claims or {} local mapProp = claims.P15 if not mapProp or mapProp[1].mainsnak.snaktype ~= 'value' then return "" end map = mapProp[1].mainsnak.datavalue.value end local mapsize = mapsizes[args.country] or '300' local alt = args.map_alt or '' return format("[[File:%s|%spx|alt=%s]]", map, mapsize, alt) end function p.map(frame) local argsModule = require("Module:Arguments") local args = argsModule.getArgs(frame) local state = args.state or args.province if not args.country then local countryMask = mw.loadData("Module:Road data/countrymask") args.country = countryMask[state] end return p._map(args) end return p 0phk2u8hkktlpdjmb4q0hoza366o1ox Módulo:Infobox road/sections 828 25957 116670 2025-07-03T14:50:58Z Aristorkle 14080 copied from enwiki 116670 Scribunto text/plain local p = {} local getArgs = require('Module:Arguments').getArgs local lengthModule = require("Module:Infobox road/length") local parserModule = require("Module:Road data/parser") local parser = parserModule.parser local frame = mw.getCurrentFrame() local function country(args) local state = args.state or args.province local country local countryModule = mw.loadData("Module:Road data/countrymask") local country = args.country or countryModule[state] return country end -- HEADER COLORS function p.headerStyle(args) local deleted = args.decommissioned or args.deleted local uc = args.header_type == "under construction" or args.header_type == "const" or args.header_type == "uc" local minor = args.header_type == "minor" local hist = args.header_type == "hist" or args.header_type == "historic" or args.header_type == "historical" or args.header_type == "scenic" local color = parser(args, 'color') if freeway then return "header-MUTCDblue" elseif uc then return "header-uc" elseif minor then return "header-minor" elseif deleted and header == 'hist' or deleted and color == 'hist' then return "header-deleted-hist" elseif deleted then return "header-deleted" elseif hist then return "header-hist" elseif color then return "header-" .. color elseif args.state or args.province or args.country then local country = country(args) return "header-" .. country or "header-default" else return "header-default" end end function p._section(args) if args.section1 or args.length_km1 or args.length_mi1 or args.length_notes1 or args.direction_a1 or args.terminus_a1 or args.junction1 or args.junctions1 or args.direction_b1 or args.terminus_b1 then local infobox_args = { ['child'] = "yes", ['decat'] = "yes", ['headerclass'] = p.headerStyle(args) } local i = 1 while (1) do local num = i local j = ((i - 1) * 5) + 1 local headern = "header" .. j local lengthLabeln = "label" .. (j + 1) local lengthDatan = "data" .. (j + 1) local directionAn = "label" .. (j + 2) local terminusAn = "data" .. (j + 2) local jctClassn = "class" .. (j + 3) local jctLabeln = "label" .. (j + 3) local jctDatan = "data" .. (j + 3) local directionBn = "label" .. (j + 4) local terminusBn = "data" .. (j + 4) if args['section' .. i] or args["length_km" .. i] or args["length_mi" .. i] or args["length_notes" .. i] or args["direction_a" .. i] or args["terminus_a" .. i] or args["junction" .. i] or args["junctions" .. i] or args["direction_b" .. i] or args["terminus_b" .. i] then if i == 1 then infobox_args['title'] = args['section' .. i] or "Section " .. i else infobox_args[headern] = args['section' .. i] or "Section " .. i end end infobox_args[lengthLabeln] = "Length" infobox_args[lengthDatan] = lengthModule._length(num, args) local dir_a = args["direction_a" .. i] or args.direction_a or '' if dir_a ~= '' then infobox_args[directionAn] = dir_a .. "&nbsp;end" else infobox_args[directionAn] = "From" end infobox_args[terminusAn] = args["terminus_a" .. i] infobox_args[jctClassn] = "plainlist" infobox_args[jctLabeln] = "Major intersections" infobox_args[jctDatan] = args["junction" .. i] or args["junctions" .. i] local dir_b = args["direction_b" .. i] or args.direction_b or '' if dir_b ~= '' then infobox_args[directionBn] = dir_b .. "&nbsp;end" else infobox_args[directionBn] = "To" end infobox_args[terminusBn] = args["terminus_b" .. i] if i == 25 then break else i = i + 1 end end return frame:expandTemplate ({title='Infobox', args = infobox_args}) else return nil end end function p.section(frame) args = getArgs(frame) return p._section(args) end local function loop(args) local ring_road = args.ring_road or '' if ring_road ~= '' then return "[[Ring road]] around " .. ring_road end local beltway_city = args.beltway_city or '' if beltway_city ~= '' then return "[[Beltway]] around " .. beltway_city end local orbital = args.orbital or '' if orbital ~= '' then return "[[Orbital road|Orbital]] around " .. orbital end local loop = args.loop or '' if loop ~= '' then return "[[Loop road|Loop]] around " .. loop end local tloop = args.tloop or '' if tloop == 'none' then return "Tourist loop" elseif tloop ~= '' then return "Tourist loop around " .. tloop end return nil end function p._main(args) if args.terminus_a or args.junction or args.junctions or args.terminus_b or args.ring_road or args.beltway_city or args.orbital or args.loop or args.tloop then local infobox_args = { ['child'] = "yes", ['decat'] = "yes", } infobox_args['title'] = args.section0 or "Major junctions" infobox_args['data1'] = loop(args) local dir_a = args.direction_a or '' if dir_a ~= '' then infobox_args['label2'] = dir_a .. "&nbsp;end" else infobox_args['label2'] = "From" end infobox_args['data2'] = args.terminus_a infobox_args['class3'] = "plainlist" infobox_args['label3'] = "<span style='display:none;'>Major intersections</span>" infobox_args['data3'] = args.junction or args.junctions local dir_b = args.direction_b or '' if dir_b ~= '' then infobox_args['label4'] = dir_b .. "&nbsp;end" else infobox_args['label4'] = "To" end infobox_args['data4'] = args.terminus_b return frame:expandTemplate ({title='Infobox', args = infobox_args}) else return nil end end function p.main(frame) args = getArgs(frame) return p._main(args) end return p dn3r6ckaf9gvxln2767uktx5r563eod Módulo:Infobox road/browselinks 828 25958 116671 2025-07-03T14:51:35Z Aristorkle 14080 copied from enwiki 116671 Scribunto text/plain local p = {} local getArgs = require('Module:Arguments').getArgs local util = require("Module:Road data/util") local yesno = require('Module:Yesno') local routeModule = require("Module:Infobox road/route") local parserModule = require("Module:Road data/parser") local parser = parserModule.parser local format = mw.ustring.format local frame = mw.getCurrentFrame() local function country(args) local state = args.state or args.province local country local countryModule = mw.loadData("Module:Road data/countrymask") local country = args.country or countryModule[state] return country end local function the(args) if country(args) == "ALA" or country(args) == "BHS" or country(args) == "CAF" or country(args) == "COG" or country(args) == "COD" or country(args) == "COM" or country(args) == "CZE" or country(args) == "DOM" or country(args) == "FSM" or country(args) == "GMB" or country(args) == "IMN" or country(args) == "MDV" or country(args) == "MHL" or country(args) == "NLD" or country(args) == "PHL" or country(args) == "SLB" or country(args) == "ARE" or country(args) == "GBR" or country(args) == "USA" then return 'the' else return '' end end local function africa(args) return "*'''[[Trans-African Highway network]]'''" end local function asia(args) return "*'''[[Asian Highway Network]]'''" end local function europe(args) if args.type == "Pan" then return "*'''[[Pan-European corridors]]'''" else return "*'''[[International E-road network]]'''\n\n*[[List of A Class E-roads|A Class]]\n*[[List of B Class E-roads|B Class]]" end end local function browselinks(args) local ISO = require('Module:ISO 3166') local name = ISO.name({country(args)}) if country(args) == '' or country(args) == 'YUG' or country(args) == nil then return nil elseif country(args) == 'ASIA' then return asia(args) elseif country(args) == 'EUR' then return europe(args) elseif country(args) == 'TAH' then return africa(args) elseif country(args) == 'ARE' then return string.format("*'''[[Transport in %s %s]]'''\n\n*[[List of roads in Dubai|Roads in Dubai]]", the(args), name) elseif country(args) == 'AUS' then local state = args.state or '' local stateName = ISO.name({"AUS-" .. state}) local links = "*'''[[Highways in Australia]]'''\n\n*[[National Highway (Australia)|National Highway]]\n*[[Freeways in Australia]]" if state == 'ACT' then return links .. "\n\n'''[[Road infrastructure in Canberra]]'''" elseif state == 'NSW' then return links .. "\n\n'''[[Highways in New South Wales]]'''" elseif state ~= '' then return string.format("%s \n\n'''[[List of highways in %s|Highways in %s]]'''", links, stateName, stateName) else return links end elseif country(args) == 'AUT' then return "*'''Highways of Austria'''\n\n*[[Autobahns of Austria|Autobahns]]\n*[[Autobahns of Austria#Schnellstraßen|Expressways]]\n*[[Landesstraße|State Roads]]" elseif country(args) == 'BEL' then return "*'''Highways of Belgium'''\n\n*[[List of motorways in Belgium|Motorways]]\n*[[List of National Roads in Belgium|National Roads]]" elseif country(args) == 'BOL' then return "*'''Highways of Bolivia'''\n\n*[[List of National Roads in Bolivia|National Roads]]" elseif country(args) == 'BRA' then local state = args.state or '' local stateName = ISO.name({"BRA-" .. state}) local links = "*'''[[List of highways in Brazil|Highways in Brazil]]'''\n\n*[[List of federal highways in Brazil|Federal]]" if state == 'RS' or state == 'SP' or state == 'MG' then return string.format("%s \n\n*[[List of state highways in %s|%s State Highways]]", links, stateName, stateName) else return links end elseif country(args) == 'BRN' then return "*'''[[Brunei National Roads System]]'''" elseif country(args) == 'CAN' then local province = args.province or '' local stateName = ISO.name({"CAN-" .. province}) local TCH if args.type == 'TCH' and province == '' then TCH = "*'''[[Trans-Canada Highway]]'''\n\n*[[National Highway System (Canada)|National Highway System]]" elseif args.type == 'TCH' and province ~= '' then TCH = "*'''[[Trans-Canada Highway]]'''" else TCH = '' end local provinces if province == '' then provinces = '' elseif province == 'AB' then provinces = "'''[[Alberta Provincial Highway Network]]'''\n\n*[[List of Alberta provincial highways|List]]\n*[[List of former Alberta provincial highways|Former]]" elseif province == 'NT' then provinces = "'''[[List of Northwest Territories highways|Northwest Territories highways]]'''" elseif province == 'YT' or province == 'YK' then provinces = "'''[[List of Yukon territorial highways|Territorial highways in Yukon]]'''" elseif province == 'NU' then provinces = "'''[[Highways in Nunavut]]'''" elseif province == 'BC' then provinces = "'''[[List of British Columbia provincial highways|British Columbia provincial highways]]'''" elseif province == 'NL' then provinces = "'''[[List of Newfoundland and Labrador highways|Highways in Newfoundland and Labrador]]'''" elseif province == 'QC' then provinces = "'''[[Highways in Quebec|Quebec provincial highways]]'''" elseif province == 'ON' then if args.type == 'Fwy' or args.type == 'Hwy' or args.type == 'ON' or args.type == 'ON 1960' or args.type == 'Secondary' or args.type == 'Sec' or args.type == 'TCH' then provinces = "'''[[Ontario Provincial Highway Network|Ontario provincial highways]]'''" elseif args.type == 'CR' or args.type == 'DR' or args.type == 'MR' or args.type == 'RR' then provinces = "'''[[List of county roads in Ontario|County roads in Ontario]]'''" elseif args.type == 'Parkway' then provinces = "'''Parkways of the Great Lakes'''" elseif args.type == 'Expressway' then provinces = "'''[[List of controlled-access highways in Ontario#Municipal_expressways|Ontario municipal expressways]]'''" elseif args.type == 'Toronto' then provinces = "'''[[Lists of roads in Toronto|Toronto municipal expressways]]'''" elseif args.type == 'NCC' then provinces = "'''[[National Capital Commission#Ottawa_parkways|NCC parkways in Ottawa]]'''" else provinces = "'''[[Roads in Ontario]]'''" end else provinces = string.format("'''[[List of %s provincial highways|Provincial highways in %s]]'''", stateName, stateName) end local second if province == 'YT' or province == 'YK' then second = "[[Miscellaneous Yukon roads|Miscellaneous]]" elseif province == 'MB' then second = "[[List of Winnipeg City Routes|Winnipeg City Routes]]" elseif province == 'NB' then second = "[[List of former New Brunswick provincial highways|Former routes]]" elseif province == 'NS' then second = "[[100-series highways (Nova Scotia)|100-series]]" elseif province == 'QC' then second = "[[Autoroutes of Quebec|Autoroutes]]\n*[[List of Quebec provincial highways|List]]\n*[[List of former Quebec provincial highways|Former]]" elseif province == 'ON' then if args.type == 'Fwy' or args.type == 'Hwy' or args.type == 'ON' or args.type == 'ON 1960' or args.type == 'Secondary' or args.type == 'Sec' or args.type == 'TCH' then second = "[[List of Ontario provincial highways|Current]]\n*[[List of former Ontario provincial highways|Former]]\n*[[400-series highways|400-series]]" elseif args.type == 'Parkway' then second = "[[Long Sault Parkway|Long Sault]]\n*[[Niagara Parkway|Niagara]]\n*[[St. Clair Parkway|St. Clair]]\n*[[Thousand Islands Parkway|1000 Islands]]\n\n*'''[[Roads in Ontario]]'''" else second = '' end else second = '' end return string.format("%s\n\n*%s\n\n*%s", TCH, provinces, second) elseif country(args) == 'CHE' then return "*'''[[Transport in Switzerland]]'''\n\n*[[Motorways of Switzerland|Motorways]]" elseif country(args) == 'CHN' then local province = args.province or '' local stateName = ISO.name({"CHN-" .. province}) local links if args.type == "Ex" or args.type == "Expwy" then links = "*'''[[Expressways of China|National Trunk Highway System]]'''\n\n*[[List of primary NTHS Expressways|Primary]]\n*[[List of auxiliary NTHS Expressways|Auxiliary]]\n\n*[[China National Highways|National Highways]]\n*[[Transport in China]]" elseif args.type == "G" then links = "*'''[[Expressways of China|National Trunk Highway System]]'''\n\n*[[List of primary NTHS Expressways|Primary]]\n*[[List of auxiliary NTHS Expressways|Auxiliary]]" else links = "*'''[[Transport in China]]'''" end if province == 'BJ' or province == 'SH' or province == 'JS' or province == 'ZJ' or province == 'HA' or province == 'GD' then return string.format("%s \n\n*'''[[Expressways of %s]]'''", links, stateName) else return links end elseif country(args) == 'CRI' then return "*'''[[National Road Network of Costa Rica]]'''" elseif country(args) == 'CYP' then return "*'''[[Motorways and roads in Cyprus]]'''" elseif country(args) == 'DEU' then if args.type == "E" then return europe(args) else return "*'''Roads in Germany'''\n\n*[[Autobahn]]s\n**[[List of autobahns in Germany|List]]\n*[[Bundesstraße|Federal]]\n**[[List of federal highways in Germany|List]]\n\n*[[Landesstraße|State]]\n*[[List of E-roads in Germany|E-roads]]" end elseif country(args) == 'ESP' then local province = args.province or '' local stateName = ISO.name({"ESP-" .. province}) local links if args.type == "E" then links = europe(args) else links = "*'''[[Highways in Spain]]'''\n\n*[[List of autopistas and autovías in Spain|''Autopistas'' and ''autovías'']]\n*[[List of national roads in Spain|National Roads]]" end local community if province ~= '' then if province == 'B' or province == 'GI' or province == 'L' or province == 'T' then community = "'''[[List of primary highways in Catalonia|Primary Highways in Catalonia]]'''" elseif province == 'GC' or province == 'TF' then community = "'''[[Transport in the Canary Islands]]'''" elseif province == 'ML' then community = "'''[[Transport in Melilla]]'''" elseif province == 'M' or province == 'MD' then community = "'''[[Transport_in_Madrid#Road|Transport in the Community of Madrid]]'''" else community = '' end else community = '' end return string.format("%s\n\n*%s", links, community) elseif country(args) == 'FIN' then if args.type == "E" then return europe(args) else return "*'''[[Highways in Finland]]'''" end elseif country(args) == 'FRA' then if args.type == "E" then return europe(args) else return "*'''Roads in France'''\n\n*[[Autoroutes of France|''Autoroutes'']]\n*[[Route nationale|''Routes nationales'']]" end elseif country(args) == 'GBR' or country(args) == 'ENG' or country(args) == 'SCT' or country(args) == 'WLS' then if args.type == "Roman" then return "*'''[[Roman roads in Britannia]]'''" else return "*'''[[Roads in the United Kingdom]]'''\n\n*[[List_of_motorways_in_the_United_Kingdom|Motorways]]\n*[[List of roads zones in Great Britain|A and B road zones]]" end elseif country(args) == 'GEO' then return "*'''Roads in Georgia'''\n\n*[[List of roads in Georgia (country)#Roads of international importance|International Routes]]\n*[[List of roads in Georgia (country)#Roads of domestic importance|National Routes]]" elseif country(args) == 'GHA' then return "*'''[[Ghana Road Network]]'''" elseif country(args) == 'GIB' then return "*'''[[Streets in Gibraltar]]'''" elseif country(args) == 'GRC' then return "*'''Highways in Greece'''\n\n*[[Motorways in Greece|Motorways]]\n*[[National Roads in Greece|National Roads]]" elseif country(args) == 'HKG' then return "*'''[[Transport in Hong Kong]]'''\n\n*[[Hong Kong Strategic Route and Exit Number System|Routes]]\n*[[List of streets and roads in Hong Kong|Roads and Streets]]" elseif country(args) == 'HUN' then return "*'''Roads in Hungary'''\n\n*[[Highways in Hungary|Highways]]\n*[[Roads in Hungary#Main roads|Main roads]]\n*[[Roads in Hungary#Local roads|Local roads]]" elseif country(args) == 'IND' then local state = args.state or '' local stateName = ISO.name({"IND-" .. state}) local links = "*'''[[Roads in India]]'''\n\n*[[Expressways of India|Expressways]]\n*[[National highways of India|National]]\n*[[State highways in India|State]]\n*[[Asian Highway Network|Asian]]" if state ~= '' then return string.format("%s \n\n'''[[List of state highways in %s|State Highways in %s]]'''", links, stateName, stateName) else return links end elseif country(args) == 'IRL' then return "*'''[[Roads in Ireland]]'''\n\n*[[Motorways in the Republic of Ireland|Motorways]]\n*[[National primary road|Primary]]\n*[[National secondary road|Secondary]]\n*[[Regional road (Ireland)|Regional]]" elseif country(args) == 'IRN' then return "*'''[[List of highways in Iran|Highways in Iran]]'''\n\n*[[Freeways in Iran|Freeways]]" elseif country(args) == 'ISR' then return "*'''[[Roads in Israel]]'''\n\n*[[List of highways in Israel|Highways]]" elseif country(args) == 'ITA' then return "*'''[[Roads in Italy]]'''\n\n*[[Autostrade of Italy|''Autostrade'']]\n*[[State highway (Italy)|State]]\n*[[Regional road (Italy)|Regional]]\n*[[Provincial road (Italy)|Provincial]]\n*[[Municipal road (Italy)|Municipal]]" elseif country(args) == 'JPN' then return "*'''[[National highways of Japan]]'''\n\n*[[Expressways of Japan]]" elseif country(args) == 'KOR' then return "*'''[[Highway systems of South Korea]]'''\n\n*[[Expressways in South Korea|Expressways]]\n*[[National highways of South Korea|National]]\n*[[Local highways of South Korea|Local]]" elseif country(args) == 'KOS' then -- this is not an official ISO code return "*'''[[Roads in Kosovo]]'''" elseif country(args) == 'LKA' then return "*'''Roads in Sri Lanka'''\n\n*[[Expressways of Sri Lanka|Expressways]]\n*[[List of A-Grade highways in Sri Lanka|A-Grade]]\n*[[List of B-Grade highways in Sri Lanka|B-Grade]]" elseif country(args) == 'LUX' then return "*'''[[List of motorways in Luxembourg|Motorways in Luxembourg]]'''" elseif country(args) == 'LVA' then return "*'''[[List of National Roads in Latvia|National Roads in Latvia]]'''" elseif country(args) == 'MEX' then local state = args.state or '' local stateName = ISO.name({"MEX-" .. state}) local links = "*'''[[Mexican Federal Highway]]s'''\n\n*[[List of Mexican Federal Highways|List]]\n*[[List of Mexican autopistas|''Autopistas'']]" if state == 'SON' then return string.format("%s \n\n'''[[List of highways in %s|State Highways in %s]]'''", links, stateName, stateName) elseif state == 'DUR' then return string.format("%s \n\n'''[[%s state highways|State Highways in %s]]'''", links, stateName, stateName) else return links end elseif country(args) == 'MWI' then return "*'''[[Transport in Malawi]]'''\n\n*[[List of roads in Malawi|Roads]]" elseif country(args) == 'MYS' then return "*'''[[List of expressways and highways in Malaysia|Highways in Malaysia]]'''\n\n*[[Malaysian Expressway System|Expressways]]\n*[[Malaysian Federal Roads System|Federal]]\n*[[Malaysian State Roads system|State]]" elseif country(args) == 'NIR' then return "*'''[[Roads in Northern Ireland]]'''\n\n*[[List_of_motorways_in_the_United_Kingdom#Northern_Ireland|Motorways]]\n*[[List of A roads in Northern Ireland|A roads in Northern Ireland]]" elseif country(args) == 'NLD' then if args.type == "E" then return europe(args) else return "*'''[[Roads in the Netherlands]]'''\n\n*[[List of motorways in the Netherlands|Motorways]]\n*[[List of E-roads in the Netherlands|E-roads]]\n*[[List of provincial roads in the Netherlands|Provincial]]\n*[[List of city routes in the Netherlands|City routes]]" end elseif country(args) == 'NOR' then if args.type == "E" then return europe(args) else return "*'''Roads in Norway'''\n\n*[[Norwegian national road|National Roads]]\n*[[Norwegian county road|County Roads]]" end elseif country(args) == 'NZL' then return "*'''[[New Zealand state highway network|New Zealand state highways]]'''\n\n*[[List of motorways and expressways in New Zealand|Motorways and expressways]]\n*[[List of New Zealand state highways|List]]" elseif country(args) == 'PHL' then if args.type == "AH" then return asia(args) else return "*'''Roads in the Philippines'''\n\n*[[Philippine highway network|Highways]]\n*[[Philippine expressway network|Expressways]]\n**[[List of expressways in the Philippines|List]]" end elseif country(args) == 'POL' then return "*'''[[National roads in Poland]]'''\n\n*[[Voivodeship road]]s" elseif country(args) == 'ROU' then return "*'''[[Roads in Romania]]'''\n\n*[[Highways in Romania|Highways]]" elseif country(args) == 'RUS' then return "*'''[[Russian federal highways|Russian Federal Highways]]'''" elseif country(args) == 'SGP' then return "*'''[[Expressways of Singapore]]'''" elseif country(args) == 'SRB' then return "*'''[[Roads in Serbia]]'''\n\n*[[Motorways in Serbia|Motorways]]" elseif country(args) == 'SWE' then if args.type == "E" then return europe(args) else return "*'''Roads in Sweden'''\n\n*[[Swedish national road|National Roads]]\n*[[Swedish county road|County Roads]]" end elseif country(args) == 'THA' then return "*'''[[Thai highway network|Highways in Thailand]]'''\n\n*[[Thai motorway network|Motorways]]\n*[[Asian Highway Network|Asian Highways]]" elseif country(args) == 'TUR' then return "*'''[[List of highways in Turkey|Highways in Turkey]]'''\n\n*[[Otoyol|Motorways]]\n**[[List of otoyol routes in Turkey|List]]\n*[[Turkish State Highway System|State Highways]]\n**[[List of highways in Turkey#State roads|List]]" elseif country(args) == 'TWN' then return "*'''[[Highway system in Taiwan]]'''" elseif country(args) == 'UKR' then return "*'''[[Roads in Ukraine]]'''\n\n*[[State Highways (Ukraine)|State Highways]]" elseif country(args) == 'URY' then return "*'''[[National Routes of Uruguay]]'''" elseif country(args) == 'USA' then local state = args.state or '' local stateName = ISO.name({"USA-" .. state}) local national if args.type == nil then national = '' elseif args.type == 'ADHS' then national = "*'''[[Appalachian Development Highway System]]'''" elseif args.type == 'FFH' or args.type == 'FH' or args.type == 'FR' or args.type == 'FH-named' then national = "*'''[[Forest Highway|Forest Highway System]]'''" elseif args.type == 'ISTEA' then national = "*'''[[Intermodal Surface Transportation Efficiency Act|High-Priority Corridors]]'''" elseif args.type == 'NER' then national = "*'''[[New England road marking system]]'''" elseif args.type == 'NHS' then national = "*'''[[National Highway System (United States)|National Highway System]]'''\n\n*[[Interstate Highway System|Interstate]]\n*[[Strategic Highway Network|STRAHNET]]" elseif args.type == 'NSB' or args.type == 'NFSB' or args.type == 'FSB' or args.type == 'Byway' or args.type == 'Npkwy' or args.type == 'GRR' or args.type == 'NTP' or args.type == 'BRP' or args.type == 'BCB' or args.type == 'Back Country' then national = "*'''[[Scenic byways in the United States|Scenic Byways]]'''\n\n*[[National Scenic Byway|National]]\n*[[National Forest Scenic Byway|National Forest]]\n*[[Bureau of Land Management Back Country Byway|BLM]]\n*[[National Parkway|NPS]]" elseif args.type == 'Post' or args.type == 'Postal' then national = "*'''[[Post_road#United_States|Post Roads in the United States]]'''" elseif args.type == 'Trail' or args.type == 'Albert Pike' or args.type == 'Arrowhead Trail' or args.type == 'Dixie' or args.type == 'Jackson' or args.type == 'Jefferson' or args.type == 'Jefferson Davis' or args.type == 'LCT' or args.type == 'Lincoln' or args.type == 'National' or args.type == 'Roosevelt' or args.type == 'Spanish' or args.type == 'National Old Trails Road' then national = "*'''[[Auto trail]]s'''" elseif args.type == 'Tour' then national = "*'''[[Great Lakes Circle Tour]]'''" elseif args.type == 'USBR' then national = "*'''[[United States Bicycle Route System]]'''\n\n*[[United States Bicycle Route System#List of routes and planned corridors|List]]" elseif string.match( args.type, "^US" ) == 'US' then national = "*'''[[United States Numbered Highway System]]'''\n\n*[[List of United States Numbered Highways|List]]\n*[[List of special routes of the United States Numbered Highway System|Special]]\n*[[List of divided U.S. Routes|Divided]]" elseif args.type == 'I' or args.type == 'Interstate' or args.type == 'I-named' or args.type == 'I' .. state or args.type == 'BL' or string.match( args.type, "^BL" ) == 'BL' or string.match( args.type, "^Fut" ) == 'Fut' or string.match( args.type, "^IS" ) == 'IS' or string.match( args.type, "^I %d" ) == 'I 1' or (state == 'OH' and args.type == 'Turnpike') then national = "*'''[[Interstate Highway System]]'''\n\n*[[List of Interstate Highways|Main]]\n*[[List of auxiliary Interstate Highways|Auxiliary]]\n*[[List of suffixed Interstate Highways|Suffixed]]\n*[[List of business routes of the Interstate Highway System|Business]]\n*[[List of future Interstate Highways|Future]]" else national = '' end local function routes(args) local routes if state == 'AL' or state == 'AZ' or state == 'CT' or state == 'IL' or state == 'ME' or state == 'NV' or state == 'NH' or state == 'NY' or state == 'OH' or state == 'PA' or state == 'TN' or state == 'WA' or state == 'WV' then routes = "state routes" elseif state == 'FL' or state == 'IN' or state == 'NM' then routes = "state roads" elseif state == 'KY' or state == 'VA' then routes = "primary state highways" elseif state == 'MI' then routes = "state trunkline highways" elseif state == 'WI' then routes = "state trunk highways" else routes = "state highways" end return routes end local function whoCallsThemRoutes(args) local routes if state == 'CA' or state == 'MS' or state == 'MO' or state == 'NV' or state == 'NH' or state == 'NJ' or state == 'NM' or state == 'NY' or state == 'OH' or state == 'PA' or state == 'WA' then routes = "Routes" else routes = "Highways" end return routes end local function three(args) return string.format("[[List of Interstate Highways in %s|Interstate]]\n*[[List of U.S. %s in %s|US]]\n*[[List of %s in %s|State]]", stateName, whoCallsThemRoutes(args), stateName, routes(args), stateName ) end local function shs(args) return string.format("*'''%s State Highway System'''\n\n*%s", stateName, three(args)) end local function shsLinked(args) return string.format("*'''[[%s State Highway System]]'''\n\n*%s", stateName, three(args)) end local states if state == '' then states = '' elseif state == 'AL' or state == 'ID' or state == 'ND' or state == 'WY' then states = shs(args) elseif state == 'AK' then states = "*'''[[List_of_Alaska Routes|Alaska Routes]]'''\n\n*[[List of Interstate Highways in Alaska|Interstate]]\n*[[List of Alaska Scenic Byways|Scenic Byways]]" elseif state == 'AS' then states = "*'''[[List of highways in American Samoa|Highways in American Samoa]]'''" elseif state == 'AZ' then local county = args.county or '' if args.type == 'CR' then states = string.format("*'''%s County Roads'''", county) else states = string.format("%s\n*[[Arizona Parkways, Historic and Scenic Roads|Scenic]]<br/>[[Unconstructed state routes in Arizona|Proposed]]\n*[[Former state routes in Arizona|Former]]", shs(args)) end elseif state == 'AR' then states = string.format("*'''[[Arkansas Highway System]]'''\n\n*%s\n*[[List of Arkansas state highway business_routes|Business]]\n*[[List of Arkansas state highway spurs|Spurs]]\n*[[List of suffixed Arkansas state highways|Suffixed]]\n*[[Arkansas Scenic Byways|Scenic]]\n*[[Arkansas Heritage Trail|Heritage]]", three(args)) elseif state == 'CA' then if args.type == 'CR' then states = "*'''[[County routes in California]]'''" else states = string.format("*'''[[State highways in California]]'''\n\n*%s\n*[[State Scenic Highway System (California)|Scenic]]\n*[[History of California's state highway system|History]]\n*[[List of state highways in California (pre-1964)|Pre&#8209;1964]]\n*[[Unconstructed state highways in California|Unconstructed]]\n*[[Deleted state highways in California|Deleted]]\n*[[California Freeway and Expressway System|Freeways]]", three(args)) end elseif state == 'CO' then states = string.format("%s\n*[[List of Colorado Scenic and Historic Byways|Scenic]]", shs(args)) elseif state == 'CT' then states = string.format("%s\n**[[List of special service roads in Connecticut|SSR]]\n**[[List of state roads in Connecticut|SR]]\n*[[Scenic Byways in Connecticut|Scenic]]", shs(args)) elseif state == 'DE' then states = "*'''[[Delaware State Route System]]'''\n\n*[[List of numbered routes in Delaware|List]]\n*[[List of Delaware Byways|Byways]]" elseif state == 'DC' then states = "*'''[[Streets and highways of Washington, D.C.|Streets and Highways of Washington, DC]]'''\n\n*[[List of Interstate Highways in Washington, D.C.|Interstate]]\n*[[List of U.S. Highways in Washington, D.C.|US]]\n*[[List of numbered highways in Washington, D.C.|DC]]\n*[[List of state-named roadways in Washington, D.C.|State-Named Streets]]" elseif state == 'FL' then local county = args.county or '' if args.type == 'CR' and county ~= '' then states = string.format("*'''[[County roads in Florida]]'''\n\n*[[List of county roads in %s County, Florida|County roads in %s County]]", county, county) elseif args.type == 'CR' and county == '' then states = "*'''[[County roads in Florida]]'''" else states = string.format("%s\n**[[List of former state roads in Florida|Former]]\n**[[State roads in Florida before 1945|Pre&#8209;1945]]\n*[[List of toll roads in Florida|Toll]]\n*[[List of Florida Scenic Highways|Scenic]]", shsLinked(args)) end elseif state == 'GA' then states = "*'''Georgia State Highway System'''\n\n*[[List of Interstate Highways in Georgia|Interstate]]\n*[[List of U.S. Highways in Georgia|US]]\n*[[List of state routes in Georgia|State]]\n*\n*[[List of special state routes in Georgia|Special]]" elseif state == 'GU' then states = "*'''[[List of highways in Guam|Guam Highways]]'''" elseif state == 'HI' then states = "*'''[[List of state highways in Hawaii|Routes in Hawaii]]'''" elseif state == 'IL' then local county = args.county or '' if args.type == 'CR' and county ~= '' then states = string.format("*'''%s County Roads'''", county) elseif args.type == 'CR' and county == '' then states = "*'''County roads in Illinois'''" else states = string.format("%s\n*[[Illinois Tollway|Tollways]]\n*[[Scenic highways in Illinois|Scenic]]", shsLinked(args)) end elseif state == 'IN' then local county = args.county or '' if args.type == 'CR' and county ~= '' then states = string.format("*'''%s County Roads'''", county) elseif args.type == 'CR' and county == '' then states = "*'''County roads in Indiana'''" else states = string.format("%s\n*[[List of Indiana Scenic Byways|Scenic]]", shs(args)) end elseif state == 'IA' then states = string.format("*'''[[Iowa Primary Highway System]]'''\n\n*%s\n*[[County roads in Iowa|Secondary]]\n*[[List of Iowa Scenic Byways|Scenic]]", three(args)) elseif state == 'KS' then states = string.format("%s\n*[[List of Kansas state highway spurs|Spurs]]", shs(args)) elseif state == 'KY' then states = string.format("%s\n*[[List of parkways and named highways in Kentucky|Parkways]]", shs(args)) elseif state == 'LA' then local county = args.county or args.parish or '' if args.type == 'PR' or args.type == 'CR' then if county ~= '' then states = string.format("*'''%s Parish Roads'''", county) else states = "*'''Parish roads in Louisiana'''" end else states = string.format("%s\n*[[List of Louisiana Scenic Byways|Scenic]]", shs(args)) end elseif state == 'ME' then states = string.format("%s\n*[[List of auto trails in Maine|Auto trails]]\n*[[List of lettered highways in Maine|Lettered&nbsp;highways]]", shsLinked(args)) elseif state == 'MD' then local county = args.county or '' if args.type == 'CR' and county ~= '' then states = string.format("*''' County Roads in %s County'''", county) elseif args.type == 'CR' and county == '' then states = "*'''County roads in Maryland'''" else states = string.format("*'''[[Maryland highway system]]'''\n\n*%s\n*[[List of Maryland Scenic Byways|Scenic Byways]]", three(args)) end elseif state == 'MA' or state == 'MS' then states = string.format("%s", shsLinked(args)) elseif state == 'MI' then local county = args.county or '' if args.type == 'CR' and county ~= '' or args.type == 'NFSB' and county ~= '' then states = string.format("*'''%s County Roads'''", county) elseif args.type == 'CR' and county == '' or args.type == 'NFSB' and county == '' then states = "*'''County roads in Michigan'''" elseif args.type == 'CDH' then states = "*'''[[List of county-designated highways in Michigan|County-Designated Highways]]'''" else states = string.format("*'''[[Michigan State Trunkline Highway System]]'''\n\n*%s\n*[[Pure Michigan Byway|Byways]]", three(args)) end elseif state == 'MN' then local county = args.county or '' if args.type == 'CR' or args.type == 'CSAH' then if county ~= '' then states = string.format("*'''[[County roads in Minnesota|County roads of Minnesota]]'''\n\n*[[List of county roads in %s County, Minnesota|%s County]]", county, county) else states = "*'''[[County roads in Minnesota|County roads of Minnesota]]'''" end else states = string.format("*'''Minnesota Trunk Highway System'''\n\n*%s\n*[[Legislative route (Minnesota)|Legislative]]\n*[[Minnesota Scenic Byways|Scenic]]", three(args)) end elseif state == 'MO' then states = string.format("%s\n*[[Missouri supplemental route|Supplemental]]", shsLinked(args)) elseif state == 'MT' then states = string.format("*'''[[Montana Highway System]]'''\n\n*%s\n*[[List of secondary highways in Montana|Secondary]]", three(args)) elseif state == 'NE' then states = string.format("%s\n*[[List of Nebraska Connecting Link, Spur, and Recreation Highways|Link]]\n*[[List of Nebraska Connecting Link, Spur, and Recreation Highways|Spur]]\n**[[List of state spur highways in Nebraska|State Spurs]]\n*[[List of Nebraska Connecting Link, Spur, and Recreation Highways|Recreation]]", shsLinked(args)) elseif state == 'NV' then states = string.format("%s\n*\n*[[List of state routes in Nevada prior to 1976|Pre&#8209;1976]]\n*[[List of Nevada Scenic Byways|Scenic]]", shs(args)) elseif state == 'NH' then states = string.format("*'''[[New Hampshire Highway System]]'''\n\n*%s\n*[[List of turnpikes in New Hampshire|Turnpikes]]", three(args)) elseif state == 'NJ' then local county = args.county or '' if args.type == 'CR' then if county ~= '' then states = string.format("*'''[[List of county routes in %s County, New Jersey|County Routes in %s County]]'''\n\n*[[County routes in New Jersey|System]]\n*[[List of 500-series county routes in New Jersey|500-series routes]]", county, county) else states = "*'''[[County routes in New Jersey]]'''\n\n*[[List of 500-series county routes in New Jersey|500-series routes]]" end else states = string.format("*'''[[State highways in New Jersey|New Jersey State Highway Routes]]'''\n\n*%s\n*[[List of New Jersey Scenic Byways|Scenic Byways]]", three(args)) end elseif state == 'NM' then states = string.format("%s\n*[[List of New Mexico Scenic and Historic Byways|Scenic]]", shs(args)) elseif state == 'NY' then local county = args.county or '' if args.type == 'CR' then if county ~= '' then states = string.format("*'''[[County routes in New York]]'''\n\n*[[List of county routes in %s County, New York|County Routes in %s County]]", county, county) else states = "*'''[[County routes in New York]]'''" end else states = string.format("*'''[[Numbered highways in New York|New York Highways]]'''\n\n*%s\n*[[List of reference routes in New York|Reference]]\n*[[Parkways in New York|Parkways]]", three(args)) end elseif state == 'NC' then states = string.format("*'''[[North Carolina Highway System]]'''\n\n*%s\n*[[List of North Carolina Scenic Byways|Scenic]]", three(args)) elseif state == 'MP' then states = "*'''[[List of numbered highways in the Northern Mariana Islands|Northern Mariana Islands Highways]]'''" elseif state == 'OH' then if args.type == 'CR' then states = "*'''[[County roads in Ohio]]'''" else states = string.format("%s\n*[[Ohio Scenic Byway|Scenic]]", shs(args)) end elseif state == 'OR' then states = string.format("*'''[[State highways in Oregon|Oregon Highways]]'''\n\n*%s\n*[[List of named state highways in Oregon|Named]]\n*[[Oregon State Scenic Byways|Scenic]]", three(args)) elseif state == 'OK' then states = string.format("%s\n*[[Turnpikes of Oklahoma|Turnpikes]]", shs(args)) elseif state == 'PA' then states = string.format("*'''[[Pennsylvania State Route System]]'''\n\n*%s\n*[[List of Pennsylvania Scenic Byways|Scenic]]\n*[[List of Legislative Routes in Pennsylvania|Legislative]]", three(args)) elseif state == 'PR' then states = "*'''[[Roads in Puerto Rico]]'''\n\n*[[List of highways in Puerto Rico|List]]" elseif state == 'RI' then states = "*'''[[Numbered routes in Rhode Island|Rhode Island Routes]]'''" elseif state == 'SC' then states = string.format("%s\n*[[List of South Carolina Scenic Byways|Scenic]]", shsLinked(args)) elseif state == 'SD' then states = string.format("*'''South Dakota State Trunk Highway System'''\n\n*%s", three(args)) elseif state == 'TN' then states = string.format("*'''[[Tennessee State Route System|Tennessee State Routes]]'''\n\n*%s", three(args)) elseif state == 'TX' then states = string.format("*'''[[Texas state highway system|Highways in Texas]]'''\n\n*%s\n**[[List of former Texas state highways|Former]]\n*[[Toll roads in Texas|Toll]]\n*[[List of state highway loops in Texas|Loops]]\n*[[List of state highway spurs in Texas|Spurs]]\n*[[List of Farm to Market Roads in Texas|FM/RM]]\n*[[List of Park Roads in Texas|Park]]\n*[[List of Recreational Roads in Texas|Rec]]", three(args)) elseif state == 'UT' then states = string.format("%s\n*\n*[[List of state highways serving Utah state parks and institutions|Minor]]\n*[[List of Utah Scenic Byways|Scenic]]", shs(args)) elseif state == 'VI' then states = "*'''[[List of United States Virgin Islands highways|USVI Highways]]'''" elseif state == 'VT' then states = "*'''[[List of state highways in Vermont|State highways in Vermont]]'''" elseif state == 'VA' then states = "*'''[[State highways in Virginia|Virginia Routes]]'''\n\n*[[List of Interstate Highways in Virginia|Interstate]]\n*[[List of U.S. Highways in Virginia|US]]\n*[[List of primary state highways in Virginia|Primary]]\n*[[List of secondary state highways in Virginia|Secondary]]\n*[[List of Virginia Byways|Byways]]\n*[[History of state highways in Virginia|History]]\n*[[Virginia HOT lanes|HOT lanes]]" elseif state == 'WA' then states = string.format("*'''[[State highways in Washington]]'''\n\n*%s\n*[[List of Washington State Scenic and Recreational Highways|Scenic]]\n*[[List of Primary State Highways in Washington|Pre-1964]]\n*[[1964 state highway renumbering (Washington)|1964 renumbering]]\n*[[List of former state routes in Washington|Former]]", three(args)) elseif state == 'WV' then local county = args.county or '' if args.type == 'CR' then if county ~= '' then states = string.format("*'''[[List of county routes in West Virginia|County Routes in West Virginia]]'''\n\n*[[List of county routes in %s County, West Virginia|%s County Routes]]", county, county) else states = "*'''[[List of county routes in West Virginia|County Routes in West Virginia]]'''" end else states = string.format("%s", shsLinked(args)) end elseif state == 'WI' then if args.type == 'CR' or args.type == 'CTH' then states = "*'''[[County Trunk Highways (Wisconsin)|County Trunk Highways]]'''" else states = string.format("*'''[[Wisconsin State Trunk Highway System]]'''\n\n*%s\n*[[List of Wisconsin Scenic Byways|Scenic]]\n*[[Rustic Road (Wisconsin)|Rustic]]", three(args)) end end return string.format("%s\n\n%s", national, states) elseif country(args) == 'ZAF' then return "*'''[[Numbered routes of South Africa]]'''" elseif country(args) == 'ARG' or country(args) == 'BRB' or country(args) == 'IRQ' or country(args) == 'CHL' or country(args) == 'PRY' then return string.format("*'''[[List of highways in %s %s|Highways in %s %s]]'''", the(args), name, the(args), name) elseif country(args) == 'BGD' or country(args) == 'IMN' or country(args) == 'ISL' or country(args) == 'MDG' or country(args) == 'NPL' or country(args) == 'UGA' then return string.format("*'''[[List of roads in %s %s|Roads in %s %s]]'''", the(args), name, the(args), name) elseif country(args) == 'DNK' or country(args) == 'MNE' or country(args) == 'PRK' or country(args) == 'TUN' then return string.format("*'''[[Transport in %s %s]]'''\n\n*[[Motorways in %s %s|Motorways]]", the(args), name, the(args), name) elseif country(args) == 'AZE' or country(args) == 'BLR' or country(args) == 'BLZ' or country(args) == 'CPV' or country(args) == 'CUB' or country(args) == 'HND' or country(args) == 'JAM' or country(args) == 'KWT' or country(args) == 'MDA' or country(args) == 'PAK' or country(args) == 'PRT' then return string.format("*'''[[Roads in %s %s]]'''", the(args), name) elseif country(args) == 'ALB' or country(args) == 'BGR' or country(args) == 'COL' or country(args) == 'CZE' or country(args) == 'DOM' or country(args) == 'ECU' or country(args) == 'GUF' or country(args) == 'HRV' or country(args) == 'PER' or country(args) == 'SVK' or country(args) == 'SVN' or country(args) == 'VEN' then return string.format("*'''[[Highways in %s %s]]'''", the(args), name) else return string.format("*'''[[Transport in %s %s]]'''", the(args), name) end end function p.browselinks(frame) local args = getArgs(frame) if args.nobrowse ~= nil then return nil else return browselinks(args) end end return p 3inlimxpu0j5jqwxkb4nncow5wtmt16 Plantilla:Infobox calsada/shieldmain/PHL 10 25959 116672 2025-07-03T14:53:03Z Aristorkle 14080 copied from enwiki 116672 wikitext text/x-wiki {{#ifeq:{{Infobox road/shield/PHL|type={{{type|}}}|route={{{route|}}}}}|none|none|[[File:{{Infobox road/shield/PHL|type={{{type|}}}|route={{{route|}}}}}|70px|alt={{Infobox road/name/PHL|type={{{type|}}}|route={{{route|}}}}} shield]]}} c13523g5icj9no8oju37734qy1fbm1t Plantilla:Infobox road/shield/PHL 10 25960 116673 2025-07-03T14:54:31Z Aristorkle 14080 Página redirigida a [[Plantilla:Infobox calsada/shield/PHL]] 116673 wikitext text/x-wiki #REDIRECT [[Plantilla:Infobox calsada/shield/PHL]] dqhamjzl00ah2ej5ikb1sgcxhjp4rug Plantilla:Infobox calsada/shield/PHL 10 25961 116674 2025-07-03T14:54:48Z Aristorkle 14080 copied from enwiki 116674 wikitext text/x-wiki {{#switch:{{{type|}}} |AH=AH26 ({{{route}}}) sign.svg |E|N={{#ifexist: Media:{{{type}}}{{{route}}} (Philippines).svg |{{{type}}}{{{route}}} (Philippines).svg |none}} |#default=none }} hme74hc1k7fsuf51i01rkn8je0mx06o Plantilla:Infobox road/name/PHL 10 25962 116675 2025-07-03T14:56:19Z Aristorkle 14080 redirect 116675 wikitext text/x-wiki #REDIRECT [[Template:Infobox_calsada/name/PHL]] bcvolexa8l4k47qsbr1df0zipauxg17 Plantilla:Infobox calsada/name/PHL 10 25963 116676 2025-07-03T14:59:17Z Aristorkle 14080 copied from enwiki 116676 wikitext text/x-wiki {{#switch:{{{type|}}} |AH=Pan-Philippine Highway |E|Expressway = E{{{route}}} |N|National Road|National Highway = Route {{{route}}} |#default= }}<noinclude>[[Category:Philippines highway templates|{{{PAGENAME}}}]]</noinclude> ehdtd2drbgmpazrg6v4389gfavnqrz1 Módulo:ConvertIB 828 25964 116678 2025-07-03T15:01:38Z Aristorkle 14080 copied from enwiki 116678 Scribunto text/plain require('strict') local p = {} local getArgs = require('Module:Arguments').getArgs -- Units accepted by {{convert}} that come in groups (e.g., "5 ft 6 in") local multiple = {'mich', 'michlk', 'michainlk', 'miyd', 'miydftin', 'mift', 'ydftin', 'ydft', 'ftin', 'footin', 'handin', 'lboz', 'stlb', 'stlboz', 'stlb'} -- Convert unit list to hash local mult_table = {} for _, v in ipairs(multiple) do mult_table[v] = true end -- Function to pull out values and units from numeric args -- Returns: -- values: list of numeric values, or "false" if no numeric argument is given -- units: list of units (str) -- value: if there is a last numeric value unpaired with a unit, it becomes the precision -- anyValue: whether there is a non-false value in the values list local function parseValuesUnits(args) local values = {} local units = {} local indx = 1 local value = nil local anyValue = false -- loop through numeric arguments in pairs while args[indx] or args[indx+1] do value = args[indx] anyValue = anyValue or value -- if there is a unit, save in output lists if args[indx+1] then table.insert(values, value or false) table.insert(units, args[indx+1]) value = nil end indx = indx+2 end return values, units, value, anyValue end -- Function to identify multiple units and rewrite them as new input or output groups -- Args: -- values, units: numeric values and units, as lists with same length -- Returns: -- newValues, newUnits: same lists rewritten local function parseMultiples(values, units) local newValues = {} local newUnits = {} local i = 1 -- we will search for multiples with up to 4 entries (depending on length) local maxMultiple = math.min(4,#units-1) local valueFound = false -- flag to suppress second (and later) input values --- Hack for handling "stone": check if only value supplied is "lb" local onlyPounds = true for i = 1, #units do if values[i] and units[i] ~= 'lb' then onlyPounds = false break end end -- sweep through units while i <= #units do -- determine index of last possible unit that could contain a multiple local last_unit = math.min(i+maxMultiple-1,#units) local multipleFound = false -- try from longest multiple down to double multiple (prefer longest ones) for j = last_unit, i+1, -1 do local key = table.concat({unpack(units,i,j)}, '') if mult_table[key] then -- we found a multiple unit multipleFound = true -- Hack for "stone": add either 'lb' or multiple unit string to output units -- depending on whether 'lb' was the only unit string with a value if mw.ustring.sub(key,1,2) == 'st' then table.insert(newValues, false) table.insert(newUnits, onlyPounds and key or 'lb') end -- if there are any value in the span of the multiple, -- then the multiple is an input -- assume all missing values after the first are zero local firstValueFound = false for k = i, j do firstValueFound = not valueFound and (firstValueFound or values[k]) if firstValueFound then table.insert(newValues, values[k] or 0) table.insert(newUnits, units[k]) end end valueFound = valueFound or firstValueFound -- if no values in the span of the multiple, -- then the multiple is an output. Insert combined string as output unit if not firstValueFound then table.insert(newValues, false) table.insert(newUnits, key) end i = j+1 break end end --- If no multiple unit was found, insert value[i] and unit[i] into rewritten lists if not multipleFound then if valueFound then table.insert(newValues, false) -- skip writing value if it is a duplicate else table.insert(newValues,values[i]) valueFound = values[i] end table.insert(newUnits, units[i]) i = i+1 end end return newValues, newUnits end -- Implement {{convinfobox}} function p._convert(args) -- find all values and units in numeric args (and the precision, if it exists) local values, units, precision, anyValue = parseValuesUnits(args) -- bail if no values at all if not anyValue then return nil end -- rewrite values and units if multiple units are found values, units = parseMultiples(values, units) -- sort input and outputs into different buckets local input_values = {} local input_units = {} local output_units = {} for i = 1, #units do if values[i] then table.insert(input_values, values[i]) table.insert(input_units, units[i]) else table.insert(output_units, units[i]) end end -- bail if nothing to convert if #input_values == 0 or #output_units == 0 then return nil end -- assemble argument list to {{convert}} local innerArgs = {} -- First, pass all input unit(s) for i, v in ipairs(input_values) do table.insert(innerArgs,v) table.insert(innerArgs,input_units[i]) end -- Then the output unit(s) [concatenated as single argument] table.insert(innerArgs,table.concat(output_units,"+")) if precision then table.insert(innerArgs,precision) -- last non-nil value contains precision end -- now handle all non-numeric arguments, passing to {{convert}} innerArgs.abbr = 'on' -- abbr=on by default for k, v in pairs(args) do if not tonumber(k) then innerArgs[k] = v end end -- Call {{convert}} with innerArgs local frame = mw.getCurrentFrame() return frame:expandTemplate{title='Convert', args=innerArgs} end function p.convert(frame) local args = getArgs(frame) return p._convert(args) or "" end return p a22duljwm626he5r0iwg8cvz5437rdo Plantilla:Jct 10 25965 116679 2025-07-03T15:03:57Z Aristorkle 14080 copied from enwiki 116679 wikitext text/x-wiki <includeonly>{{safesubst:#invoke:Jct|jct}}</includeonly><noinclude> {{Documentation}} </noinclude> clppu6380zx6h1qmxk4zl25e6cv0wir Módulo:Jct 828 25966 116680 2025-07-03T15:05:06Z Aristorkle 14080 copied from enwiki 116680 Scribunto text/plain local p = {} -- Change to "" upon deployment. local moduleSuffix = "" local parserModuleName = "Module:Road data/parser" .. moduleSuffix local statenameModuleName = "Module:Jct/statename" .. moduleSuffix -- TODO transition local cityModuleName = "Module:Jct/city" .. moduleSuffix local concat = table.concat local insert = table.insert local format = mw.ustring.format local trim = mw.text.trim local parserModule = require(parserModuleName) local parser = parserModule.parser local util = require("Module:Road data/util") -- Shields local defaultShieldSize = 24 local function addContextBanner(route, name, suffix, bannerSpec) local bannerModule = 'Module:Road data/banners/' .. string.upper(route.country) local shieldfield = name .. 'shield' local shield = parser(route, shieldfield) if shield == nil then -- This route type does not define shield. -- Find shield in the default banner table. shield = parser(route, 'shield', name, bannerModule) if shield and shield ~= '' then if suffix == nil then suffix = parser(route, 'shield', 'suffix', bannerModule) end if suffix and suffix ~= '' then shield = shield .. " " .. suffix end shield = shield .. ".svg" end end if shield and shield ~= '' then local shieldSize = defaultShieldSize -- Add banner plate. insert(bannerSpec, {shield, shieldSize}) end end local function bannerSpec(banner, bannerSize, bannerSuffix, route) local banners = {} if type(banner) == "table" then local bannerSizeIsNotTable = type(bannerSize) ~= "table" for i,filename in ipairs(banner) do local bannersize = bannerSizeIsNotTable and bannerSize or bannerSize[i] or defaultShieldSize insert(banners, {filename, bannersize}) end elseif banner ~= '' then insert(banners, {banner, bannerSize}) end if route.dir then addContextBanner(route, 'dir', bannerSuffix, banners) end if route.to then addContextBanner(route, 'to', bannerSuffix, banners) end return banners end local function shieldSpec(route, mainShield, shieldList) local shieldSpec = {} local shield local shieldto = parser(route, 'shieldto') if route.to then if not shield then shield = shieldto or parser(route, 'shield') or '' end else if not shield then shield = parser(route, 'shield') or '' end end if shield == '' then return shieldSpec end local orientation = parser(route, 'orientation') local function size(route) if orientation == "upright" then return defaultShieldSize else return "x" .. defaultShieldSize end end local shieldsize = size(route) local banner = parser(route, 'banner') or {} local bannersize = defaultShieldSize local bannersuffix = parser(route, 'bannersuffix') local bannerIsNotTable = type(banner) ~= "table" local bannersizeIsNotTable = type(bannersize) ~= "table" local bannersuffixIsNotTable = type(bannersuffix) ~= "table" if type(shield) == "table" then for i,filename in ipairs(shield) do local size = shieldsize or shieldsize[i] if size == "" then size = nil end -- banner.all describes banners that apply to all multiple shields. local shieldBanner = bannerIsNotTable and banner or (banner[i] or banner.all or {}) -- Banner size is default if the corresponding entry -- in bannerSize table is not set. local shieldBannerSize = bannersizeIsNotTable and bannersize or (bannersize[i] or bannersize.all or defaultShieldSize) local shieldBannerSuffix = bannersuffix and (bannersuffixIsNotTable and bannersuffix or bannersuffix[i]) insert(shieldSpec, { shield = {filename, size}, banners = bannerSpec(shieldBanner, shieldBannerSize, shieldBannerSuffix, route) }) end elseif shield ~= '' then if shieldsize == "" then shieldsize = nil end insert(shieldSpec, { shield = {shield, shieldsize}, banners = bannerSpec(banner, bannersize, bannersuffix, route) }) end return shieldSpec end local missingShields local shieldExistsCache = {} local function render(shieldEntry, scale, showLink) local shield = shieldEntry.shield local banners = shieldEntry.banners local size if shield[2] then local width, height = mw.ustring.match(shield[2], "(%d*)x?(%d*)") width = tonumber(width) height = tonumber(height) local sizeparts = {} if width then insert(sizeparts, format("%d", width * scale)) end if height then insert(sizeparts, format("x%d", height * scale)) end size = concat(sizeparts) else size = format("%s%d", landscape and "x" or "", defaultShieldSize * scale) end local shieldCode = format("[[File:%s|%spx|link=|alt=]]", shield[1], size) if not banners[1] then return shieldCode end for _,banner in ipairs(banners) do shieldCode = format("[[File:%s|%spx|link=|alt=]]<br>%s", banner[1], defaultShieldSize, shieldCode) end return '<span style="display: inline-block; vertical-align: baseline; line-height: 0; text-align: center;">' .. shieldCode .. '</span>' end function p.shield(route, scale, showLink, mainShield, shieldList) missingShields = {} scale = scale or 1 local rendered = {} for _,entry in ipairs(shieldSpec(route, mainShield, shieldList)) do insert(rendered, render(entry, scale, showLink)) end return concat(rendered), missingShields end -- Links/abbreviations function p.link(route) local nolink = route.nolink local abbr = parser(route, 'abbr') if nolink then return abbr else local link = parser(route, 'link') if not link or link == '' then return abbr else return format("[[%s|%s]]", link, abbr) end end end ------------------------------------------- -- Links/abbreviations local function routeText(route, jctname, frame) local link local type = route.type if not type or type == '' then link = route.route else link = p.link(route) end local dir = route.dir and ' ' .. string.lower(route.dir) or '' local routeText = link .. dir local name = route.name if name and name ~= '' then local mainText = jctname and name or routeText local parenText = jctname and routeText or name return format('%s (%s)', mainText, parenText) else return routeText end end local function extra(args) local extraTypes = mw.loadData('Module:Road data/extra') local extraIcon = extraTypes[string.lower(args.extra or '')] if not extraIcon then return '' end local size = defaultShieldSize .. 'px' local countryIcon = extraIcon[args.country] or extraIcon.default if type(countryIcon) == 'table' then local localIcon = countryIcon[args.state] or countryIcon.default return string.format("[[File:%s|%s|alt=|link=]]", localIcon, size) else return string.format("[[File:%s|%s|alt=|link=]]", countryIcon, size) end end local function parseArgs(args) local state = args.state or args.province or '' args.state = state local country if args.country and args.country ~= '' then country = string.upper(args.country) else local countryModule = mw.loadData("Module:Road data/countrymask") country = countryModule[state] or 'UNK' end args.country = country local params = {'denom', 'county', 'township', 'dab', 'nolink', 'noshield', 'to', 'dir', 'name'} local routes = {} local routeCount = 1 local seenTo = false while true do local routeType = args[routeCount * 2 - 1] if not routeType then break end local route = {type = routeType, route = args[routeCount * 2]} for _,v in pairs(params) do route[v] = args[v .. routeCount] end if args.nolink then route.nolink = args.nolink end route.country = country route.state = state -- Set the first .to to true. -- Set all following .to to ''. if seenTo then if route.to then -- Report duplicate to flag. route.toerror = true end route.to = '' elseif route.to then route.to = true seenTo = true end insert(routes, route) routeCount = routeCount + 1 end return routes end local function prefix(to, num) if to and to ~= '' then return num == 1 and 'To ' or ' to ' end return num == 1 and '' or '&nbsp;/ ' end local function addErrorMsg(catCode, msg, errorMsg) errorMsg.code = errorMsg.code or catCode insert(errorMsg, format('<span style="display: none;">Module:Jct %s</span>', msg)) end function p._jct(args, frame) local routes = parseArgs(args) local shields = {} local links = {} local allMissingShields = {} local typeErr = false local toErr = false frame = frame or mw.getCurrentFrame() for num,route in ipairs(routes) do if not (args.noshield or route.noshield) then local shield, missingShields = p.shield(route) insert(shields, shield) if missingShields[1] then insert(allMissingShields, concat(missingShields, ' / ')) end end local prefix = prefix(route.to, num) if prefix ~= '' then insert(links, prefix) end insert(links, routeText(route, args.jctname, frame)) typeErr = typeErr or route.typeerror or false toErr = toErr or route.toerror or false end local graphics = concat(shields) .. extra(args) .. ' ' local linkText = concat(links) local cities = '' if args.city1 or args.location1 then local citiesPrefix if args.citiesprefix then citiesPrefix = args.citiesprefix ~= '' and format(" %s ", args.citiesprefix) or '' else citiesPrefix = '&nbsp;' end local cityModule = require(cityModuleName) cities = citiesPrefix .. cityModule.city(args) end local errorMsg = {} -- Errors must be reported by the level of severity, most severe first. if typeErr then -- Report invalid type errors. addErrorMsg("§", 'error: Invalid route type', errorMsg) end if #allMissingShields > 0 then -- Report missing shield error. -- shieldExists() would have populated missingShields if shields are missing. addErrorMsg("¶", 'error: Missing route marker graphics: ' .. concat(allMissingShields, ' / '), errorMsg) end if toErr then -- Report invalid to errors. addErrorMsg("&", 'error: Invalid "to" argument', errorMsg) end if args.road then -- Report deprecated "road" warning. addErrorMsg("∆", 'warning: "road" parameter is deprecated', errorMsg) end if args.rdt then -- Report deprecated "rdt" warning. addErrorMsg("£", 'warning: "rdt" parameter is deprecated', errorMsg) end if #errorMsg > 0 then local page = mw.title.getCurrentTitle().prefixedText -- Get transcluding page's title -- Add a category for the first, most severe error. insert(errorMsg, format('[[Category:Jct template errors|%s %s]]', errorMsg.code, page)) errorMsg = concat(errorMsg) else errorMsg = '' end return graphics .. linkText .. cities .. errorMsg end function p.jct(frame) -- Import module function to work with passed arguments local getArgs = require('Module:Arguments').getArgs local args = getArgs(frame, {removeBlanks = false}) return p._jct(args, frame) end function p._roadlink(args, frame) local routes = parseArgs(args) local links = {} local typeErr = false local toErr = false frame = frame or mw.getCurrentFrame() for num,route in ipairs(routes) do local prefix = prefix(route.to, num) if prefix ~= '' then insert(links, prefix) end insert(links, routeText(route, args.jctname, frame)) typeErr = typeErr or route.typeerror or false toErr = toErr or route.toerror or false end local linkText = concat(links) local cities = '' if args.city1 or args.location1 then local citiesPrefix if args.citiesprefix then citiesPrefix = args.citiesprefix ~= '' and format(" %s ", args.citiesprefix) or '' else citiesPrefix = '&nbsp;' end local cityModule = require(cityModuleName) cities = citiesPrefix .. cityModule.city(args) end local errorMsg = {} -- Errors must be reported by the level of severity, most severe first. if typeErr then -- Report invalid type errors. addErrorMsg("2", 'error: Invalid route type', errorMsg) end if toErr then -- Report invalid to errors. addErrorMsg("3", 'error: Invalid "to" argument', errorMsg) end if args.road then -- Report deprecated "road" warning. addErrorMsg("W", 'warning: "road" parameter is deprecated', errorMsg) end if #errorMsg > 0 then local page = mw.title.getCurrentTitle().prefixedText -- Get transcluding page's title -- Add a category for the first, most severe error. insert(errorMsg, format('[[Category:Jct template errors|%s %s]]', errorMsg.code, page)) errorMsg = concat(errorMsg) else errorMsg = '' end return linkText .. cities end function p.roadlink(frame) -- Import module function to work with passed arguments local getArgs = require('Module:Arguments').getArgs local args = getArgs(frame, {removeBlanks = true}) return p._roadlink(args, frame) end return p 8zdtprrw0y52l3zpnas8jeju9hx0cog Módulo:Jct/city 828 25967 116681 2025-07-03T15:06:26Z Aristorkle 14080 copied from enwiki 116681 Scribunto text/plain local p = {} local concat = table.concat local insert = table.insert local state local function stateName(args) local AUSabbrs = {NT = "Northern Territory", WA = "Western Australia"} local data = mw.loadData("Module:Jct/statename") local abbr = args.state or args.province local country = args.country if country == 'AUS' then return AUSabbrs[abbr] or data[abbr] else return data[abbr] end end local function location(args, num) local city = args["city" .. num] local location = args["location" .. num] local areadab = args["areadab" .. num] local countydab = args["countydab" .. num] if not(city or location) then return '' end local parts if num == 1 then parts = {"– "} else parts = {", "} end if location then insert(parts, location) return concat(parts) end insert(parts, "[[" .. city) if areadab then insert(parts, " (" .. areadab .. ")") end if countydab then insert(parts, ", " .. countydab .. " County") end if state then insert(parts, ", " .. state) end insert(parts, "|" .. city .. "]]") return concat(parts) end function p.city(args) state = stateName(args) local cities = {} local locationCount = 1 repeat local location = location(args, locationCount) insert(cities, location) local empty = (location == '') locationCount = locationCount + 1 until empty return concat(cities) end return p rcmtweu7jtj3pmsd5z1d1jh87y0gu0s Módulo:Jct/statename 828 25968 116682 2025-07-03T15:07:15Z Aristorkle 14080 copied from enwiki 116682 Scribunto text/plain local p = {AL = "Alabama", AK = "Alaska", AZ = "Arizona", AR = "Arkansas", CA = "California", CO = "Colorado", CT = "Connecticut", DE = "Delaware", DC = "District of Columbia", FL = "Florida", GA = "Georgia", HI = "Hawaii", ID = "Idaho", IL = "Illinois", IN = "Indiana", IA = "Iowa", KS = "Kansas", KY = "Kentucky", LA = "Louisiana", ME = "Maine", MD = "Maryland", MA = "Massachusetts", MI = "Michigan", MN = "Minnesota", MS = "Mississippi", MO = "Missouri", MT = "Montana", NE = "Nebraska", NV = "Nevada", NH = "New Hampshire", NJ = "New Jersey", NM = "New Mexico", NY = "New York", NC = "North Carolina", ND = "North Dakota", OH = "Ohio", OK = "Oklahoma", OR = "Oregon", PA = "Pennsylvania", RI = "Rhode Island", SC = "South Carolina", SD = "South Dakota", TN = "Tennessee", TX = "Texas", UT = "Utah", VT = "Vermont", VA = "Virginia", WA = "Washington", WV = "West Virginia", WI = "Wisconsin", WY = "Wyoming", PR = "Puerto Rico", VI = "U.S. Virgin Islands", AB = "Alberta", BC = "British Columbia", MB = "Manitoba", NB = "New Brunswick", NL = "Newfoundland and Labrador", NS = "Nova Scotia", NT = "Northwest Territories", NU = "Nunavut", ON = "Ontario", PE = "Prince Edward Island", QC = "Quebec", SK = "Saskatchewan", YT = "Yukon", AS = "American Samoa", GU = "Guam", MP = "Northern Marianas", ACT = "Australian Capital Territory", NSW = "New South Wales", QLD = "Queensland", SA = "South Australia", TAS = "Tasmania", VIC = "Victoria", fr = "France", de = "Germany", gb = "United Kingdom", es = "Spain", ie = "Ireland", it = "Italy", se = "Sweden", no = "Norway", fi = "Finland", dk = "Denmark", nl = "Netherlands", be = "Belgium", lu = "Luxembourg", pt = "Portugal", } return p mog5mr8b9ud6yx67nt6dmwn97zupfr0 Módulo:Jct/statename/data 828 25969 116683 2025-07-03T15:07:55Z Aristorkle 14080 copied from enwiki 116683 Scribunto text/plain local p = {} p.statenames = { ["AL"] = "Alabama", ["AK"] = "Alaska", ["AZ"] = "Arizona", ["AR"] = "Arkansas", ["CA"] = "California", ["CO"] = "Colorado", ["CT"] = "Connecticut", ["DE"] = "Delaware", ["DC"] = "District of Columbia", ["FL"] = "Florida", ["GA"] = "Georgia", ["HI"] = "Hawaii", ["ID"] = "Idaho", ["IL"] = "Illinois", ["IN"] = "Indiana", ["IA"] = "Iowa", ["KS"] = "Kansas", ["KY"] = "Kentucky", ["LA"] = "Louisiana", ["ME"] = "Maine", ["MD"] = "Maryland", ["MA"] = "Massachusetts", ["MI"] = "Michigan", ["MN"] = "Minnesota", ["MS"] = "Mississippi", ["MO"] = "Missouri", ["MT"] = "Montana", ["NE"] = "Nebraska", ["NV"] = "Nevada", ["NH"] = "New Hampshire", ["NJ"] = "New Jersey", ["NM"] = "New Mexico", ["NY"] = "New York", ["NC"] = "North Carolina", ["ND"] = "North Dakota", ["OH"] = "Ohio", ["OK"] = "Oklahoma", ["OR"] = "Oregon", ["PA"] = "Pennsylvania", ["RI"] = "Rhode Island", ["SC"] = "South Carolina", ["SD"] = "South Dakota", ["TN"] = "Tennessee", ["TX"] = "Texas", ["UT"] = "Utah", ["VT"] = "Vermont", ["VA"] = "Virginia", ["WA"] = "Washington", ["WV"] = "West Virginia", ["WI"] = "Wisconsin", ["WY"] = "Wyoming", ["PR"] = "Puerto Rico", ["VI"] = "U.S. Virgin Islands", ["AB"] = "Alberta", ["BC"] = "British Columbia", ["MB"] = "Manitoba", ["NB"] = "New Brunswick", ["NL"] = "Newfoundland and Labrador", ["NS"] = "Nova Scotia", ["NT"] = "Northwest Territories", ["NU"] = "Nunavut", ["ON"] = "Ontario", ["PE"] = "Prince Edward Island", ["QC"] = "Quebec", ["SK"] = "Saskatchewan", ["YT"] = "Yukon", ["AS"] = "American Samoa", ["GU"] = "Guam", ["MP"] = "Northern Marianas", ["ACT"] = "Australian Capital Territory", ["NSW"] = "New South Wales", ["QLD"] = "Queensland", ["SA"] = "South Australia", ["TAS"] = "Tasmania", ["VIC"] = "Victoria", ["fr"] = "France", ["de"] = "Germany", ["gb"] = "United Kingdom", ["es"] = "Spain", ["ie"] = "Ireland", ["it"] = "Italy", ["se"] = "Sweden", ["no"] = "Norway", ["fi"] = "Finland", ["dk"] = "Denmark", ["nl"] = "Netherlands", ["be"] = "Belgium", ["lu"] = "Luxembourg", ["pt"] = "Portugal", } return p n0pq1tvtbiwqjm7k4jwb7dcbbjuwn1y Plantilla:Infobox road/shieldmain/PHL 10 25970 116685 2025-07-03T15:13:09Z Aristorkle 14080 redirect 116685 wikitext text/x-wiki #REDIRECT [[Template:Infobox_road/shieldmain/PHL]] 9p5tkrqlztk5kv7xc8e1lklqvind8yw 116686 116685 2025-07-03T15:13:29Z Aristorkle 14080 fixed 116686 wikitext text/x-wiki #REDIRECT [[Template:Infobox_calle/shieldmain/PHL]] duovndkcedrlsmbfamos79ekyjup52x 116687 116686 2025-07-03T15:14:01Z Aristorkle 14080 fixed (2) 116687 wikitext text/x-wiki #REDIRECT [[Template:Infobox_calsada/shieldmain/PHL]] d5ghi15c000bgbyostkcqg1245wot9u Plantilla:Jct/doc 10 25971 116688 2025-07-03T15:19:44Z Aristorkle 14080 copied from enwiki 116688 wikitext text/x-wiki <noinclude>{{pp-semi|small=yes}}</noinclude> {{Documentation subpage}} <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> {{#ifeq:{{SUBPAGENAME}}|sandbox||{{High-use}}}} {{Lua|Module:Jct}} This template produces a junction listing for the junction list of a highway article, and can be used as an argument to {{para|road}} in a template for an intersection such as {{tl|jctint}}. ==Usage== The full syntax is as follows. <pre width="100%"> {{jct|country=|state= |to1=|1|2|county1=|dab1=|dir1=|name1= |to2=|3|4|county2=|dab2=|dir2=|name2= |to3=|5|6|county3=|dab3=|dir3=|name3= |to4=|7|8|county4=|dab4=|dir4=|name4= ... |city1=|location1= |city2=|location2= |city3=|location3= |city4=|location4= ... |extra= }} </pre> Many parameters shown above are unnecessary in most cases, and can be omitted. ==Parameters== Parameters {{para|'''in bold'''}} are most important. ===Location=== *{{para|'''country'''}} accepts the [[ISO 3166-1]] alpha-3 code of the country that the junction is in. Use [[List of ISO 3166-1 codes|this list]] to find the correct code for the country. [[Template:Jct/doc/country|These countries]] have had the necessary subtemplates set up; see that page for instructions on how to set up new countries. *{{para|'''state'''}} or {{para|province}} may be used in place of {{para|country}} if the junction is located within one state, province, or territory in the United States, Canada, Mexico, or Australia. The possible values are as follows: **U.S. state: {{para|state}} accepts the two-letter [[United States postal abbreviations|postal abbreviation]] of the state. **Canadian province: {{para|province}} accepts the two-letter [[Canadian subnational postal abbreviations|postal abbreviation]] of the province. **Mexican state: {{para|state}} accepts the three-letter [[Administrative divisions of Mexico#ISO 3166 codes|postal abbreviation]] of the state. **Chinese province: {{para|province}} accepts one of the two letter codes from [[Module:Road data/masks/CHN]]. ===Intersecting routes=== *{{para|'''1'''}}, {{para|'''3'''}}, {{para|'''5'''}}, ..., {{para|&lt;2i-1&gt;}}, ... accept the type of the i<sup>th</sup> route at the junction. Arguments may replace the numeric parameters, e.g., <code><nowiki>|I</nowiki></code> may be used instead of {{para|1|I}}. The route types are defined as follows: ::For routes in the United States, see [[Template:Jct/doc/type/USA|this page]]. ::For routes in Canada, the following designations are supported: ::*AB (Alberta) - '''Hwy''' (primary and secondary provincial highways) ::*ON (Ontario) - '''Highway''' (provincial highway, all types), '''RR''' (Regional Road, must supply a {{para|county&lt;i&gt;}} argument for region) ::*QC (Quebec) - '''Route''' (standard route), '''A''' ([[Autoroutes of Quebec|Autoroute]]) ::*MB (Manitoba) - '''Hwy''' (primary provincial highway), '''PR''' (secondary provincial highway), '''Winnipeg''' (Winnipeg city route) ::*NB (New Brunswick) - '''Route''' (''NOTE: Not all routes have shield graphics at present.'') ::*NS (Nova Scotia) - '''Trunk''' (trunk route), '''Hwy''' (highway), '''Route''' (other route) ::*PE (Prince Edward Island) - '''PE''' (all numbered routes except TCH) ::*All provinces - '''TCH''' ([[Trans-Canada Highway]]) ::For routes in Australia, see [[Template:Jct/doc/type/AUS|this page]]. ::For United Kingdom routes: ::* '''M''' = Motorway ::* '''A''' = A roads :::''For A roads that have a motorway segment, example: A279(M), use '''M''' as the route type and the '''A279''' as the number'' *{{para|'''2'''}}, {{para|'''4'''}}, {{para|'''6'''}}, ..., {{para|&lt;2i&gt;}}, ... accept the route number for the i<sup>th</sup> route at the junction. Arguments may replace the numeric parameters. *{{para|dir1}}, {{para|dir2}}, {{para|dir3}}, ..., {{para|dir&lt;i&gt;}}, ... accept a string for the direction of the i<sup>th</sup> route at the junction, when not all directions are accessible, e.g., Interstate 10 east. *{{para|name1}}, {{para|name2}}, {{para|name3}}, ..., {{para|name&lt;i&gt;}}, ... accept [[wikicode]] for the common name of the i<sup>th</sup> route at the junction. *{{para|to&lt;i&gt;}} accepts any value. The presence of {{para|to&lt;i&gt;}} indicates that the i<sup>th</sup> route at the junction is accessible indirectly via an earlier route in the list. *{{para|county&lt;i&gt;}} accepts the name of a county the i<sup>th</sup> route at the junction is in, for disambiguating county routes. *{{para|dab&lt;i&gt;}} accepts a string indicating the location for the i<sup>th</sup> route at the junction, for further disambiguating routes that may appear in multiple locations, such as Interstate business routes. For example, {{para|dab1|Pennsylvania–New York}} gives <nowiki>[[Interstate 86 (Pennsylvania–New York)|I-86]]</nowiki>. ===Destinations=== *{{para|city1}}, {{para|city2}}, {{para|city3}}, ..., {{para|city&lt;i&gt;}}, ... accept the name of an in-state city listed on the guide sign at the junction, i.e., control cities. The city is assumed to be in the same state as the junction, and will be automatically [[wikilink]]ed. ::{{para|areadab&lt;i&gt;}} accepts the area to be used for further disambiguating the i<sup>th</sup> city, such as a name that could refer to a [[town (New York)|town]] or a [[village (New York)|village]] within the same [[county (New York)|county]]. ::{{para|countydab&lt;i&gt;}} accepts the name of the county to be used for disambiguating the i<sup>th</sup> city, e.g., for a town whose name coincides with another in a different county within the same state. ::{{para|location&lt;i&gt;}} accepts wikicode that overrides {{para|city&lt;i&gt;}}, and should be used if the destination city is located outside of the state the junction is in, or if the destination city has a Wikipedia page title that does not include its state (such as New York City, Los Angeles, or Chicago). *{{para|extra}} accepts one of the following values to display a ''MUTCD'' intermodal icon along with route shields: **'''airport''' for an airport **'''bus''' for a bus terminal **'''ferry''' for a ferry terminal **'''rail''' for a passenger rail station **'''light-rail''' for a light-rail station :Specifications for additional types and custom shields may be added to [[Module:Road data/extra]]. ===Appearance=== *{{para|noshield&lt;i&gt;}} accepts any value. The presence of {{para|noshield&lt;i&gt;}} indicates that the shield for the i<sup>th</sup> route at the junction should not be displayed. ::{{para|noshield}} accepts any value. The presence of {{para|noshield}} indicates that no shield should be displayed. *{{para|nolink&lt;i&gt;}} accepts any value. The presence of {{para|nolink&lt;i&gt;}} indicates that the i<sup>th</sup> route at the junction should not be wikilinked. This is useful for a minor route that will never have an article. ::{{para|nolink}} accepts any value. The presence of {{para|nolink}} indicates that all routes at the junction should not be wikilinked. ==Examples== *<code><nowiki>{{Jct|state=TX|I|35|city1=Dallas|city2=San Antonio}}</nowiki></code> :{{Jct|state=TX|I|35|city1=Dallas|city2=San Antonio}} *<code><nowiki>{{Jct|state=FL|FL|A1A|city1=Miami|city2=Jacksonville}}</nowiki></code> :{{Jct|state=FL|FL|A1A|city1=Miami|city2=Jacksonville}} *<code><nowiki>{{Jct|state=NY|NY|31|name1=Monroe Avenue|city1=Pittsford|areadab1=village}}</nowiki></code> :{{Jct|state=NY|NY|31|name1=Monroe Avenue|city1=Pittsford|areadab1=village}} *<code><nowiki>{{Jct|state=IL|US-Bus|20|name1=State Street|dab1=Rockford}}</nowiki></code> :{{Jct|state=IL|US-Bus|20|name1=State Street|dab1=Rockford}} *<code><nowiki>{{Jct|state=MI|M|37|name1=Broadmoor Avenue|city1=Grand Rapids|city2=Hastings|location3=[[Gerald R. Ford International Airport]]|extra=airport}}</nowiki></code> :{{Jct|state=MI|M|37|name1=Broadmoor Avenue|city1=Grand Rapids|city2=Hastings|location3=[[Gerald R. Ford International Airport]]|extra=airport}} *<code><nowiki>{{Jct|province=BC|BC|99|city1=Vancouver}}</nowiki></code> :{{Jct|province=BC|BC|99|city1=Vancouver}} *<code><nowiki>{{Jct|country=CHN|Ex|40|city1=Nantong|location2=[[Qidong City|Qidong]]|city3=Chongming Island}}</nowiki></code> :{{Jct|country=CHN|Ex|40|city1=Nantong|location2=[[Qidong City|Qidong]]|city3=Chongming Island}} *<code><nowiki>{{Jct|country=DEU|A|6|A|81|city1=Würzberg|city2=Nuremberg}}</nowiki></code> :{{Jct|country=DEU|A|6|A|81|city1=Würzberg|city2=Nuremberg}} *<code><nowiki>{{Jct|country=GBR|M|1|location1=[[Northern England|The North]]}}</nowiki></code> :{{Jct|country=GBR|M|1|location1=[[Northern England|The North]]}} *<code><nowiki>{{Jct|country=HRV|D|303|city1=Rovinj}}</nowiki></code> :{{Jct|country=HRV|D|303|city1=Rovinj}} The [[Template:Jct/doc/country|list of countries that are set up]] limits the set of examples. For a list of all current defined sub-templates, see: {{sl|prefix:{{NAMESPACE}}:{{BASEPAGENAME}}/ }} ==See also== *{{tl|Roadlink}}, a similar template that produces road links without route marker images *{{tl|Jctname}}, a similar template that transposes the road name and route number *{{tl|Jctrdt}}, a similar template that produces output suitable for [[WP:RDT|route diagram templates]] like {{tl|Routemap}} <includeonly>{{Sandbox other|| <!-- Categories below this line, please; interwikis at Wikidata --> [[Category:Road marker templates| ]] }}</includeonly> hm8yj430nvs46hmej2m09sanpht0yw7 Módulo:Jct/doc 828 25972 116689 2025-07-03T15:21:00Z Aristorkle 14080 copied from enwiki 116689 wikitext text/x-wiki <!-- Please place categories where indicated at the bottom of this page and interwikis at Wikidata (see [[Wikipedia:Wikidata]]) --> {{#ifeq:{{SUBPAGENAME}}|sandbox||{{High-use}}}} This module is used to implement [[Template:Jct]], [[Template:Jctname]], and [[Template:Roadlink]]. == Usage == <code><nowiki>{{</nowiki>#invoke:{{PAGENAME}}|jct}}</code> == Tracking/maintenance category == * {{clc|Jct template errors}} <includeonly>{{sandbox other| | <!-- Categories below this line, please; interwikis at Wikidata --> [[Category:Modules that add a tracking category]] }}</includeonly><noinclude> [[Category:Module documentation pages]] </noinclude> 9hkraxyyifkujwxphryt0r1e3zj5x95 Plantilla:Jctname 10 25973 116690 2025-07-03T15:21:21Z Aristorkle 14080 copied from enwiki 116690 wikitext text/x-wiki <includeonly>{{#invoke:Jct|jct|jctname=yes}}</includeonly><noinclude> {{Documentation}} </noinclude> kwn9fhi73gjk54ls5n3am9guyvwp655 Plantilla:Roadlink 10 25974 116691 2025-07-03T15:22:00Z Aristorkle 14080 copied from enwiki 116691 wikitext text/x-wiki {{<includeonly>safesubst:</includeonly>#invoke:Jct|roadlink}}<noinclude> {{Documentation}} [[Category:Highway templates]] </noinclude> 5prlpy2vr0cc8mcsi0xiogfdj9jxcr0 Módulo:Road data/strings 828 25975 116692 2025-07-03T15:28:13Z Aristorkle 14080 copied from enwiki 116692 Scribunto text/plain local p = {} local format = mw.ustring.format -- Countries with separate state modules -- local countriesWithStates = {} --- Canada --- local CAN = {'AB', 'BC', 'MB', 'NB', 'NL', 'NS', 'NT', 'NU', 'ON', 'PE', 'QC', 'SK', 'YT'} countriesWithStates.CAN = CAN --- United States --- local USA = {'AK', 'AL', 'AR', 'AS', 'AZ', 'CA', 'CO', 'CT', 'DC', 'DE', 'FL', 'GA', 'GU', 'HI', 'IA', 'ID', 'IL', 'IN', 'KS', 'KY', 'LA', 'MA', 'MD', 'ME', 'MI', 'MN', 'MO', 'MS', 'MT', 'NC', 'ND', 'NE', 'NH', 'NJ', 'NM', 'NV', 'NY', 'OH', 'OK', 'OR', 'PA', 'PR', 'RI', 'SC', 'SD', 'TN', 'TX', 'UT', 'VA', 'VI', 'VT', 'WA', 'WI', 'WV', 'WY'} countriesWithStates.USA = USA -- Countries without separate state modules -- local countries = {'HKG'} -- Processing -- for country, states in pairs(countriesWithStates) do local countryTable = {} p[country] = countryTable for _, state in pairs(states) do countryTable[state] = format("Module:Road data/strings/%s/%s", country, state) end end for _, country in pairs(countries) do p[country] = format("Module:Road data/strings/%s", country) end return p hysib2r2kvichrur0d1k26ga3s7krbg Módulo:Road data/parser/hooks 828 25976 116693 2025-07-03T15:30:39Z Aristorkle 14080 copied from enwiki 116693 Scribunto text/plain local p = {} local parserModuleName = "Module:Road data/parser" -- SANDBOX REFERENCE function p.split(parameters, args) local route = tonumber(string.match(args.route, "%d+")) or 0 if route < parameters.split then return parameters.below else return parameters.above end end function p.splitlen(parameters, args) local route = args.route if #route < parameters.split then return parameters.below else return parameters.above end end function p.between(parameters, args) local lower = parameters.lower local upper = parameters.upper local route = tonumber(string.match(args.route, "%d+")) or 0 if route < lower or route >= upper then return parameters.no else return parameters.yes end end function p.mask(parameters, args) local baseParam = parameters.base local maskedParam = parameters.masked local maskModule = "Module:" .. parameters.mask local mask = mw.loadData(maskModule) args[maskedParam] = mask[args[baseParam]] return parameters.default end function p.padroute(parameters, args) local route = args.route local paddedLength = parameters.paddedLength args.paddedRoute = string.format("%0" .. tostring(paddedLength) .. "d", route) return parameters.default end function p.lowercase(parameters, args) local route = args.route args.lowercase = string.lower(route) return parameters.default end --[[ For the first element (pattern, action) in .actions such that args[.base] begins with pattern, return action. If no such element exists, return .default (nil if unspecified). ]] function p.beginswith(parameters, args) local baseParam = parameters.base local actions = parameters.actions local arg = args[baseParam] for pattern,action in pairs(actions) do if mw.ustring.sub(arg, 1, mw.ustring.len(pattern)) == pattern then return action end end return parameters.default end --[[ For the first element (pattern, action) in .actions such that require(Module:Road data/parser).parser(args, .entry, .path, .kind) matches pattern as a regular expression, return action. If no such element exists, return .default (nil if unspecified). .path and .kind are optional. ]] function p.match(parameters, args) local parserModule = require(parserModuleName) local parser = parserModule.parser local entry = parameters.entry local path = parameters.path local kind = parameters.kind local actions = parameters.actions local value = parser(args, entry, path, kind) for pattern,action in pairs(actions) do if mw.ustring.match(value, pattern) then return action end end return parameters.default end function p.iso3166Sub(parameters, args) local country = args.country local subParam = parameters.sub local subCode = args[subParam] local iso3166Module = require("Module:ISO 3166") args.iso3166Sub = iso3166Module.luaname{country, subCode} return parameters.default end function p.pagename(parameters, args) local pagename = mw.title.getCurrentTitle().text local article = parameters.article if article == pagename then return parameters.iftrue else return parameters.default or '' end end return p 20hqju5cbn0a21m2akiuocla491pv0g Módulo:Road data/parser/namespace 828 25977 116694 2025-07-03T15:31:27Z Aristorkle 14080 copied from enwiki 116694 Scribunto text/plain local namespace = { shield = "Media", shieldmain = "Media", shieldlist = "Media", shieldto = "Media", banner = "Media" } return namespace corugy61xcxhjv59y2nwv4rimbw3n33 Módulo:Road data/extra 828 25978 116695 2025-07-03T15:34:07Z Aristorkle 14080 copied from enwiki 116695 Scribunto text/plain return { rail = { default = "Rail Sign.svg", CAN = { default = "Ontario M509.svg", QC = "Québec I-310.svg" }, CHL = "Chile IS-13b.svg", IDN = "Indonesia New Road Sign Info 5A2.png", JPN = "Japanese Road sign 125-C.svg", MEX = "Mexico road sign estacion de ferrocarril.svg" }, ["light-rail"] = { default = "Light Rail Sign.svg" }, bus = { default = "Bus Sign.svg", CAN = { default = "Ontario M506.svg", QC = "Québec I-315.svg" }, FRA = "France road sign C6.svg", HRV = "Croatia road sign C44.svg", HUN = "Hungary road sign E-039.svg", ITA = "Italian traffic sign - fermata autobus.svg", JPN = "Japanese Road sign 124-C.svg", MEX = "MX road sign SIS-19.svg", NOR = "Norwegian-road-sign-508.1.svg", URY = "Uruguay Road Sign I24.svg" }, ferry = { default = "Ferry Sign.svg", CAN = { default = "Ontario M508.svg", BC = "British Columbia G-050-5.svg" }, CHL = "Chile IS-14b.svg", DNK = "Denmark road sign M11.svg", FRA = "France road sign CE10.svg", HRV = "Croatia road sign C49.svg", ITA = "Italian traffic signs - auto su nave.svg", JPN = "Japan ferry sign.png" }, hospital = { default = "MUTCD D9-2.svg", AUS = "Western Australia MR-SM-1.svg", AUT = "Hinweiszeichen 2.svg", CAN = { default = "Québec I-280-1.svg", ON = "Ontario M401.svg" }, CHE = "CH-Hinweissignal-Spital.svg", CHL = "Chile IS-1b.svg", CZE = "IJ02cr.jpg", ESP = "Spain traffic signal s23.svg", FRA = "France road sign ID3.svg", GBR = "UK traffic sign 827.2.svg", GRC = "Traffic Sign GR - KOK 2009 - P-22.svg", HUN = "Hungary road sign E-045.svg", IDN = "Indonesian Road Sign d9a.png", ISL = "Iceland road sign E01.12.svg", ITA = "Italian traffic signs - ospedale.svg", MEX = "MX road sign SIS-17.svg", POL = "Znak D-21.svg", RUS = "7.2 Russian road sign.svg", SVK = "Dopravná značka II5.svg", TUR = "Turkish road sign 84.jpg", UKR = "Ukraine road sign 6.2.gif", URY = "Uruguay Road Sign I16.svg" }, airport = { default = "Airport Sign.svg", AUS = "Western Australia MR-SM-11.svg", CAN = { default = "Ontario M502.svg", QC = "Québec I-300-1.svg " }, CHL = "Chile IS-11b.svg", DNK = "Denmark road sign M12.svg", GBR = "Aircraft Airport ecomo.svg", HRV = "Croatia road sign C47.svg", IDN = "Indonesia New Road Sign Info 5a4.png", MEX = "MX road sign SIS-1.svg", NOR = "Norwegian-road-sign-771.0.svg", TWN = "Legenda lotnisko.svg", UKR = "Ukraine road sign 5.65.png", URY = "Uruguay Road Sign I21.svg" }, NSB = { default = "MUTCD D6-4.svg" } } o60ddveswr89h9l4qwkmjernudar8he Módulo:Road data/banners/USA 828 25979 116696 2025-07-03T15:36:37Z Aristorkle 14080 copied from enwiki 116696 Scribunto text/plain local USA = {} USA.to = { shield = { arg = "type", ["US 1926"] = "", ["US 1948"] = "", ["SR 1927"] = "", ["SR 1934 S"] = "", ["NM 1926"] = "", ["NM 1932"] = "", ["ON"] = "", default = "To plate" }, shieldsize = "20" } USA.dir = { shield = { arg = "type", ["SR 1927"] = "", ["SR 1934 S"] = "", ["NM 1926"] = "", ["NM 1932"] = "", default = { arg = "dir", east = "East plate", north = "North plate", south = "South plate", west = "West plate", East = "East plate", North = "North plate", South = "South plate", West = "West plate", begins = "Begin plate", ends = "End plate" } }, shieldsize = "20" } USA.suffix = { shield = { arg = "type", I = "blue", ["I-Toll"] = "blue", ["I 1957"] = "blue", BL = "green", BS = "green", ["BL 1957"] = "green", ["BS 1957"] = "green", CR = { hook = "match", entry = "shield", actions = { -- %S+ represents a nonempty sequence of characters containing no spaces. -- Also need to escape dot with %. ["CR %S+ jct%.svg"] = "county", ["CR %S+ jct wide%.svg"] = "county", ["County %S+ square%.svg"] = "" } }, GRR = "Vermont", ["IA 1926"] = "1926", ["M 1948"] = "1961", ["M 1948-Bus"] = "1961", ["M 1948-Byp"] = "1961", ["M 1948-Conn"] = "1961", ["M 1948-Spur"] = "1961", ["M 1948-Truck"] = "1961", ["MN 1920"] = "1926", ["US-Hist"] = "brown", ["US 1926"] = "1926", ["US 1948"] = "1948", ["US 1961"] = "1961", ["US 1956 E"] = "brown", ["US 1956 W"] = "blue", ["US 1956 N"] = "orange", ["US 1956 S"] = "green", PR = { arg = "state", PR = "blue (es)" }, Urban = "(es)", Sec = { arg = "state", PR = "county (es)" }, Ter = "(es)", default = { hook = "beginswith", base = "type", actions = { CA = "green", MN = "blue", SC = "South Carolina", SD = "South Dakota", VT = "Vermont", WY = "Wyoming", CR = "county" } } } } return USA nrlf6ihpcc0vrox9pt9tvyquxeaa66q Módulo:Road data/strings/PHL 828 25980 116697 2025-07-03T15:40:13Z Aristorkle 14080 copied from enwiki 116697 Scribunto text/plain --[==[ To inspect the content of this data module, use [[Special:ExpandTemplates]] and enter the following input text: {{#invoke:Road data/dump|dump|module=Module:<name-of-this-module>}} To inspect the content of this data module when editing, enter the following into the Debug console: local util = require("Module:Road data/util") print(util.arrayToString(p)) To inspect a particular route type, change `p` above to include the route type, e.g., `p.I` and `p["US-Hist"]`. ]==] -- Philippines local PHL = {} local util = require("Module:Road data/util") util.addAll(PHL, require("Module:Road data/strings/ASIA")) PHL.E = { shield = { ifexists = true, default = "E%route% (Philippines).svg", otherwise = "" }, link = "E%route% expressway (Philippines)", abbr = "E%route%" } PHL.N = { shield = { ifexists = true, default = "N%route% (Philippines).svg", otherwise = "" }, name = "Route %route%", link = "N%route% highway (Philippines)", abbr = "N%route%" } PHL.AH = { shield = "AH26 (%route%) sign.svg", name = "Pan-Philippine Highway", link = "Pan-Philippine Highway", abbr = "AH 26 (%route%)", orientation = "upright", color = "ASIA" } PHL.road = { shield = '', shieldmain = '', name = "%route%", link = '', abbr = "%route%", browse = '', } return PHL f764tmvwkxzm646dkyb7fstlyfoctlq Módulo:Road data/strings/ASIA 828 25981 116698 2025-07-03T15:40:58Z Aristorkle 14080 copied from enwiki 116698 Scribunto text/plain -- Asia local ASIA = {} ASIA.AH = { shield = "Tabliczka AH%route%.svg", name = "Asian Highway %route%", link = { default = "AH%route% [dab||(%dab%)|]", ['6'] = "AH6 (highway)", ['64'] = "AH6 (highway)" }, abbr = "AH%route%", color = "ASIA", nbrowse = "[[Asian Highway Network]]" } return ASIA b7upn1hm14hp7kg04nax9kavroy8i8v Plantilla:Fecha hora y edad de principiada 10 25982 116700 2025-07-03T15:47:55Z Aristorkle 14080 copied from enwiki 116700 wikitext text/x-wiki <includeonly><!-- IMPLEMENTATION OF DATE -->{{#if: {{{1|}}}<!-- -->|{{#if: {{{2|}}}<!-- -->|{{#if: {{{3|}}}<!-- -->|{{#ifeq:{{yesno|{{{df|no}}}}}|yes<!-- -->|{{#expr:{{{3}}}}}&nbsp;{{MONTHNAME|{{{2}}}}}<!-- -->|{{MONTHNAME|{{{2}}}}}&nbsp;{{#expr:{{{3}}}}},<!-- -->}} {{{1}}}<!-- -->|{{MONTHNAME|{{{2}}}}}&nbsp;{{{1}}}<!-- -->}}<!-- -->|{{{1}}}<!-- -->}}<!-- --><span class="noprint">{{#ifeq:{{yesno|{{{paren|{{{p|no}}}}}}}}|yes||&#059;}}<!-- -->{{#ifeq:{{yesno|{{{br|no}}}}}|yes|<br/>|&#032;}}<!-- -->{{#ifeq:{{yesno|{{{paren|{{{p|no}}}}}}}}|yes|(}}<!-- -->{{#if: {{{2|}}}<!-- -->|{{#if: {{{3|}}}<!-- -->|{{time ago|{{{1}}}-{{{2}}}-{{{3}}}|min_magnitude=days}}<!-- -->|{{years or months ago|{{{1}}}|{{#time:n|1-{{trim|{{{2}}}}}-1}}}}<!-- -->}}<!-- -->|{{#iferror:{{#expr:{{{1}}}}}<!-- -->|{{time ago|{{{1}}}|min_magnitude=days}}<!-- -->|{{years or months ago|{{{1}}}}}<!-- -->}}<!-- -->}}<!-- -->{{#ifeq:{{yesno|{{{paren|{{{p|no}}}}}}}}|yes|)}}</span><!-- -->|<!--first parameter is missing.-->{{#if: {{{2|}}}|{{Error|Error: first parameter is missing.|tag=span}}<!-- -->|{{#if: {{{3|}}}|{{Error|Error: first parameter is missing.|tag=span}} }} }}<!-- -->}}<!-- IMPLEMENTATION OF microformat date classes --><span style="display:none">&#160;(<span class="{{#ifeq:{{yesno|{{{end|no}}}}}|yes|dtend|bday dtstart published updated}}"><!-- -->{{#if: {{{1|}}}<!-- -->|{{{1}}}<!-- -->{{#if: {{{2|}}}<!-- -->| -{{#time:m|1-{{trim|{{{2}}}}}-1}}<!-- -->{{#if: {{{3|}}}<!-- -->| -{{padleft:{{{3}}}|2|0}}<!-- -->}}<!-- -->}}<!-- -->}}<!-- --></span>)</span><!-- Tracking categories -->{{#invoke:Check for unknown parameters|check|unknown=[[Category:Pages using start date and age with unknown parameters|_VALUE_]]|preview=Page using [[Template:Start date and age]] with unknown parameter "_VALUE_"|showblankpositional=1| 1 | 2 | 3 | br | df | end | p | paren }}</includeonly><noinclude> {{documentation}} </noinclude> icfdg4ac6yx9tdex3zgz6t5omu1jb71 Plantilla:Fecha hora y edad de principiada/doc 10 25983 116701 2025-07-03T15:48:26Z Aristorkle 14080 copied from enwiki 116701 wikitext text/x-wiki {{Documentation subpage}} <!-- EDIT TEMPLATE DOCUMENTATION BELOW THIS LINE --> {{High-use}} {{COinS safe|n}} {{Template shortcut|sda}} {{Lua|Module:Check for unknown parameters|Module:Date time}} {{tlb|Start date and age}} displays the date that an event or entity started or was created. It also includes a duplicate, machine-readable date in the [[ISO 8601]] format (which is hidden by [[CSS]]), for use inside other templates which emit [[microformat]]s. The hidden date degrades gracefully when CSS is not available. == Usage == * {{tlx|Start date and age|{{var|YYYY}}|{{var|MM}}|{{var|DD}}}} (year, month, and day) * {{tlx|Start date and age|{{var|YYYY}}|{{var|MM}}|{{var|DD}}|df{{=}}yes}} * {{tlx|Start date and age|{{var|YYYY}}|{{var|MM}}|{{var|DD}}|df{{=}}yes|p{{=}}yes|br{{=}}yes}} == Parameters == {| class="wikitable" ! Parameter ! Status ! Description |- | {{para|1}} | required | A four-digit number indicating the year. |- | {{para|2}} | optional | A number between 1 and 12 indicating the month (leading zeros in the number are ignored). |- | {{para|3}} | optional | A number between 1 and 31 indicating the day of the month (leading zeros in the number are ignored). |- | {{para|df}} | optional | When set to {{para|df|yes}} or {{para|df|y}} displays the day before the month (e.g. "7 November 2004" instead of the default "November 7, 2004"). |- | {{para|p}}<br/> {{para|paren}} | optional | When set to {{para|p|yes}} or {{para|p|y}} the age will be displayed within parentheses. When this parameter is not included, the date and age are separated by a semicolon and a breaking space. |- | {{para|br}} | optional | When set to {{para|br|yes}} or {{para|br|y}} a line break will be inserted between the date and the age. When this parameter is not included, a breaking space will be inserted between the date and the age. This does not change the separating characters between the date and age which are either a semicolon (default setting) or parentheses (if {{para|p|yes}}). |} == Examples == === Default separator: semicolon === {| class="wikitable" style="width:100%;" ! style="width:60%;" | Syntax ! style="width:40%;" | Result |- |colspan="2" style="background-color:#DDD" | '''Full date (year, month, day)''' |- | {{tlx|Start date and age|2010|01|02}} | {{Start date and age|2010|01|02}} |- | {{tlx|Start date and age|2010|1|2|df{{=}}yes}} | {{Start date and age|2010|1|2|df=yes}} |- | {{tlx|Start date and age|2008|01|9|df{{=}}y}} | {{Start date and age|2008|01|9|df=y}} |- | 100 days ago:<br />{{tlx|Start date and age|{{#time:Y|now-100 days}}|{{#time:n|now-100 days}}|{{#time:j|now-100 days}}}} | {{Start date and age|{{#time:Y|now-100 days}}|{{#time:n|now-100 days}}|{{#time:j|now-100 days}}}} |- | Yesterday:<br />{{tlx|Start date and age|{{#time:Y|now-1 days}}|{{#time:n|now-1 days}}|{{#time:j|now-1 days}}}} | {{Start date and age|{{#time:Y|now-1 days}}|{{#time:n|now-1 days}}|{{#time:j|now-1 days}}}} |- | Today:<br />{{tlx|Start date and age|{{#time:Y|now}}|{{#time:n|now}}|{{#time:j|now}}}} | {{Start date and age|{{#time:Y|now}}|{{#time:n|now}}|{{#time:j|now}}}} |- |colspan="2" style="background-color:#DDD" | '''Year and month''' |- | {{tlx|Start date and age|2001|9}} | {{Start date and age|2001|9}} |- | {{tlx|Start date and age|2002|09}} | {{Start date and age|2002|09}} |- |colspan="2" style="background-color:#DDD" | '''Year only''' |- | {{tlx|Start date and age|2005}} | {{Start date and age|2005}} |} === Optional separator: parentheses === {| class="wikitable" style="width:100%;" ! style="width:60%;" | Syntax ! style="width:40%;" | Result |- |colspan="2" style="background-color:#DDD" | '''Full date (year, month, day)''' |- | {{tlx|Start date and age|2003|02|15|p{{=}}yes}} | {{Start date and age|2003|02|15|p=yes}} |- | {{tlx|Start date and age|2003|02|15|df{{=}}y|p{{=}}y}} | {{Start date and age|2003|02|15|df=y|p=yes}} |- |colspan="2" style="background-color:#DDD" | '''Year and month''' |- | {{tlx|Start date and age|2003|02|p{{=}}y}} | {{Start date and age|2003|02|p=y}} |- |colspan="2" style="background-color:#DDD" | '''Year only''' |- | {{tlx|Start date and age|2003|paren{{=}}yes}} | {{Start date and age|2003|paren=yes}} |} === Line break with semicolon === {| class="wikitable" style="width:100%;" ! style="width:60%;" | Syntax ! style="width:40%;" | Result |- |colspan="2" style="background-color:#DDD" | '''Full date (year, month, day)''' |- | {{tlx|Start date and age|2003|02|15|br{{=}}yes}} | {{Start date and age|2003|02|15|br=yes}} |- | {{tlx|Start date and age|2003|02|15|df{{=}}y|br{{=}}y}} | {{Start date and age|2003|02|15|df=y|br=y}} |- |colspan="2" style="background-color:#DDD" | '''Year and month''' |- | {{tlx|Start date and age|2003|02|br{{=}}y}} | {{Start date and age|2003|02|br=y}} |- |colspan="2" style="background-color:#DDD" | '''Year only''' |- | {{tlx|Start date and age|2003|br{{=}}yes}} | {{Start date and age|2003|br=yes}} |} === Line break with parentheses === {| class="wikitable" style="width:100%;" ! style="width:60%;" | Syntax ! style="width:40%;" | Result |- |colspan="2" style="background-color:#DDD" | '''Full date (year, month, day)''' |- | {{tlx|Start date and age|2003|02|15|p{{=}}yes|br{{=}}yes}} | {{Start date and age|2003|02|15|p=yes|br=yes}} |- | {{tlx|Start date and age|2003|02|15|df{{=}}y|p{{=}}y|br{{=}}y}} | {{Start date and age|2003|02|15|df=y|p=y|br=y}} |- |colspan="2" style="background-color:#DDD" | '''Year and month''' |- | {{tlx|Start date and age|2003|02|p{{=}}y|br{{=}}y}} | {{Start date and age|2003|02|p=y|br=y}} |- |colspan="2" style="background-color:#DDD" | '''Year only''' |- | {{tlx|Start date and age|2003|paren{{=}}yes|br{{=}}yes}} | {{Start date and age|2003|paren=yes|br=yes}} |} ==TemplateData == {{collapse top|[[Wikipedia:TemplateData|TemplateData]] documentation used by [[Wikipedia:VisualEditor|VisualEditor]] and other tools}} {{TemplateData header|noheader=1}} <templatedata> { "params": { "1": { "label": "Year", "description": "A four-digit number indicating the year", "example": "2017", "type": "number", "required": true }, "2": { "label": "Month", "description": "A number between 1 and 12 indicating the month", "example": "12", "type": "number", "suggested": true }, "3": { "label": "Day", "description": "A number between 1 and 31 indicating the day of the month", "example": "31", "type": "number", "suggested": true }, "df": { "label": "Display date first", "description": "Set to 'yes' to show the day before the month name", "type": "line", "suggestedvalues": [ "yes", "y" ] }, "paren": { "aliases": [ "p" ], "label": "Display with parentheses", "description": "Set to 'yes' to display the age within parentheses. When this parameter is not included, the date and age are separated by a semicolon and a breaking space.", "type": "line", "suggestedvalues": [ "yes", "y" ] }, "br": { "label": "Line break between date and age", "description": "Set to 'yes' to add a line break between the date and the age. When this parameter is not included, a breaking space will be inserted between the date and the age. This does not change the separating characters between the date and age which are either a semicolon (default setting) or parentheses (if paren=yes).", "type": "line", "suggestedvalues": [ "yes", "y" ] } }, "description": "The Start date and age template displays the date that an event or entity started or was created." } </templatedata> {{collapse bottom}} == Use in microformats == {{UF-date-part}} === Example === {{nowiki template demo|format=inline|output=nowiki+|code=<nowiki>{{Start date and age|2016|12|31}}</nowiki>}} ==Usage in articles== This template is most often used in infoboxes in articles about buildings or organizations, identifying when they were started/founded/opened or dissolved/ended/closed. It has also been used for naval ships to indicate their commissioned age; however, several Wikipedia editors have reverted such edits. Use of this template in ship articles is therefore not recommended. == Tracking categories == * {{clc|Pages using start date an age with invalid values}} * {{clc|Pages using start date and age with unknown parameters}} == See also == * {{tl|Start date}} * {{tl|End date and age}} * {{tl|Time ago}} and {{tl|Years or months ago}} * {{tl|Age}} {{Birth, death and age templates|dates}} <includeonly>{{Sandbox other| | <!-- Categories go here and interwikis go in Wikidata --> [[Category:Date-computing templates based on current time]] }}</includeonly> q3x19gmluz8gqf3d83xiymsg6ksakwu Plantilla:Start date and age 10 25984 116702 2025-07-03T15:49:09Z Aristorkle 14080 redirect 116702 wikitext text/x-wiki #REDIRECT [[Template:Fecha_hora_y_edad_de_principiada]] 6xeywdnznfb9ln2dq4o7brtphlms58p