Template talk:Pp-semi-protected
![]() | Template:Pp-semi-protected is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Any contributor may edit the template's sandbox. This template does not have a testcases subpage. You can create the testcases subpage here.
|
chjkdsgi What's the difference between this and the other template? Quadzilla99 20:25, 30 March 2007 (UTC)
- 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)
- 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)
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)
- Fixed, thanks for the input. →AzaToth 21:47, 30 March 2007 (UTC)
== 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)
- Whoops, missed those, I'll look into it later →AzaToth 00:19, 31 March 2007 (UTC)
Nonsensical?
editWas 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)
- Look at our article on Lorem ipsum. -Phoenix 17:42, 13 April 2007 (UTC)
- 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)
Slight problem
editFor 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)
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)
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)
Small lock icon in corner is too subtle
editThe 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)
- 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)
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)
- Done. Cheers. --MZMcBride 03:51, 14 May 2007 (UTC)
PAGENAME and DEFAULTSORT magic words
editThis 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)
{{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)
- 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)
- Also, you must know that you cannot use parameters in imagemap. →AzaToth 22:38, 8 August 2007 (UTC)
- 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)
- 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
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)
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)
- Done Thank you. GDonato (talk) 17:14, 17 September 2007 (UTC)
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)
- Done (diff) - Nihiltres(t.l) 19:58, 26 September 2007 (UTC)
Conversion to pp-meta
editIn 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)
- 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)
- 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)
- 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)
- 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)
- 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)
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)
- In the last code example, I have made the presence of
{{{expiry}}}
overridesmall=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)
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)
- These templates were just standardized. Please bring up your concerns on WT:AMB. Cheers. --MZMcBride 19:16, 29 September 2007 (UTC)