Template talk:test

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
m (subst: Reply for Thunderbird.)
m (Add sig in example.)
Line 1: Line 1:
==Usage==
==Usage==
-
<code><nowiki>{</nowiki>{subst:test|diff=[link to diff]}}</code>
+
<code><nowiki>{{subst:test|diff=[link to diff]}} ~~~~</nowiki></code>
for example
for example
-
<code><nowiki>{{subst:test|diff=[http://www.hrwiki.org/index.php?title=Main_Page&diff=0&oldid=1]}}</nowiki></code>
+
<code><nowiki>{{subst:test|diff=[http://www.hrwiki.org/index.php?title=Main_Page&diff=0&oldid=1]}} ~~~~</nowiki></code>
==subst==
==subst==

Revision as of 20:54, 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