Template:Documents: Difference between revisions

From TekWiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(9 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|}}}|
{{#if:{{{Author|}}}|
===={{#if:{{{Class|}}}|{{{Class}}}s|Documents}} Authored by {{{Author}}}====
====Documents Authored by {{{Author}}}====
<small>
<small>
{{Documents by Author|{{{Author}}}}}
{{Documents by Author|{{{Author}}}|{{{Class|}}}}}
</small>
</small>
|}}
|}}{{#if:{{{Link|}}}|
{{#if:{{{Links|}}}|
===={{#if:{{{Class|}}}|{{{Class}}}s|Documents}} Referencing <span style="text-transform:capitalize;">{{{Link}}}</span>====
====Documents Referencing {{{Links}}}====
<small>
<small>
{{Documents by Link|{{{Links}}}}}
{{Documents by Link|{{{Link}}}|{{{Class|}}}}}
</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