Template:Webref: Difference between revisions

From NDWiki
Jump to navigation Jump to search
(Restoring (not using subst:))
(Added descriptions and examples)
Line 1: Line 1:
{{#if: {{{original-source|}}}  
{{#if: {{{original-source|}}}  
| "{{{title}}}" (found at [{{{url}}} {{{publisher}}}], original published by ''{{#if:{{{original-source-url|}}}|[{{{original-source-url}}} {{{original-source}}}]|{{{original-source}}}}}'')  
| "{{{title}}}" (found at [{{{url}}} {{{publisher}}}], original published by ''{{#if:{{{original-source|}}}|[{{{original-source-url}}} {{{original-source}}}]|{{{original-source}}}}}'')  
| "[{{{url}}} {{{title}}}]" at {{{publisher}}}
| "[{{{url}}} {{{title}}}]" at {{{publisher}}}
}}. Accessed on {{{accessdate}}}.
}}. Accessed on {{{accessdate}}}.
{{#if: {{{note|}}}<!&minus;&minus; {{{note|}}} &minus;&minus;>|}}
<noinclude>
<noinclude>


This template is used to reference to a online source in a NDWiki article, either direct or inderect.  
This template is used to reference to a online source in a NDWiki article, either direct or inderect. It should be used in the '''Sources''' section.
 
== Parameters ==
 
;url : The full [[wikipedia:URL|URL]] to the reference on the web (mandatory).
;title : The title of of the reference (mandatory).
;publisher : The publisher. The one who is hosting the website (mandatory).
;accessdate : The date when the web reference was accessed (mandatory).
;note : This paramater gives the posibility to add a note about this reference. The note will not be visible on the page.
;original-source : If a reference is indirect, this parameter describes the original source.
;original-source-url : If a indirect reference was a webpage, use this parameter for that URL.  


==Example==
==Example==
===Direct reference===
<nowiki>{{Webref|url=http://www.mozilla.com|title=Mozilla - Firefox web browser &amp; Thunderbird email client|publisher=The Mozilla Foundation|accessdate=</nowiki>{{thisday}}}}
gives
{{Webref|url=http://www.mozilla.com|title=Mozilla - Firefox web browser &amp; Thunderbird email client|publisher=The Mozilla Foundation|accessdate={{thisday}}}}
===Indirect reference===
<nowiki>{{Webref|url=http://foobar.com/FBitw|title=FooBar is the way|publisher=FooBar Inc|original-source=FooBar Press|original-source-url=http://foo.bar.com/FBitw|accessdate=</nowiki>{{thisday}}}}
gives


{{Webref|url=http://foobar.com/FBitw|title=FooBar is the way|publisher=FooBar Inc|original-source=FooBar Press|original-source-url=http://foo.bar.com/FBitw|accessdate={{thisday}}}}


[[Category:Templates|{{PAGENAME}}]]
[[Category:Templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 14:13, 12 August 2009

"[{{{url}}} {{{title}}}]" at {{{publisher}}}. Accessed on {{{accessdate}}}.


This template is used to reference to a online source in a NDWiki article, either direct or inderect. It should be used in the Sources section.

Parameters

url
The full URL to the reference on the web (mandatory).
title
The title of of the reference (mandatory).
publisher
The publisher. The one who is hosting the website (mandatory).
accessdate
The date when the web reference was accessed (mandatory).
note
This paramater gives the posibility to add a note about this reference. The note will not be visible on the page.
original-source
If a reference is indirect, this parameter describes the original source.
original-source-url
If a indirect reference was a webpage, use this parameter for that URL.

Example

Direct reference

{{Webref|url=http://www.mozilla.com|title=Mozilla - Firefox web browser & Thunderbird email client|publisher=The Mozilla Foundation|accessdate={{subst:CURRENTDAY}} {{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}} }} gives

"Mozilla - Firefox web browser & Thunderbird email client" at The Mozilla Foundation. Accessed on {{subst:CURRENTDAY}} {{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}.


Indirect reference

{{Webref|url=http://foobar.com/FBitw|title=FooBar is the way|publisher=FooBar Inc|original-source=FooBar Press|original-source-url=http://foo.bar.com/FBitw|accessdate={{subst:CURRENTDAY}} {{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}} }} gives

"FooBar is the way" (found at FooBar Inc, original published by FooBar Press). Accessed on {{subst:CURRENTDAY}} {{subst:CURRENTMONTHNAME}} {{subst:CURRENTYEAR}}.