Template:Reference

From Odp

(Difference between revisions)
Jump to: navigation, search
(New page: <noinclude> This is the 'Reference' template. It should be called in the following format: <pre> {{Reference |Label= |Subject= |Type= |URL= |Description= }} </pre> Edit the page to see the...)
Current revision (16:31, 15 March 2010) (view source)
 
(17 intermediate revisions not shown.)
Line 4: Line 4:
<pre>
<pre>
{{Reference
{{Reference
-
|Label=
 
|Subject=
|Subject=
 +
|Label=
 +
|Description=
|Type=
|Type=
 +
|TypeOther=
|URL=
|URL=
-
|Description=
 
}}
}}
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
-
</noinclude><includeonly>
+
</noinclude><includeonly>__NOTOC__ __NOEDITSECTION__
 +
 
{| class="wikitable"
{| class="wikitable"
 +
! Subject
 +
| [[ReferenceSubject::{{{Subject|}}}]]
 +
|-
! Label
! Label
| [[ReferenceLabel::{{{Label|}}}]]
| [[ReferenceLabel::{{{Label|}}}]]
|-
|-
-
! Subject(s)
+
! Description
-
| {{#arraymap:{{{Subject|}}}|,|x|[[ReferenceSubject::x]]}}
+
| [[ReferenceDescription::{{{Description|}}}]]
|-
|-
! Type
! Type
-
| [[ReferenceType::{{{Type|}}}]]
+
| {{#ifeq:{{{Type|}}}|Other|[[ReferenceType::{{{TypeOther|}}}]]|[[ReferenceType::{{{Type|}}}]]}}
|-
|-
! URL
! URL
| [[ReferenceURL::{{{URL|}}}]]
| [[ReferenceURL::{{{URL|}}}]]
-
|-
 
-
! Description
 
-
| [[ReferenceDescription::{{{Description|}}}]]
 
|}
|}
 +
<div style="border-top:1px solid #ccc;border-bottom:1px solid #ccc;background-color:#efefef;margin:auto;margin-top:20px;clear:both;text-align:center">[[{{{Subject|}}}|Go to the subject of this reference]] | [[Community:References|All references]] | {{#formlink:Reference|Add another reference to {{{Subject|}}}||Reference[Subject]={{{Subject|}}}&subject={{{Subject|}}}|}}</div>
[[Category:Reference]]
[[Category:Reference]]
</includeonly>
</includeonly>

Current revision

This is the 'Reference' template. It should be called in the following format:

{{Reference
|Subject=
|Label=
|Description=
|Type=
|TypeOther=
|URL=
}}

Edit the page to see the template text.

Personal tools
Quality Committee
Content OP publishers