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
 
(15 intermediate revisions by the same user not shown)
Line 7: Line 7:
<pre>
<pre>
  {{Documents|Author=John Doe}}
  {{Documents|Author=John Doe}}
{{Documents|Author=John Doe|Class=Application Note}}
</pre>
or
<pre>
{{Documents|Link=7986}}
{{Documents|Link=7986|Class=Application Note}}
</pre>
</pre>


Line 13: Line 19:
Note: The table data comes from the ''Documents'' [[special:CargoTables|CargoTables]]. To change the table data, please edit the respective file page
Note: The table data comes from the ''Documents'' [[special:CargoTables|CargoTables]]. To change the table data, please edit the respective file page


</noinclude><includeonly>
</noinclude><includeonly>{{#if:{{{Author|}}}|
====Documents Authored by {{{Author}}}====
===={{#if:{{{Class|}}}|{{{Class}}}s|Documents}} Authored by {{{Author}}}====
<small>
{{Documents by Author|{{{Author}}}|{{{Class|}}}}}
</small>
|}}{{#if:{{{Link|}}}|
===={{#if:{{{Class|}}}|{{{Class}}}s|Documents}} Referencing <span style="text-transform:capitalize;">{{{Link}}}</span>====
<small>
<small>
{{#cargo_query:
{{Documents by Link|{{{Link}}}|{{{Class|}}}}}
|tables=Documents
|where=Documents.Authors HOLDS '{{{Author}}}'
|fields=Documents._pageName=Document,Documents.Class,Documents.Title=Title,Documents.Authors=Authors,Documents.Year,Documents.Links
}}
</small>
</small>
|}}

Latest revision as of 07:35, 20 December 2023

This is the Documents template.

It inserts tables that list documents selected by various criteria.

Call it as

 {{Documents|Author=John Doe}}
 {{Documents|Author=John Doe|Class=Application Note}}

or

 {{Documents|Link=7986}}
 {{Documents|Link=7986|Class=Application Note}}

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