On 2/20/06, Phil Boswell <phil.boswell(a)gmail.com> wrote:
"The Cunctator" <cunctator(a)gmail.com>
wrote in
message news:dfd0b40602190906n4d888a34qdb48560dc5701b31@mail.gmail.com...
Is there some way to write a working template
that does what I'd like
it to do with this (nonworking) code?
As of
[{{<includeonly>subst:</includeonly>FULLPAGENAME|oldid={{REVISIONID}}}}
this edit], this article uses content from {{{source}}}.
This is from [[Template:GFDLSource]]
As you can see, I'm trying to automatically stamp the article with a
link to the current revision.
I would have suggested
{{fullurl:{{subst:FULLPAGENAME}}|oldid={{subst:REVISIONID}}}} but as you can
see from the talk page, {{REVISIONID}} doesn't seem to be defined until
after the save, which means that it would not be avilable for SUBSTitution:
http://en.wikipedia.org/wiki/Template_talk:GFDLSource
I think I've figured it out:
Template:
As of
[{{fullurl:<includeonly>{{FULLPAGENAME}}</includeonly><noinclude><nowiki>{{FULLPAGENAME}}</nowiki></noinclude>|oldid={{{revision}}}}}
this edit], this article uses content from '''{{{source}}}'''.
The
original article was at '''[{{{sourcepath}}}
"{{{sourcearticle}}}"]'''. As with [[Wikipedia]], the text of
{{{source}}} is available under the [[Wikipedia:Text of the GNU Free
Documentation License]], and all relevant terms must be followed.
<includeonly>[[Category:GFDL|{{PAGENAME}}]]</includeonly><noinclude><nowiki>[[Category:GFDL|{{PAGENAME}}]]</nowiki></noinclude>
Usage:
{{Template:GFDLSource|source=source
name|sourcepath=url|sourcearticle=article title|revision=Wikipedia
revision id}}
Still trying to figure out if there's any way to usefully use {{REVISIONID}}.