Difference between revisions of "Template:References"

From Make Inclusive Websites
Jump to navigation Jump to search
Line 19: Line 19:
 
|coord_head5=
 
|coord_head5=
 
|references5=
 
|references5=
 +
|linksto=
 +
|belongsto=
 +
|contains=
 
}}
 
}}
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
{{#cargo_declare:_table=referencecollection|headline1=String|coord_head1=List (,) of String|references1=List (,) of String|headline2=String|coord_head2=List (,) of String|references2=List (,) of String|headline3=String|coord_head3=List (,) of String|references3=List (,) of String|headline4=String|coord_head4=List (,) of String|references4=List (,) of String|headline5=String|coord_head5=List (,) of String|references5=List (,) of String)}}
+
{{#cargo_declare:_table=referencecollection|headline1=String|coord_head1=List (,) of String|references1=List (,) of String|headline2=String|coord_head2=List (,) of String|references2=List (,) of String|headline3=String|coord_head3=List (,) of String|references3=List (,) of String|headline4=String|coord_head4=List (,) of String|references4=List (,) of String|headline5=String|coord_head5=List (,) of String|references5=List (,) of String|linksto=List (,) of Page|belongsto=List (,) of Page|contains=List (,) of Page)}}
 
</noinclude><includeonly>{{#cargo_store:_table=referencecollection}}{| class="wikitable"
 
</noinclude><includeonly>{{#cargo_store:_table=referencecollection}}{| class="wikitable"
 
! headline 1
 
! headline 1
Line 68: Line 71:
 
! references 5
 
! references 5
 
| {{{references5|}}}
 
| {{{references5|}}}
 +
|-
 +
! links to
 +
| {{#arraymap:{{{linksto|}}}|,|x|[[x]]}}
 +
|-
 +
! belongs to
 +
| {{#arraymap:{{{belongsto|}}}|,|x|[[x]]}}
 +
|-
 +
! contains
 +
| {{#arraymap:{{{contains|}}}|,|x|[[x]]}}
 
|}
 
|}
  
 
[[Category:references]]
 
[[Category:references]]
 
</includeonly>
 
</includeonly>

Revision as of 15:39, 3 April 2021

This is the "References" template. It should be called in the following format:

{{References
|headline1=
|coord_head1=
|references1=
|headline2=
|coord_head2=
|references2=
|headline3=
|coord_head3=
|references3=
|headline4=
|coord_head4=
|references4=
|headline5=
|coord_head5=
|references5=
|linksto=
|belongsto=
|contains=
}}

Edit the page to see the template text. This template defines the table "referencecollection". View table.