Jump to content

Wikipedia:Templates for discussion/Log/2014 December 10

From Wikipedia, the free encyclopedia

December 10

[edit]

Flag templates

[edit]
The following discussion is an archived debate of the proposed deletion of the template below. Please do not modify it. Subsequent comments should be made on the appropriate discussion page (such as the template's talk page or in a deletion review). No further edits should be made to this section.

The result of the discussion was do not mergePlastikspork ―Œ(talk) 05:53, 18 December 2014 (UTC)[reply]

Template:Flagcountry (talk · history · transclusions · logs · subpages) - "similar to the more widely used {{flag}} template..."
Template:Flagu (talk · history · transclusions · logs · subpages) - "an alternative to {{flag}} and {{flagcountry}}, for instances where the country name should not be linked"
Template:Flaglist (talk · history · transclusions · logs · subpages) - "identical to {{Flag}} except that country names are aligned correctly with flag icons of different widths"
Template:Flagicon (talk · history · transclusions · logs · subpages) - "displays the flag only"
Template:Flagdeco (talk · history · transclusions · logs · subpages) - "This template is very similar to {{flagicon}}, except the image is not linked to an article,"
Template:Flag (talk · history · transclusions · logs · subpages)

Propose merging {{Flagcountry}} and/or {{Flagu}} and/or {{Flaglist}} and/or {{Flagicon}} and/or {{Flagdeco}} into {{Flag}}.
Very similar (see especially the documentation for {{Flagcountry}} and others quoted above); the minor differences could be dealt with by means of switches. Alternatively, their underlying code (and /core subtemplates) should be unified and the individual templates made wrappers; or be made to call the same core. A single Lua module may be the best solution.Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 20:57, 10 December 2014 (UTC)[reply]

  • oppose merging since they do different things in terms of output/linking:  United States,  USA,  USA, United States, ,  USA. however, feel free to rewrite the backend to use a single lua module. Frietjes (talk) 21:22, 10 December 2014 (UTC)[reply]
  • Oppose as these templates are often repeated many multiples of times in tables on a single page and merging them into one template and using switches would cause massive template transclusion size issues. — {{U|Technical 13}} (etc) 22:50, 10 December 2014 (UTC)[reply]
    • Which is addressed by "Alternatively, their underlying code (and /core subtemplates) should be unified and the individual templates made wrappers; or be made to call the same core. A single Lua module may be the best solution". Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 23:04, 11 December 2014 (UTC)[reply]
  • Comment: Any conversion to a Lua Module should probably also include the Country data templates and the other meta templates that the flag templates use. The complex flag template system is explained on WP:FTP. I agree that converting to Lua modules would be the best solution. Zzyzx11 (talk) 05:06, 11 December 2014 (UTC)[reply]
  • (Weak?) oppose In the last few months I have tested a template that combines the functionality of many existing flag templates, plus a number of additional options, into a single general template, though not with the intent of eventually merging the flag templates.
    With the current flag template system, flag templates transclude country data templates, which in turn transclude the core templates. While it is possible to replace {{flagu}} by a |nolink= parameter within {{flag}} (taking one template as an example), a line such as |nolink={{{nolink|}}} must be added to all 1800 data templates in order to be able to merge the core templates. It is possible to create a functional flag template that does not rely on a core template by extracting fields from data templates using {{getalias}}/{{getalias2}}, as shown by my sandbox template, but this is kind of a hack. Adding parameters would be easier if the entire system is drastically changed, such as by "Lua-isation", though it would be a rather large undertaking to transfer all data template data to Lua modules.
    Technical issues aside, I think it makes sense for the functionality of some templates to be available as a parameter in others:
    • {{flag|nolink=1}} and {{flagicon|nolink=1}} for {{flagu}} and {{flagdeco}} respectively
    • {{flag|align=1}} or similar for {{flaglink}}
    • And maybe {{flag|name=}} and {{flag|name=|nolink=1}} for {{flagicon}} and {{flagdeco}} respectively (using the existing |name= parameter)
Even if adding such parameters is technically possible, I'm not really sure whether the templates should actually be merged, since the versions with parameters are longer and arguably somewhat more complex than the separate templates. The five templates nominated for merging with {{flag}} are together used on over 66,000 pages, so replacing them would take ages. I also second T13 in that stuffing templates used hundreds of times on the same page with parser functions can cause problems. SiBr4 (talk) 10:13, 11 December 2014 (UTC)[reply]
  • Oppose I don't see the point. You certainly wouldn't want to make any changes to the millions of existing instances of these templates in article markup (e.g. change {{flagicon|United States}} to {{flag|United States|link=false}}, for example) so that means you'd still need to have {{flag}}, {{flagicon}}, etc. all available for editors to use. That means that any merger could only be in the underlying "engine" templates (e.g. Template:flag/core, Template:flagicon/core, etc.) and those internal templates are all relatively small (2-3 lines each) and very stable (a couple of minor changes in the past 5 years). So what's the motivation for change here? If it ain't broke, don't "fix" it. — Andrwsc (talk · contribs) 21:48, 11 December 2014 (UTC)[reply]
  • Oppose for all the reasons given. Mass-replacing could be done using a bot, but then we really have more important things to fix. More importantly, these are (and should remain) very simple templates to be included hundreds of times in lists or tables. We don't want to replace them with bulky replacements using switches. A common Lua backend would be nice though. --PanchoS (talk) 11:07, 15 December 2014 (UTC)[reply]
The above discussion is preserved as an archive of the debate. Please do not modify it. Subsequent comments should be made on the appropriate discussion page (such as the template's talk page or in a deletion review). No further edits should be made to this section.
The following discussion is an archived debate of the proposed deletion of the template below. Please do not modify it. Subsequent comments should be made on the appropriate discussion page (such as the template's talk page or in a deletion review). No further edits should be made to this section.

The result of the discussion was deletePlastikspork ―Œ(talk) 05:57, 18 December 2014 (UTC)[reply]

Template:Pre-CSA states (talk · history · transclusions · logs · subpages)

Per Wikipedia:Articles for deletion/Republic of Florida and the related deletion pages for these "states." Ed [talk] [majestic titan] 18:05, 10 December 2014 (UTC)[reply]

  • Delete While a good faith attempt, this template is meant to support the speculative "Republic" articles of the first seven CSA states that lack any reliable source. Deletion/merge discussions are underway for these and elimination appears near certain. That leaves the template without a purpose. Even if it linked to the state "in the American Civil War" articles post merge/deletion it would end up being redundant and only add clutter--the state pages are already templated in a larger group to the right. Red Harvest (talk) 01:27, 11 December 2014 (UTC)[reply]
The above discussion is preserved as an archive of the debate. Please do not modify it. Subsequent comments should be made on the appropriate discussion page (such as the template's talk page or in a deletion review). No further edits should be made to this section.
The following discussion is an archived debate of the proposed deletion of the template below. Please do not modify it. Subsequent comments should be made on the appropriate discussion page (such as the template's talk page or in a deletion review). No further edits should be made to this section.

The result of the discussion was deletePlastikspork ―Œ(talk) 05:58, 18 December 2014 (UTC)[reply]

Template:Current PGA Caddies (talk · history · transclusions · logs · subpages)

Created in April 2009 this template lists just 4 caddies associated with golfers on the PGA Tour. As such it is useless. Templates for caddies used in a specific event like the Ryder Cup might be of some interest but the template under discussion is not suitable. The creator has been inactive since January 2010. Nigej (talk) 16:45, 10 December 2014 (UTC)[reply]

The above discussion is preserved as an archive of the debate. Please do not modify it. Subsequent comments should be made on the appropriate discussion page (such as the template's talk page or in a deletion review). No further edits should be made to this section.
The following discussion is an archived debate of the proposed deletion of the template below. Please do not modify it. Subsequent comments should be made on the appropriate discussion page (such as the template's talk page or in a deletion review). No further edits should be made to this section.

The result of the discussion was deletePlastikspork ―Œ(talk) 05:59, 18 December 2014 (UTC)[reply]

Template:Conclusion (talk · history · transclusions · logs · subpages)

The creator is inactive at this moment. The template itself looks awkward and bulky at best, but it was well intended when it was first created. Also, it is infrequently used nowadays. {{archive top}} surpasses this. Other templates surpass this as well, like {{rm top}}. George Ho (talk) 11:41, 10 December 2014 (UTC)[reply]

The above discussion is preserved as an archive of the debate. Please do not modify it. Subsequent comments should be made on the appropriate discussion page (such as the template's talk page or in a deletion review). No further edits should be made to this section.
The following discussion is an archived debate of the proposed deletion of the template below. Please do not modify it. Subsequent comments should be made on the appropriate discussion page (such as the template's talk page or in a deletion review). No further edits should be made to this section.

The result of the discussion was Nomination withdrawn. — Mr. Stradivarius ♪ talk ♪ 08:31, 10 December 2014 (UTC)[reply]

Template:NAMESPACEID (talk · history · transclusions · logs · subpages)

This is unused, and prone to falling out of date as new namespaces are added. (At the moment, the Topic namespace is missing.) If this was used at all I would convert it to Lua which would mean it would be kept up to date automatically, but if it's not used deletion is probably the better option. — Mr. Stradivarius ♪ talk ♪ 07:00, 10 December 2014 (UTC)[reply]

It seems its being used in page notices; either your deletion template is breaking them or you've added malformed code somewhere. I'm seeing
"<div id="editnotice-ns-
‹ The template below (NAMESPACEID) is being considered for deletion. See templates for discussion to help reach a consensus.›

:3" class="editnotice-page" style="clear: both; width: 100%;">"
when I edit my talk page, but it doesn't show when i preview the EN itself. It's affecting your EN too, and I tried two browsers;' SeaMonkey 1.1.19 and Firefox 27.0. Cheers, Baffle gab1978 (talk) 07:26, 10 December 2014 (UTC)[reply]
@Baffle gab1978: Sorry about that. It turns out that the template is being used in Template:Editnotice load/core, and because of the way that edit notices work, none of the edit notices that use it show up in Special:WhatLinksHere/Template:NAMESPACEID. It looks like a Lua conversion is the way to go, rather than deletion. I'm withdrawing this nomination now. — Mr. Stradivarius ♪ talk ♪ 08:28, 10 December 2014 (UTC)[reply]
The above discussion is preserved as an archive of the debate. Please do not modify it. Subsequent comments should be made on the appropriate discussion page (such as the template's talk page or in a deletion review). No further edits should be made to this section.