Template talk:DYKproblem
Signature
editThe signature only seems to work when the template has at least one parameter filled; if you just call {{DYKproblem}} with nothing in it, the signature appears as ~~~~. Does anyone know why that might be happening, and how to repair it? (or, on the other hand, we could just remove the signature thing and have to manually type it each time the template is used, like you do with warning templates.) —Politizer talk/contribs 01:33, 23 November 2008 (UTC)
- I say remove the auto-sig, and the header. Especially the header, because it's my practice to use the new section button to create a new thread, and doing it that way makes it annoying having an extra header. And the sig thing isn't needed really - we all know how to sign, surely? :-) – How do you turn this on (talk) 02:37, 23 November 2008 (UTC)
- I added a
|sig=
parameter. -- Suntag ☼ 18:50, 6 December 2008 (UTC)- Just a note that the
|sig=
parameter causes problems for signatures which include a |. I'm not saying we need to change it, I just thought I'd mention it here in case anyone's wondering why they get strange results. Olaf Davis (talk) 10:03, 31 December 2008 (UTC)- Thanks for the heads-up. How often do you use the
|sig=
parameter? Personally, I have pretty much stopped using it, but I don't want to remove it or anything if a lot of people are finding it useful. Politizer talk/contribs 15:16, 31 December 2008 (UTC)
- Thanks for the heads-up. How often do you use the
- Just a note that the
- I added a
Multi-noms
editThe template currently doesn't have functionality for section and article linking when people make a multi-article nomination. I might fiddle with that in a minute. —Politizer talk/contribs 01:50, 3 December 2008 (UTC)
- Done. Doc has been updated. —Politizer talk/contribs 02:02, 3 December 2008 (UTC)
Header
editThe header posted does not include an "edit" option. See this. -- Suntag ☼ 18:47, 6 December 2008 (UTC)
- Huh, weird. I can't imagine why that would be happening; there's not a __NOEDITSECTION__ or anything like that. I'll have to fiddle around with it a bit. —Politizer talk/contribs 18:48, 6 December 2008 (UTC)
- You're quick! You beat my post on your talk page. -- Suntag ☼ 18:49, 6 December 2008 (UTC)
- Haha, I do love my watchlist... —Politizer talk/contribs 18:52, 6 December 2008 (UTC)
- You're quick! You beat my post on your talk page. -- Suntag ☼ 18:49, 6 December 2008 (UTC)
- Fixed. I feel like a template-programming god!!! —Politizer talk/contribs 18:52, 6 December 2008 (UTC)
Code Update
edit{{editprotected}}
Could a templatey administrator change this
<includeonly>{{subst:</includeonly><includeonly>empty template|1={{error:not substituted|DYKproblem}}}}</includeonly>
{{
<includeonly>subst:</includeonly>
#switch:{{{header|}}}|1|yes==={{
<includeonly>subst:</includeonly>
#if:{{{1|}}}|DYK nomination of {{{1}}}}}==}}
[[Image:Symbol question.svg|25px]] Hello! {{
<includeonly>subst:</includeonly>
#ifeq:{{{nominator|yes}}}|no|An article you have been editing –- {{
<includeonly>subst:</includeonly>
#if:{{{1|}}}|[[{{{1}}}]] }} –- was recently nominated by another user at [[T:TDYK|Did you know]], to be featured on the main page. The nomination has now been reviewed, and}}{{
<includeonly>subst:</includeonly>
#ifeq:{{{nominator|yes}}}|yes|Your submission {{
<includeonly>subst:</includeonly>
#if:{{{1|}}}|of [[{{{1}}}]]{{
<includeonly>subst:</includeonly>
#if:{{{extra|}}}| and [[{{{extra}}}]]}}}} at the [[Template talk:DYK|Did You Know nominations page]] has been reviewed, and}} there still are some issues that may need to be clarified. Please review the comment(s) underneath {{
<includeonly>subst:</includeonly>
#if:{{{1|}}}|'''{{T:TDYK|{{{1}}}|your nomination's entry}}'''|your nomination's entry}} and respond there as soon as possible. {{
<includeonly>subst:</includeonly>
#if:{{{2|}}}|
</br>
{{{2}}}|Thank you for contributing to Did You Know!}} <!--Template:DYKproblem--> {{
<includeonly>subst:</includeonly>
#switch:{{{sig|}}}|1|yes=~~<includeonly>~~
</includeonly>
}}<noinclude>{{documentation}}</noinclude>
to this
<includeonly>{{{{{|safesubst:}}}substchecktop|DYKproblem|subst={{{subst|}}}}}</includeonly>
{{
{{{|safesubst:}}}
#switch:{{{header|}}}|1|yes==={{
{{{|safesubst:}}}
#if:{{{1|}}}|DYK nomination of {{{1}}}}}==}}
[[Image:Symbol question.svg|25px]] Hello! {{
{{{|safesubst:}}}
#ifeq:{{{nominator|yes}}}|no|An article you have been editing –- {{
{{{|safesubst:}}}
#if:{{{1|}}}|[[{{{1}}}]] }} –- was recently nominated by another user at [[T:TDYK|Did you know]], to be featured on the main page. The nomination has now been reviewed, and}}{{
{{{|safesubst:}}}
#ifeq:{{{nominator|yes}}}|yes|Your submission {{
{{{|safesubst:}}}
#if:{{{1|}}}|of [[{{{1}}}]]{{
{{{|safesubst:}}}
#if:{{{extra|}}}| and [[{{{extra}}}]]}}}} at the [[Template talk:DYK|Did You Know nominations page]] has been reviewed, and}} there still are some issues that may need to be clarified. Please review the comment(s) underneath {{
{{{|safesubst:}}}
#if:{{{1|}}}|'''{{T:TDYK|{{{1}}}|your nomination's entry}}'''|your nomination's entry}} and respond there as soon as possible. {{
{{{|safesubst:}}}
#if:{{{2|}}}|{{{2}}}|Thank you for contributing to Did You Know!}} <!--Template:DYKproblem--> {{
{{{|safesubst:}}}
#switch:{{{sig|}}}|1|yes=~~<includeonly>
</includeonly>
~~}}
<includeonly>{{{{{|safesubst:}}}substcheckbottom|subst={{{subst|}}}}}</includeonly>
<noinclude>{{Documentation}}</noinclude>
at Template:DYKproblem? Thanks. Set Sail For The Seven Seas 353° 2' 15" NET 23:32, 10 September 2010 (UTC)
- For those of us whose contact lenses don't have syntax highlighting enabled, could you describe the changes please? Chris Cunningham (user:thumperward: not at work) - talk 00:19, 11 September 2010 (UTC)
- Hm, here's what the difference seems to be. (I agree with you though, I never like having to do this myself; Seven Seas, in the future please describe the changes that go with your edit request.) I don't know anything about safesubst, so I'll refrain from comment for the moment. rʨanaɢ (talk) 00:38, 11 September 2010 (UTC)
- I've edited the code to make it easier to see the changes.
- These updates add the following changes to the template:
- Updating the substitution check code to a more efficient version.
- Updating the code to use safesubst.
- Rearrangement of includeonly tags to allow full signature code in example.
- Thanks. Set Sail For The Seven Seas 13° 8' 30" NET 00:52, 11 September 2010 (UTC)
- Hm, here's what the difference seems to be. (I agree with you though, I never like having to do this myself; Seven Seas, in the future please describe the changes that go with your edit request.) I don't know anything about safesubst, so I'll refrain from comment for the moment. rʨanaɢ (talk) 00:38, 11 September 2010 (UTC)
- Okay, Done. Please ping me if this causes any problems. Chris Cunningham (user:thumperward: not at work) - talk 08:35, 11 September 2010 (UTC)
Protected edit request on 13 September 2016
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Please replace the current template with this sandbox version per this discussion. I have tested all the permutations of options and the substituted result is the same in all cases. (ping Magioladitis?) Frietjes (talk) 14:15, 13 September 2016 (UTC)
Frietjes done. -- Magioladitis (talk) 14:36, 13 September 2016 (UTC)
Protected edit request 10 June 2020
editThis edit request has been answered. Set the |answered= or |ans= parameter to no to reactivate your request. |
Change: Please review the comment(s) underneath ...
to Please review the comment(s) at ...
(change highlighted)
since the template already links directly to the nomination page. Thanks, RandomCanadian (talk / contribs) 13:58, 10 June 2020 (UTC)
- Done — Martin (MSGJ · talk) 14:05, 10 June 2020 (UTC)