Template talk:test
From Homestar Runner Wiki
m (→Pluralizing: Reply for It's dot com.) |
(→Pluralizing: hmm) |
||
Line 42: | Line 42: | ||
:::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. -- [[User:Tom|Tom]] 03:32, 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. -- [[User:Tom|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 and tweak the grammar after all. {{User:Qermaq/sig}} 03:38, 18 January 2007 (UTC) |
Revision as of 03:38, 18 January 2007
Usage
{{subst:test|diff=[link to diff]}} ~~~~
- or
{{subst:test|diff1=[link to first diff]|diff2=[link to second diff]}} ~~~~
- or
{{subst:test|diff1=[link to first diff]|diff2=[link to second diff]|diff3=[link to third diff]}} ~~~~
Example:
{{subst:test|diff=[http://www.hrwiki.org/index.php?title=Main_Page&diff=0&oldid=1]}} ~~~~
- or
{{subst:test|diff1=[http://www.hrwiki.org/index.php?title=Main_Page&diff=0&oldid=1]|diff2=[http://www.hrwiki.org/index.php?title=Talk:Main_Page&diff=0&oldid=1]}} ~~~~
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)
- 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)
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)
- 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 and tweak the grammar after all. - Qermaq - (T/C)
03:38, 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 and tweak the grammar after all. - Qermaq - (T/C)
- 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)