Template talk:test

From Homestar Runner Wiki

Jump to: navigation, search

[edit] subst

I'm thinking {{subst:test}} would be the best way to use something like this, right? I also like the idea of passing a parameter to the template as well. Something like the Template:Succession_box comes to mind so we could say "{{subst:test | diff = [http://www.hrwiki.org/index.php?title=Main_Page&diff=0&oldid=1]}}". Oooh, I'ma test that out now. I know I like to include a diff when I inform newcomers of what's going on. -- Tom 11:43, 6 Feb 2005 (MST)

I can't get the syntax right. I'll try again later. -- Tom 11:54, 6 Feb 2005 (MST)
{{subst:test}} is the prefered way of using this stub. I'll try to get the parameter working later. - Dr Haggis - Talk 14:10, 6 Feb 2005 (MST)
Okay, I figured it out. According to this, the reason it wasn't working is that parameters don't work with "subst". They will work with "subst" in 1.4, however. As of right now, {{test|diff=[http://www.hrwiki.org/index.php?title=Main_Page&diff=0&oldid=1]}} works. -- Tom 15:52, 6 Feb 2005 (MST)
So what is the specific code layout for using this template? I think something like the code that was shown at the top of the Template talk:unsigned would be a bit helpful and clearer. Thunderbird 20:41, 25 March 2006 (UTC)
Whoops, I've added usage examples above. Thanks Thunderbird. -- Tom 20:53, 25 March 2006 (UTC)

[edit] Pluralizing

It's very common for users who require the test template on their talk page to make multiple unconstructive edits. In order to add multiple links and make grammar consistent with the current template, one must make two edits on that user's talk page: first to type {{subst:test}}, and second to change the grammar and add the other link(s).

What about changing the test template to this:

Thanks for experimenting with the Homestar Runner Wiki. Your test{{#if:{{{2|}}}|s|}}({{{1}}}{{#if:{{{2|}}}|, {{{2}}}|}}{{#if:{{{3|}}}|, {{{3}}}|}}) worked, and ha{{#if:{{{2|}}}|ve|s}} now been reverted or removed. Please use [[HRWiki:Sandbox]] for any other tests you want to do, since testing in articles will normally be reverted quickly. Please see the [[Help:Editing]] page if you would like to learn more about contributing to our resource. Thanks.</includeonly><noinclude>[[Category:User Notice Templates|{{PAGENAME}}]]</noinclude>

This permits the user to enter up to three links to page changes (any more than that, and the user in question probably needs more than this template) and automatically takes care of grammar. The other thing that changes is that instead of entering {{test|diff=[link]}}, the template is invoked with {{test|[link]}}, {{test|[link1]|[link2]}}, etc.

Does anyone else agree that this is a good idea? If so, I would be happy to make the necessary changes on the pages that are currently using this template. Thanks, Trey56 16:49, 15 January 2007 (UTC)

We could create the plural one at {{test-n}} or something else. That way, we can keep {{test}} the same, not have to fix anything that would break, and have a plural test template. Though it might be worth the work to just have one, like Wikipedia does with their Template:Test. -- Tom 04:42, 17 January 2007 (UTC)
I implemented the changes above with a slight tweak, namely, you need to have "diff=" style variables in order for the link to work correctly. I changed "1", "2", and "3" above to "diff1", "diff2", and "diff3", but I also kept "diff" for ease of use and backwards-compatibility. I also updated the instructions above. I have two questions about the instructions: Should they be moved to the template page (in a noinclude section), and do we still recommend that this template be subst'd? — It's dot com 18:15, 17 January 2007 (UTC)
Awesome — the new version works great (and it's great that it's backwards compatible, so that everybody who's not aware of the change can continue to use it in its old form). Trey56 18:41, 18 January 2007 (UTC)
I think it makes sense to subst it. I don't think we'd want to change the notice after it's been left on a talk page. And I think noinclude instructions on the template page itself work. -- Tom 03:32, 18 January 2007 (UTC)
However, if we subst it, then unless we've waited for that second or third test, the whole point of the new template design is ruined. Then again, there's no reason not to subst it as a rule. So, I wonder if it's not, in the end, easier to just add the new test edit to the subst'ed text and tweak the grammar to fit after all. Qermaq - (T/C) Image:Qermaqsigpic.png 03:38, 18 January 2007 (UTC)
Well, it sometimes happens that a user or an IP makes multiple "test" edits before the template has been put on their talk page, so it's nice to have the option of putting multiple links in the template to begin with, even if you subst it. Trey56 18:41, 18 January 2007 (UTC)

So, I've been out of the loop on this, but now I'm finally in. I've often wished we could have a second-level warning rather than just adding diffs to the original {{test}} template. Indeed, a few times I've just borrowed Wikipedia's {{blatantvandal}} template with tweaks when I've felt a stronger warning was merited. I've actually considered suggesting we make a similar template for quite some time, but I never got around to discussing it until now. Heimstern Läufer 03:52, 18 January 2007 (UTC)

I think here, more than at WP, it's far more likely that any inane "test" edits are the work of not vandals, but the truly inane. We might consider a {{test2}} templae saying something like: "You have made a number of edits which could be construed as vandalism. We prefer to think they are because you are new to the wiki and are unaware of our standards and practices. Please review the information provided in the links we have previously offered you. If you have questions, feel free to post in out Talk pages concerning them. Future edits which do not meet the community's standards may be viewed as intentional vandalism." That's not perfect, but a first draft. Qermaq - (T/C) Image:Qermaqsigpic.png 04:03, 18 January 2007 (UTC)
Heimstern: I think that implementing a template like {{blatantvandal}} (although maybe we could rename it {{blockwarning}} or something) is a great idea — it is a bit of a jump from the {{test}} template which (often against reason) assumes ignorance rather than malice, to a block of that user/IP. There should be a direct warning in between, I think. Trey56 18:48, 18 January 2007 (UTC)

[edit] Just Wondering...

See this here? Just wondering why diff2 and diff3 are showing. (It's the same name, by the way). ColdReactive 15:47, 8 November 2010 (UTC)

Hard to say without knowing exactly what you put in the edit window. — It's dot com 19:46, 8 November 2010 (UTC)
I used {{subst:test|subst=subst:|diff=http://wiki.aeriagames.com/kitsusaga/index.php?title=Guilds&diff=1777&oldid=1771}} ~~~~
But {{subst:test|subst=subst:|diff=[http://wiki.aeriagames.com/kitsusaga/index.php?title=Guilds&diff=1777&oldid=1771]}} ~~~~ Doesn't work either. ColdReactive 20:01, 8 November 2010 (UTC)

That code produces the following on this wiki:

Thanks for experimenting with the Homestar Runner Wiki. Your test (http://wiki.aeriagames.com/kitsusaga/index.php?title=Guilds&diff=1777&oldid=1771) worked, and has now been reverted or removed. Please use HRWiki:Sandbox for any other tests you want to do, since testing in articles will normally be reverted quickly. Please see the Help:Editing page if you would like to learn more about contributing to our resource. Thanks. — It's dot com 20:40, 8 November 2010 (UTC)

The differences in the code between our test template and the one on the other wiki are cosmetic only. Nevertheless, I copied the exact code from the other wiki to a testing area on our server and got the same result as above. I also notice that the preview text at the top of the template on the other wiki is singular, not plural (which means it's honoring the empty {{{diff2|}}}). Thus, either you misentered the template the first go-around or there's some difference in the underlying MediaWiki software between the two wikis. (We were running MediaWiki 1.8 when we first implemented the feature in question, so I have no reason to think it wouldn't work in the 1.11 the other wiki is running.) I can't edit the other wiki, so I can't do any testing there, and since it works here the problem appears to be outside our scope. — It's dot com 20:40, 8 November 2010 (UTC)

It's fine, I guess. Most people over there on Kitsu Saga would rather just be warned and whatnot without it being all fancy anyway. I'm going to go delete the template and just warn people manually from now on, as there won't be as many people editing that wiki as one might think. Also, the reason why you can't edit anything is A) It requires a login. B) The registration I believe is gonked, and C) when you register for an AGE account, it treats everyone who edits as a bot... on all of their wikis. Apparently, their wiki system is all automated, and they actually don't really take care of them at all. ColdReactive 09:41, 9 November 2010 (UTC)
Personal tools