Jump to content

User:Evad37/sandbox/Wikipedia:Templates for discussion/Holding cell

From Wikipedia, the free encyclopedia


If process guidelines are met, move templates to the appropriate subsection here to prepare to delete. Before deleting a template, ensure that it is not in use on any pages (other than talk pages where eliminating the link would change the meaning of a prior discussion), by checking Special:Whatlinkshere for '(transclusion)'. Consider placing {{Being deleted}} on the template page.

Tools

[edit]

There are several tools that can help when implementing TfDs. Some of these are listed below.

Closing discussions

[edit]

The closing procedures are outlined at Wikipedia:Templates for discussion/Administrator instructions.

To review

[edit]

Templates for which each transclusion requires individual attention and analysis before the template is deleted.

To merge

[edit]

Templates to be merged into another template.

Arts

[edit]

Geography, politics and governance

[edit]

Religion

[edit]

Sports

[edit]

Transport

[edit]

Other

[edit]

Meta

[edit]
Replace \{\{other people2 ?\|(?:.*?\{\{!}})(.*?)}} with {{other people||$1}}
Unless I missed something, this should catch just about everything (piped and non-piped), and put it as the DAB link whilst saving the original message (i.e. no extra text, links, or wording). Now, this does end up putting things like "Alan Garner (disambiguation)" into the second link, but that might just mean a second run removing one of the pipes. Primefac (talk) 03:26, 21 July 2016 (UTC)
  • @Primefac: A few comments:
    1. You'll need to escape the right curly brackets as well.
    2. It's always a best practice to use \s* frequently for templates to pick up all forms of white space. For instance, some editors include newlines between each parameter or multiple spaces and you need the greedy regex to pick that up.
    3. As written, the regex would take a page that was named "Bob Smith (disambiguation)" but displayed as "Bob Smith" and send them to the actual page named "Bob Smith".
    4. Your regex didn't consider redirects.
I haven't tested this, but I think the following regex is closer to what you'll want.
\{\{\s*other ?(?:people|persons) ?2\s*\|\s*((?:[^\{\}]*\{\{\!\}\})?[^\{\}]*)\}\} with {{other people||$1}}
As far as running the bot, I could do it or you could. An AWB bot is literally as simple as downloading AWB, filing a WP:BRFA, and then checking the auto-save box that pops up in AWB after your account is flagged as an AWB bot. It's not at all complicated. If it required any coding ability, I wouldn't be able to do it myself. ~ Rob13Talk 03:45, 21 July 2016 (UTC)
Are we over-thinking this? To keep the text as "For other people with the same name" the {{{1}}} param of {{other people2}} just becomes {{{2}}} of {{other people}}. So... just replace the 2 with a | and it would work. {{!}} has valid use in OP so it shouldn't affect the display. Primefac (talk) 04:39, 21 July 2016 (UTC)
That would involve similar regex: \{\{\s*other ?(?:people|persons) ?2\s*\| to {{other people||. There needs to be at least a search for the template name and the following pipe to ensure other templates aren't accidentally affected. I'm not familiar with the underlying templates, but it does appear this would be simpler and accomplish the same thing. ~ Rob13Talk 04:58, 21 July 2016 (UTC)
No regex needed; AWB has a template replace tool, so swap OP2 (and its redirects) and use a simple "find 'other people' and replace with 'other people |'" rule afterwards. Primefac (talk) 05:30, 21 July 2016 (UTC)
@BU Rob13 and Primefac: I've replaced the guts of {{other people2}} with {{other people||{{{1}}}}} and filed a BRFA for template substitution at Wikipedia:Bots/Requests for approval/NihiltresBot 2. {{Nihiltres |talk |edits}} 15:54, 21 July 2016 (UTC)

To convert

[edit]

Templates for which the consensus is that they ought to be converted to categories, lists or portals are put here until the conversion is completed.

That sounds like a good place to hold the conversation. Primefac (talk) 05:27, 4 December 2015 (UTC)
Category:Toei Animation television has been created/populated with the shows found in that section. Primefac (talk) 04:08, 16 July 2016 (UTC)

Templates for which the consensus is that all instances should be substituted (i.e. the template should be merged with the article) are put here until the substitutions are completed. After this is done, the template is deleted from template space.

To orphan

[edit]

These templates are to be deleted, but may still be in use on some pages. Somebody (it doesn't need to be an administrator, anyone can do it) should fix and/or remove significant usages from pages so that the templates can be deleted. Note that simple references to them from Talk: pages should not be removed. Add on bottom and remove from top of list (oldest is on top).

  • None currently

Ready for deletion

[edit]

Templates for which consensus to delete has been reached, and for which orphaning has been completed, can be listed here for an administrator to delete. Remove from this list when an item has been deleted. If these are to be candidates for speedy deletion, please give a specific reason. See also {{Deleted template}}, an option to delete templates while retaining them for displaying old page revisions.