Jump to content

Template talk:Self

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
(Redirected from Template talk:Self/doc)

Author grammar

[edit]

Can we have this modified so that specifying the Author parameter shows this:

(if author=Quasar) "Quasar, the author of this work, hereby publishes it under the following license:"

Rather than the current way, which shows this (which is grammatically broken): "Quasar, hereby publish it under the following license:"

--Quasar 00:35, 9 March 2007 (UTC)[reply]

Also, can we have it link to the Author's user page?

You can linkify your own name by using wiki markup, i.e. use something like {{self|GFDL|author=[[User:Quasar|Quasar]]}}. I agree that that I'd be nice to fix the grammar. —RP88 00:50, 18 March 2007 (UTC)[reply]

This page is protected. In order to fix the grammar on this template (and fix a minor error in the end-italic placement, I request that the following line and start of next line:

| <center>'''''{{{author|I, the author of this work}}},''' hereby publish it under the following license{{#if: {{{2|}}}|s|}}:</center>
<center>'' ...

be replaced with:

| <center>'''''{{{author|I}}}, the author of this work,''' hereby publish{{#if: {{{author|}}}|es|}} it under the following license{{#if: {{{2|}}}|s|}}:''</center>
<center> ...

In the interests of paranoia, I'll mention that the "..." is not part of the requested change, just a placeholder for the rest of the second line of the change. —RP88 00:50, 18 March 2007 (UTC)[reply]

{{editprotected}}

 Done Cbrown1023 talk 02:31, 18 March 2007 (UTC)[reply]

Edit request

[edit]

{{editprotected}}

Can the text of the template help reflect the "author=" parameter, similar to what is written at COMMONS:template:self? -N 14:02, 24 June 2007 (UTC)[reply]

checkY Done I've created a documentation page for the template at {{self/doc}}; the documentation can be edited by non-admins, so feel free to change it to be more useful (I've started it in an attempt to fulfil the request, but you can probably explain it better than I can). You can do any further documentation changes yourself. --ais523 08:58, 25 June 2007 (UTC)

Request to fix English problem

[edit]

{{editprotected}} Hi- The template is currently written in a way that incorrectly declines the verbs "have" and "publish". When the author argument(term?) is set to "I"--if I understand the template code correctly--the template generates an incorrect English sentence. For example, here is what happens when I add the template {{self|GFDL|cc-by-sa-2.5|author=I, [[User:EHM02667|EHM02667]]}} under a photo: "I, EHM02667, the copyright holder of this work, has published or hereby publishes it under the following licenses:". (Those words should be have and publish). Or, am I maybe using the template incorrectly? Thanks in advance. -Eric (talk) 21:40, 30 July 2007 (UTC)[reply]

I believe this template is setup correctly. The author= parameter should just be set to the user name (i.e., author=[[User:EHM02667|EHM02667]]. If this doesn't resolve the issue, please feel free to re-enable the editprotected request. Cheers. --MZMcBride 21:16, 31 July 2007 (UTC)[reply]
Thanks, MZ; that's what I tried in the end, but I wanted to be sure that was how it was meant to be used. The "author=I" setting that I saw somewhere confused me. -Eric (talk) 14:28, 3 August 2007 (UTC)[reply]

You may select the license of your choice.

[edit]

Can someone tell me why all the licenses should say this at the bottom? Just upon casual reading, it looks like someone who would want to reuse the content can select freely from among the licenses listed? Am I missing something? --Aquatiki (talk) 09:01, 3 February 2008 (UTC)[reply]

Imbox

[edit]

{{editprotected}} I have written up a version using the imbox classes at {{Self/sandbox}}. There are some tests at Image:Example_for_imbox_testing.png#Template:Self.2Ftestcases (current template followed by imbox version). Any comments? —Ms2ger (talk) 10:57, 26 October 2008 (UTC)[reply]

Why isn't it using the {{imbox}} template? --MZMcBride (talk) 17:46, 9 November 2008 (UTC)[reply]
How exactly would you fit it in there? It's not really your average message box, you know… —Ms2ger (talk) 19:04, 9 November 2008 (UTC)[reply]
Not done: please establish a consensus for this alteration before using the {{edit protected}} template. --Elonka 23:54, 9 November 2008 (UTC)[reply]

Copy redundant check from Commons

[edit]

{{edit protected}} Please copy the changes from Commons:Template:Self to this template. multichill (talk) 20:12, 23 June 2009 (UTC)[reply]

Could we have some background to this request please? — Martin (MSGJ · talk) 21:54, 23 June 2009 (UTC)[reply]
Dragons flight changed this template to make all images tagged with GFDL end up in Category:License migration candidates. A lot of these images are tagged with both GFDL and cc-by-sa-3.0. These images also end up in Category:License migration candidates. This change will enable {{License migration is redundant}}. Images tagged with both GFDL and templates listed at {{License migration is redundant}} will now end up in Category:License migration redundant. This is the case for most images in Commons:Category:License migration redundant. multichill (talk) 11:16, 24 June 2009 (UTC)[reply]
I have asked DF to comment on this, as I don't understand enough about it. — Martin (MSGJ · talk) 11:38, 24 June 2009 (UTC)[reply]
I think this is fine. To be honest I only just now figured out what multichill's change did. Dragons flight (talk) 08:08, 25 June 2009 (UTC)[reply]
Okay, so how to implement it? Multichill, can you explain the purpose of {{fallback}} because we don't have that template here. Ideally, you could put your proposed code in the /sandbox. Thanks — Martin (MSGJ · talk) 09:39, 25 June 2009 (UTC)[reply]
 Done. I've tested out coding and implemented this. There shouldn't be any bugs, but if there are let me or another admin know so that it can be reverted or fixed. –Drilnoth (T • C • L) 16:48, 2 July 2009 (UTC)[reply]

Remove break

[edit]

Please remove the break between {{free media}} and the start of the table, as it adds empty space even when placed below the Licensing heading. It's also not needed, as {{free media}} simply adds a category and has no visual output. So the top line should look like:

{{free media}}{| style="margin:0.5em auto; width:90%; background-color:#f0f0f0; border:2px solid #aaaaaa; padding:2px;"

Thanks. – Adrignola talk 15:47, 2 July 2011 (UTC)[reply]

 Fixed — Martin (MSGJ · talk) 12:02, 4 July 2011 (UTC)[reply]

Undo edit by AnomieBOT

[edit]

Please undo the wonky edit by AnomieBOT. —RP88 (talk) 18:28, 17 November 2013 (UTC)[reply]

Done Jackmcbarn (talk) 19:02, 17 November 2013 (UTC)[reply]

Template-protected edit request on 20 February 2018

[edit]

When used with the GFDL parameter, including the two such examples in {{Self/doc}}, viz:

  • {{Self |cc-by-sa-3.0| GFDL}}
  • {{Self |cc-by-sa-3.0,2.5,2.0,1.0 |GFDL}}

This template generates a Multiline table in list lint error. I unambiguously state that this template needs to be modified to not cause this lint error. Anomalocaris (talk) 20:06, 20 February 2018 (UTC)[reply]

 Not done: please make your requested changes to the template's sandbox first; see WP:TESTCASES. — Martin (MSGJ · talk) 20:53, 20 February 2018 (UTC)[reply]
MSGJ: That's not my job. I am a general-purpose Wikipedia editor and fixer, but I have no expertise in messy template editing. This template is generating lint errors. Those who worked on it in the past should fix their mistakes. The main problem is probably that Wikipedia does not really like nested tables, as caused by the GFDL parameter. —Anomalocaris (talk) 21:21, 20 February 2018 (UTC)[reply]
 Not done as this is not a ready to go edit that is only being blocked by protection. Feel free to continue discussing ways to improve this page. — xaosflux Talk 23:28, 20 February 2018 (UTC)[reply]

Oh, I've been here before. Well, I now understand that the issue is the markup

:::::This template should only be used on image pages.

coming from the first unnamed parameter, and failing to emit a newline, and then emitting markup on the same line equivalent to <table>, coming from {{GFDL}}.

So all I am asking for is to emit a newline character between processing the first and second unnamed parameters. I hope this should be specific enough for you. —Anomalocaris (talk) 06:05, 12 November 2020 (UTC)[reply]

 Not done (see next section). — xaosflux Talk 14:30, 13 November 2020 (UTC)[reply]

Template-protected edit request on 12 November 2020

[edit]

We need to fix the Multiline table in list lint error caused by the markup

{{self|author=Calvin Harris|GFDL|cc-by-sa-3.0-migrated|FAL}}

which appears in Wikipedia:Files for upload/September 2016. From Special:ExpandTemplates it's clear that the problem is the markup

:::::This template should only be used on image pages.
  • (which comes from the |cc-by-sa-3.0-migrated= parameter in this case, and could also come from other parameters that go in its place, when {{Self}} is used on a page other than image pages)
  • followed right away by another table template, which in this case comes from the |FAL= parameter

So the request is to have a line break preceding the implementation of the |FAL= parameter or whatever else would be in its position. I'm sorry I can't be more specific, but I do not understand at all how this template works. — Anomalocaris (talk) 05:51, 12 November 2020 (UTC)[reply]

Xaosflux: That's not reasonable here. This template is inscrutable. When I edit it, there's no there there. The changes are probably not here but in a subroutine. I have told you exactly where the fix is in terms of what's happening. Just emit a newline character after whatever is emitting
:::::This template should only be used on image pages.
I thank the people who work on inscrutable templates, but I believe they should take some responsibility to write compliant code. I've diagnosed it pretty thoroughly here. —Anomalocaris (talk) 22:19, 13 November 2020 (UTC)[reply]
@Anomalocaris: the immediate edit request process is a balance against the need to protect pages in line with the protection policy, so that someone who is being prevented from making an edit due to such restriction may still contribute to improving pages. It is certainly fine that you don't know how to make the edit, and to ask for help. You could even try to ping some of the prior editors to this discussion for additional help, or put out an ask at WP:VPT. — xaosflux Talk 23:50, 13 November 2020 (UTC)[reply]
 Done with this edit. A transcluded template was using colon indenting inappropriately. – Jonesey95 (talk) 15:23, 14 November 2020 (UTC)[reply]
Jonesey95: Thank you very much. Please note that there are more than 10 similar templates with the exact same line of markup, that are just as "inappropriate" as this one. You can find them with an insource search for ":::::This template should only be used on image pages.". I suggest that the task is not complete. —Anomalocaris (talk) 09:16, 16 November 2020 (UTC)[reply]
I think I got them all. If you see any Linter errors caused by these templates out in the wild, drop me a note on my talk page. – Jonesey95 (talk) 16:34, 16 November 2020 (UTC)[reply]
Jonesey95: Thanks! —Anomalocaris (talk) 20:01, 16 November 2020 (UTC)[reply]

Jonesey95: Unfortunately, there is more, as can be seen by lintHint's look at User:Anomalocaris/sandbox/Lint Test, where it finds a Multiline table in list on {{self|cc-by-sa-4.0|GFDL|migration=not eligible}}. ExpandTemplates reveals that the offending markup is :::::This template should only be used on file pages. <table class="plainlinks imbox imbox-license licensetpl" role="presentation">.... That leads to the new search insource search for ":::::This template should only be used on file pages.". There are 25 such templates. —Anomalocaris (talk) 09:52, 29 December 2020 (UTC)[reply]

I think I got all of these. I didn't bother with the sandbox versions. – Jonesey95 (talk) 15:54, 29 December 2020 (UTC)[reply]
Thank you, Jonesey95! That took care of a number of pages with Multiline table in list lint errors, but new there are new ones:
  • User:Querty1234/sandbox includes {{self|GFDL|cc-by-4.0}}, expands to
    :''This template will categorize into [[:Category:Wikipedia license migration candidates|Category:Wikipedia license migration candidates]].'' <table class="plainlinks imbox imbox-license licensetpl licensetpl" role="presentation">...
Also it looks like the markup * {{Cc-by-2.0}}, or or any of several similarly named templates, is now a lint error; maybe it always was, but the linter has finally noticed. Fortunately there aren't a lot of them (detected so far), so I can fix these bad calls one by one. —Anomalocaris (talk) 19:40, 29 December 2020 (UTC)[reply]

Edit request 20 December 2023

[edit]

Copy over Template:Self/sandbox to Template:Self (it is the same template but rewritten using Lua+Templatestyles using Module:Self).

A list of testcases are at Template:Self/testcases. Sohom (talk) 18:36, 20 December 2023 (UTC)[reply]

 Done Thank you for your excellent work at converting this to a module! SWinxy (talk) 01:30, 21 December 2023 (UTC)[reply]
SWinxy, Sohom: The new version is causing a Multiline table in list lint error in markup like
  • * License: {{self|cc-by-sa-4.0}}
  • # {{self|cc0}}
  • * {{self|cc-by-4.0}}
Affecting 9 user sandboxes. Can the template be fixed to avoid causing this lint error, as before? —Anomalocaris (talk) 10:19, 21 December 2023 (UTC)[reply]
Jonesey95: Might interest you as well. I had forgotten that I've been on this page before. —Anomalocaris (talk) 10:23, 21 December 2023 (UTC)[reply]
@Anomalocaris Would it be possible to update these individual userpages to use a different syntax ? I do get why the linter is complaining, but to "correctly" fix this very specific edge-case, we need to make sure Module:Message box will not emit tables (which is a lot more work and has the potential to cause a lot more edge cases/issues/work). While reverting to the old syntax could work as well (using tables) it would (imo) be a step in the wrong overall direction. Sohom (talk) 13:20, 21 December 2023 (UTC)[reply]
The previous version of the template, now in the sandbox, appears to automatically insert a newline before its output. That makes it tolerate being placed on a line that starts with : or * or #. The new version does not do so. I did a little experimenting but was unable to figure out how to make the live template start on a new line even if it is inserted in the middle of some text. – Jonesey95 (talk) 14:50, 21 December 2023 (UTC)[reply]
Sohom: Yes, the 9 affected pages could be edited. —Anomalocaris (talk) 20:27, 21 December 2023 (UTC)[reply]
Would it be dumb to start this template with {{clear}} and then a new line? There might be unintended side effects. – Jonesey95 (talk) 22:20, 21 December 2023 (UTC)[reply]
Maybe this template doesn't need fixing. {{Self}} is supposed to be used only on file pages. These 9 pages are user sandboxes. Well, someone might start a file page in a user sandbox page with the plan to move it later, but it doesn't seem likely. And if the page uses # as its list maker, the # line following # {{self|...}} is numbered 1 (see User:Bridgette92/sandbox). So maybe the solution is to put in the documentation that this template is not supposed to be used on a list line, i.e. one starting with :, *, #. —Anomalocaris (talk) 01:17, 22 December 2023 (UTC)[reply]
I've added a warning to the documentation discouraging this templates use in lists. Sohom (talk) 11:39, 4 January 2024 (UTC)[reply]

Edit request 4 January 2024

[edit]

Description of suggested change: "I, the copyright holder of this work, hereby publish, it under the following license" isn't proper grammar, the third comma should be removed.

Diff:

'\'\'\'\'\'%s, the copyright holder of this work,\'\'\' hereby publish%s, it under the following license%s:\'\'',
+
'\'\'\'\'\'%s, the copyright holder of this work,\'\'\' hereby publish%s it under the following license%s:\'\'',

~ Eejit43 (talk) 13:02, 4 January 2024 (UTC)[reply]

 Done — Martin (MSGJ · talk) 13:11, 4 January 2024 (UTC)[reply]

Dark mode bug report

[edit]

@Sdrqaz pointed out at mw:Reading/Web/Accessibility_for_reading/Reporting/wiki.riteme.site that there is an issue with this template in dark mode.

Possible fixes are:

  • Add notheme to wp-tmpl-self-license-wrapper
  • Change background color to var(--background-color-interactive, #eaecf0)

Could somebody please take a look? 🐸 Jdlrobson (talk) 17:50, 23 July 2024 (UTC)[reply]

I added "notheme" to the div class, which makes everything legible. Someone might want to develop it further to make the template display with a darker theme in dark mode. – Jonesey95 (talk) 01:41, 24 July 2024 (UTC)[reply]

Edit request for dark mode compatibility

[edit]

Remove skin-invert class from Module:Self per Module:Self/sandbox. It is too harsh as evidenced by Template:Self/testcases. —Matrix(!) {user - talk? - uselesscontributions} 15:59, 8 September 2024 (UTC)[reply]

@Matrix While I agree that the GNU logo looks better in dark mode in the sandbox, the CC logo looks significantly worse. --Ahecht (TALK
PAGE
)
15:45, 13 September 2024 (UTC)[reply]
@Ahecht: That's not an issue with {{Self}}. That's an issue with all CC templates. They should have the class skin-invert applied to the logo. —Matrix(!) {user - talk? - uselesscontributions} 16:59, 13 September 2024 (UTC)[reply]
 Done Sohom (talk) 05:22, 15 September 2024 (UTC)[reply]