Template:Documents: Difference between revisions

From TekWiki
Jump to navigation Jump to search
(Created page with "<noinclude> This is the '''Documents''' template. It inserts tables that list documents selected by various criteria. Call it as <pre> {{Documents|Author=John Doe}} </pre> leaving no spaces around the name. Note: The table data comes from the ''Documents'' CargoTables. To change the table data, please edit the respective file page </noinclude><includeonly> ====Documents Authored by {{{Author}}}==== <small> {{#cargo_query: |tables=Documents |...")
 
No edit summary
Line 14: Line 14:


</noinclude><includeonly>
</noinclude><includeonly>
{{#if:{{{Author}}}|
====Documents Authored by {{{Author}}}====
====Documents Authored by {{{Author}}}====
<small>
<small>
{{#cargo_query:
{{#cargo_query:
|tables=Documents
{{!}}tables=Documents
|where=Documents.Authors HOLDS '{{{Author}}}'
{{!}}where=Documents.Authors HOLDS '{{{Author}}}'
|fields=Documents._pageName=Document,Documents.Class,Documents.Title=Title,Documents.Authors=Authors,Documents.Year,Documents.Links
{{!}}fields=Documents._pageName=Document,Documents.Class,Documents.Title=Title,Documents.Authors=Authors,Documents.Year,Documents.Links
}}
}}
</small>
</small>
|}}
{{#if:{{{Links}}}|
====Documents Referencing {{{Links}}}====
<small>
{{#cargo_query:
{{!}}tables=Documents
{{!}}where=Documents.Links HOLDS '{{{Links}}}'
{{!}}fields=Documents._pageName=Document,Documents.Class,Documents.Title=Title,Documents.Authors=Authors,Documents.Year,Documents.Links
}}
</small>
|}}

Revision as of 03:26, 7 October 2023

This is the Documents template.

It inserts tables that list documents selected by various criteria.

Call it as

 {{Documents|Author=John Doe}}

leaving no spaces around the name.

Note: The table data comes from the Documents CargoTables. To change the table data, please edit the respective file page