Template talk:test

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(subst: - Code?)
m (subst: Reply for Thunderbird.)
Line 1: Line 1:
 +
==Usage==
 +
<code><nowiki>{</nowiki>{subst:test|diff=[link to diff]}}</code>
 +
 +
for example
 +
 +
<code><nowiki>{{subst:test|diff=[http://www.hrwiki.org/index.php?title=Main_Page&diff=0&oldid=1]}}</nowiki></code>
 +
==subst==
==subst==
I'm thinking <nowiki>{{subst:test}}</nowiki> 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 "<nowiki>{{subst:test | diff = [http://www.hrwiki.org/index.php?title=Main_Page&diff=0&oldid=1]}}</nowiki>".  Oooh, I'ma test that out now.  I know I like to include a diff when I inform newcomers of what's going on.[[User:Tom|<nowiki></nowiki>]]  --  [[User:Tom|Tom]] 11:43, 6 Feb 2005 (MST)
I'm thinking <nowiki>{{subst:test}}</nowiki> 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 "<nowiki>{{subst:test | diff = [http://www.hrwiki.org/index.php?title=Main_Page&diff=0&oldid=1]}}</nowiki>".  Oooh, I'ma test that out now.  I know I like to include a diff when I inform newcomers of what's going on.[[User:Tom|<nowiki></nowiki>]]  --  [[User:Tom|Tom]] 11:43, 6 Feb 2005 (MST)
Line 9: Line 16:
:::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. {{User:Thunderbird L17/Siggie}} 20:41, 25 March 2006 (UTC)
:::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. {{User:Thunderbird L17/Siggie}} 20:41, 25 March 2006 (UTC)
 +
 +
::::Whoops, I've added usage examples above.  Thanks Thunderbird.&nbsp;-- [[User:Tom|Tom]] 20:53, 25 March 2006 (UTC)

Revision as of 20:53, 25 March 2006

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)
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)
Personal tools