Difference between revisions of "Template:Author"

From PKC
Jump to navigation Jump to search
(Created page with "<noinclude> This is the "Author" template. {{#cargo_declare:_table=Authors |Country=String}} </noinclude> <includeonly> {{#cargo_store:_table=Authors}} {| ! Country of origin...")
 
(11 intermediate revisions by the same user not shown)
Line 2: Line 2:
This is the "Author" template.
This is the "Author" template.


{{#cargo_declare:_table=Authors
<syntaxhighlight lang=md>
|Country=String}}
{{Author
|first=firstName
|last=lastName
|description= Some description text.
|email= name@example.org
|website= some URL to one's website
}}
</syntaxhighlight>
 
Example:
{{Author
|first=firstName
|last=lastName
|description= Some description text.
|email= name@example.org
|website= some URL to one's website
}}
 
</noinclude>
</noinclude>
<includeonly>
<includeonly>
{{#cargo_store:_table=Authors}}
 
{|
{{{description}}}
! Country of origin
 
| {{{Country|}}}
==Detailed Information==
|-
Author's first name:{{{first}}}, last name:{{{last}}}.
! Books
<p>{{#if: {{{email|}}} | {{{email}}}|}}</p>
| {{#cargo_query:tables=Books|where=Authors HOLDS '{{PAGENAME}}'}}
<p>{{#if: {{{website|}}} |{{{last}}}, {{{first}}} has a website: {{{website}}}.|}}</p>
|}
=References=
</includeonly>
</includeonly>
[[Category:Author]]

Latest revision as of 09:51, 4 July 2021

This is the "Author" template.

{{Author
|first=firstName
|last=lastName
|description= Some description text.
|email= name@example.org
|website= some URL to one's website
}}

Example:



Some description text.

Detailed Information

Author's first name:firstName, last name:lastName.

name@example.org

lastName, firstName has a website: some URL to one's website.

References