Template talk:test
From Homestar Runner Wiki
m (Add sig in example.) |
(→Pluralizing) |
||
Line 18: | Line 18: | ||
::::Whoops, I've added usage examples above. Thanks Thunderbird. -- [[User:Tom|Tom]] 20:53, 25 March 2006 (UTC) | ::::Whoops, I've added usage examples above. Thanks Thunderbird. -- [[User:Tom|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 <nowiki>{{subst:test}}</nowiki>, and second to change the grammar and add the other link(s). | ||
+ | |||
+ | What about changing the test template to this: | ||
+ | <pre> | ||
+ | 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> | ||
+ | </pre> | ||
+ | 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 <nowiki>{{test|diff=[link]}}</nowiki>, the template is invoked with <nowiki>{{test|[link]}}</nowiki>, <nowiki>{{test|[link1]|[link2]}}</nowiki>, etc. | ||
+ | |||
+ | Does anyone else agree that this is a good idea? If so, I would be happy to make the necessary changes on the [http://www.hrwiki.org/index.php?title=Special:Whatlinkshere&target=Template%3Atest pages that are currently using this template]. Thanks, {{User:Trey56/sig}} 16:49, 15 January 2007 (UTC) |
Revision as of 16:49, 15 January 2007
Usage
{{subst:test|diff=[link to diff]}} ~~~~
for example
{{subst:test|diff=[http://www.hrwiki.org/index.php?title=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)