Template talk:Pp-semi-protected

Latest comment: 16 years ago by Nihiltres in topic Conversion to pp-meta

chjkdsgi What's the difference between this and the other template? Quadzilla99 20:25, 30 March 2007 (UTC)Reply

From what I can see, the ability to specify the reason for protection directly in the template. Looks a touch more modern as well, perhaps? PhoenixTwo 21:07, 30 March 2007 (UTC)Reply
It's mostly an overhaul, as sprotected was using for many kinds of protections, it was redirected to the generic type, see above the new templates. AzaToth 21:15, 30 March 2007 (UTC)Reply

There's an extra space before the period in the first sentence if no text is supplied; see Abortion. Please fix. -- RattleMan 21:41, 30 March 2007 (UTC)Reply

Fixed, thanks for the input. AzaToth 21:47, 30 March 2007 (UTC)Reply

== hi

Please watch out for double redirects. I just fixed {{sprotect}}, but there may be others--AzaToth, could you do a search? Chick Bowen 23:29, 30 March 2007 (UTC)Reply

Whoops, missed those, I'll look into it later AzaToth 00:19, 31 March 2007 (UTC)Reply

Nonsensical? edit

Was looking at this and saw that editing is disabled "because lorem ipsum dolor sit amet". Is this just jibberish? Even if it isn't, I would assume most people wouldn't understand it...

This is just the template, the "bacuse" is just an example text. the protection notice for the protection of this page you see in the top corner. AzaToth 23:06, 31 March 2007 (UTC)Reply
Look at our article on Lorem ipsum. -Phoenix 17:42, 13 April 2007 (UTC)Reply
I thought it was vandalism to the template, when I saw that text for the first time. Where is the "lorem ipsum" placeholder text specified? Using something more descriptive like "(insert reason here)" would be more helpful. - Brian Kendig 16:57, 15 April 2007 (UTC)Reply

Slight problem edit

For articles that are protected with this template (small=yes) as well as featured, the 2 icons in the top right corner overlap. See "Weird Al" Yankovic for example. Just wondering if this could be fixed at all? ~~ Gromreaper(Talk)/(Cont) 03:21, 2 April 2007 (UTC)Reply

I just came here to mention the same problem with Gandhi. Since {{Featured article}} is an old and heavily used template, and {{Sprotected2}} is just a jacket for {{Pp-semi-protected}}, this is the probably the one where the change should be made. — Randall Bart 20:43, 2 April 2007 (UTC)

And it's protected so I can't do it myself...somebody better get on this. -Phoenix 22:19, 2 April 2007 (UTC)Reply

I noticed this as well and made the change with a few of the protections (hopefully all of the ones that might appear in articles). If you would like anymore changes to be made to this template, or any other page that is protected, you can use the {{editprotected}} template. -- tariqabjotu 05:21, 4 April 2007 (UTC)Reply

Small lock icon in corner is too subtle edit

The little icon is too subtle and it is confusing to anon and new editors. Without some kind of text saying that the page is locked they won't know why they can't edit the page. They can't even "try" to edit the page like if they are blocked because the "edit this page" tab is replaced with "view source" which is confusing to many people. I think that the lock icon needs to be slightly larger and more noticeable along with some kind of text based notice so that they know why the page is protected. What do others think? -- Hdt83 Chat 06:13, 3 May 2007 (UTC)Reply

If you just turn off the small=yes parameter in the protection template, the article will have a nice messagebox explaining that the article is semiprotected. That is the default. The icon is only meant for (more rare) situations where the article will be protected for a long time. It's meant to be subtle. CMummert · talk 12:56, 3 May 2007 (UTC)Reply

Change lock icon size edit

{{editprotected}}

The other pp-templates have 20px for the small lock size. Can someone change the size for the small icon to 20px so all the pp-templates match? -- Hdt83 Chat 02:46, 14 May 2007 (UTC)Reply

  Done. Cheers. --MZMcBride 03:51, 14 May 2007 (UTC)Reply

PAGENAME and DEFAULTSORT magic words edit

This template uses the PAGENAME magic word to sort pages in categories, which ignores the namespace, thus allowing talk pages and user pages to be mixed up with articles. I just noticed that this messes up the action of the DEFAULTSORT magic word. See for example George Washington, which appears in the semi-protection category under 'G', but under 'W' in all its other categories. Is this a problem? If so, what is the best solution? Carcharoth 13:39, 18 June 2007 (UTC)Reply

{{editprotected}} edit

If |small=yes, the template should be small, no matter whether an expiry has been specified or not. I recommend the following changes:

<noinclude>
-</noinclude>{{#ifeq:{{{small|}}}{{{expiry|ʁ}}}|yesʁ
+</noinclude>{{#ifeq:{{{small|}}}|yes
|
 Image:Padlock-silver-medium.svg|20px
- rect 0 0 1000 1000 [[Wikipedia:Protection policy|This page has been semi-protected from editing]]
+ rect 0 0 1000 1000 [[Wikipedia:Protection policy|This page has been semi-protected from editing]]{{#if:{{{expiry|}}}| until {{#time:[[F j]], [[Y]]|{{{expiry}}}}} (UTC)}}
 desc none

madman bum and angel 22:33, 8 August 2007 (UTC)Reply

The templates are designed for expiry to triumph over small, as small should never be used for a non-indefinite protection. AzaToth 22:37, 8 August 2007 (UTC)Reply
Also, you must know that you cannot use parameters in imagemap. AzaToth 22:38, 8 August 2007 (UTC)Reply
Indeed. Well, I guess that makes sense; if there's any fallout over the extra clutter, I'll either keep on keeping on or have MadmanBot (talk · contribs) omit the |expiry parameter (which would be unfortunate; it's ever-so-useful). Thanks. — madman bum and angel 22:40, 8 August 2007 (UTC)Reply

editprotected (grammar) edit

{{editprotected}} Could someone please add a period to This page has been semi-protected from editing on line eight? Thanks. WODUP 22:34, 27 August 2007 (UTC)Reply

  Done Mr.Z-mantalk¢ 23:43, 27 August 2007 (UTC)Reply

image alignment edit

{{editprotected}}

This page currently has the following:

<td valign="center" >

which should be changed to:

<td valign="middle">

or maybe:

<td align="center" valign="middle">

but 'center' is an invalid value for the html valign attribute.

nb: the whole thing should probably be refactored to not use explicit html, but that is another issue. --Jack Merridew 08:29, 17 September 2007 (UTC)Reply

  Done Thank you. GDonato (talk) 17:14, 17 September 2007 (UTC)Reply

undo edit? edit

{{editprotected}}
Can an admin put back this piece of code [1] that was removed. It is part of the code so that a custom reason can be put in. It does not normally show up unless you tell the template to specifically with {{pp-semi-protected|reason=something}}. Thanks. --Hdt83 Chat 02:33, 26 September 2007 (UTC)Reply

  Done (diff) - Nihiltres(t.l) 19:58, 26 September 2007 (UTC)Reply

Conversion to pp-meta edit

In the interest of converting this template to use {{pp-meta}}, I've come up with the code required. Be aware that {{pp-meta}} is currently unprotected, so do not convert this template until pp-meta is full-protected. Code follows, and please check it, I am slightly out of it with a cold and have been making occasional silly wikicode errors.


Nihiltres(t.l) 15:13, 27 September 2007 (UTC)Reply

Nice! I was currently working with {{pp-protected}} but you made a better choice since this template is not used on any pages at the moment. I am currently busy but in some hours I will have the time to test your code to verify it. I took a quick look and it seems you have done some nice improvements of {{pp-meta}} etc. But I think I know how to make your added code simpler, but I have to test that properly first. Meanwhile have a look at how I did cut out the documentation of {{pp-protected}} to a /doc page, if you have the time and inclination.
--David Göthberg 17:10, 27 September 2007 (UTC)Reply
Nihiltres:
1. I have updated {{pp-meta}} "demospace" so it handles empty strings correctly. So your demospace code line above can now be simplified to:
| demospace = {{{demospace|}}}
2. I assume you are aware of this, but just to point it out to you and everyone else: Your "#ifeq:small==yes" statement differs from what is currently used. The current running code forces the big box to show if an expiry time is set so that the expiry time becomes visible. I don't know if we should change that behaviour. Although the old behaviour is slightly illogical, since if someone sets "small=yes" then obviously that is what he wants.
3. I don't fully understand your "categories" parameter. I added the parameter name to the {{pp-meta}} docs. Can you fill in the explanation what it does? I don't understand why it has a "no" option? It seems to me it would be simpler to either feed some categories to it, or leave it empty/undefined. I guess I should experiment with it, I think I can simplify its usage a lot.
--David Göthberg 23:37, 27 September 2007 (UTC)Reply
After some review and experimenting in my sandbox, I've improved the code and removed a number of bugs, including a nasty parser issue, that the above code has (needs to be covered by a single includeonly, cannot use includeonly internally without calling subtemplates, though I worked around that need). Being editconflicted with your previous post, I've further improved the code to the simpler {{{demospace|}}} and made a non-null {{{expiry}}} value override the small setting (I personally like small overriding expiry, but that isn't good form). Technically there's a bug where if {{{small}}}{{{expiry}}} came out together as "yes" it will become small, but this is such a ridiculous situation I don't want to add extra code to correct it. Regarding the categories code I added: It's to support category suppression. I've added documentation regarding this. I think it's ready to add, but please doublecheck as usual - these templates are widely used, and I'd prefer not to have a mistake copied widely across many high-visibility pages.
<includeonly></includeonly>
Look good? If so, I'll protect pp-meta and make the change. Nihiltres(t.l) 00:09, 28 September 2007 (UTC)Reply
There seems to be some oddities in your code. But I am to tired to be able to really read your code now, or the code is to weird. Don't know which. Anyway, I have to go to bed and I have a busy day tomorrow. I hope to have time to work more on this on Sunday. And I have to do more testing since you are using pp-meta in ways I didn't design it for.
--David Göthberg 01:35, 28 September 2007 (UTC)Reply
Minor oddities removed:
<includeonly></includeonly>
I'm highly sure of this version (excepting our fixing category issues...), you can review it when you get a chance. I'll try to fix category issues so that they transclude only where they're supposed to. :) Nihiltres(t.l) 02:03, 28 September 2007 (UTC)Reply

Cn make a comment about the small versus expiry issue, the logic is that expiry overrules small, as small are only to be used when there are no specified expiry. i.e. expiry should have higher priority than small. AzaToth 12:06, 29 September 2007 (UTC)Reply

In the last code example, I have made the presence of {{{expiry}}} override small=yes. This is in the example:
{{#ifeq:{{{small|no}}}{{{expiry|}}}|yes|<imagemap>
Hope that addresses your concerns. Nihiltres(t.l) 20:53, 29 September 2007 (UTC)Reply

Editprotected request edit

{{editprotected}}

Please can someone change the font size to font-size:0.9em; as before. The new font size looks a bit too large, and this font size is better.

Thanks, --Solumeiras talk 11:53, 29 September 2007 (UTC)Reply

These templates were just standardized. Please bring up your concerns on WT:AMB. Cheers. --MZMcBride 19:16, 29 September 2007 (UTC)Reply