Template:Author: Difference between revisions
Jump to navigation
Jump to search
Documentation
No edit summary |
No edit summary |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{# | <includeonly>{{#if:{{{an3|}}}|{{#ifexist:{{alias|{{{an3}}}}}|{{#dplvar:set|ax3|[[{{alias|{{{an3}}}}}|{{{an3}}}]]}}|{{#dplvar:set|ax3|{{{an3}}}<sup>[{{fullurl:{{alias|{{{an3}}}}}|action=edit&preload=Template:New_lyricist/Preload}} create page]</sup>}}}}}}{{#if:{{{an2|}}}|{{#ifexist:{{alias|{{{an2}}}}}|{{#dplvar:set|ax2|[[{{alias|{{{an2}}}}}|{{{an2}}}]]}}|{{#dplvar:set|ax2|{{{an2}}}<sup>[{{fullurl:{{alias|{{{an2}}}}}|action=edit&preload=Template:New_lyricist/Preload}} create page]</sup>}}}}}}{{#if:{{{1|}}}|{{#switch:{{{1|}}}|Anonymous|Anonymous author|Traditional|Unknown={{#dplvar:set|an1|Anonymous}}[[Category:Anonymous texts]]|#default={{#dplvar:set|ax1|[[{{{1|}}}]]}}[[Category:Texts by known authors]]}}|{{#dplvar:set|ax1|}}}}{{#switch:{{{page|text}}}|work=:({{#if:{{{an3|}}}|{{#dplvar:ax1}}, {{#dplvar:ax2}}, and {{#dplvar:ax3}}|{{#if:{{{an2|}}}|{{#dplvar:ax1}} and {{#dplvar:ax2}}|{{#dplvar:ax1}}}}}}{{#if:{{{yr|}}}|, {{{yr|}}}}})|text={{#if:{{{an3|}}}|<b>Authors:</b> {{#dplvar:ax1}}, {{#dplvar:ax2}}, and {{#dplvar:ax3}}|{{#if:{{{an2|}}}|<b>Authors:</b> {{#dplvar:ax1}} and {{#dplvar:ax2}}|<b>Author:</b> {{#dplvar:ax1}}}}}}{{#if:{{{yr|}}}|, {{{yr|}}}}}{{#if:{{{pub|}}}| in ''{{{pub}}}''}}.}}</includeonly><noinclude> | ||
| | |||
| | |||
| | |||
}}</includeonly><noinclude> | |||
{{prot-temp}} | {{prot-temp}} | ||
{{Doc|1= | {{Doc|1= | ||
'''This template''' is designed for a '''text page''', so that the a link to the text can appear on the author's "Lyricist" page, using template {{tl|AuthorTextsList}}. Template <tt>Author</tt> | '''This template''' is designed for a '''text page''', so that the a link to the text can appear on the author's "Lyricist" page, using template {{tl|AuthorTextsList}}. Template <tt>Author</tt> may also be used on a ''work'' page, below the text. | ||
;Syntax | ;Syntax | ||
<tt><nowiki>{{Author|<Author>|<First text line>|yr=<year>|page=<text or work>|an2=<aname2>|an3=<aname3>|pub=<pubname>}}</nowiki></tt> | |||
<u>Parameters</u> | |||
# Author's name, exactly as it appears on the Author (Lyricist) page. | |||
# First line of <u>text</u>, same as a text page title (without the author's name) but not necessarily the work page title. This text will appear on the Author-Lyricist's page under <big>Texts by (Author)</big>. | |||
: | * <tt>yr=</tt> – Year the text was published. | ||
* <tt>page=</tt> – One of three words: (a) <tt>text</tt> for use as a separate line on a text page, ''or'' (b) <tt>work</tt> for use following text on a work page, ''or'' (c) <tt>line</tt> for use within a text line on a work page or text page. Defaults to <tt>text</tt> | |||
* <tt>an2=</tt> – (Optional) second author. | |||
* <tt>an3=</tt> – (Optional) third author. | |||
* <tt>pub=</tt> – (Optional) title of publication where text first appeared. If you want a link to appear, you must supply square brackets; please do not use either template {{tl|NoCo}} or {{tl|NoComp}} – the curly brackets will mess up the program. | |||
<u>Appearance of template</u> | |||
{{{!}}class="wikitable" align=center | |||
!color=#ddffdd{{!}}Command | |||
!color=#ddffdd{{!}}page= | |||
!color=#ddffdd{{!}}Appearance | |||
!color=#ddffdd{{!}}Use on pagetype: | |||
{{!}}- | |||
{{!}}rowspan=4{{!}}<nowiki>{{Author|Paul Gerhardt|Befiehl du deine Wege|yr=1653|page=…}}</nowiki>{{!}}{{!}}text{{!}}{{!}}'''Author:''' <font color=blue>Paul Gerhardt</font>, 1664{{!}}{{!}}Text page | |||
{{!}}- | |||
{{!}}work{{!}}{{!}}(<font color=blue>Paul Gerhardt</font>, 1664){{!}}{{!}}Work page, below text | |||
{{!}}- | |||
{{!}}line{{!}}{{!}}……<font color=blue>Paul Gerhardt</font> (1664)……{{!}}{{!}}Either Work or Text page | |||
{{!}}- | |||
{{!}}} | |||
;Categorization | ;Categorization | ||
Whenever this template is used, the page is included in category {{CiteCat|Texts by known authors}} | Whenever this template is used, the page is included in category {{CiteCat|Texts by known authors}} | ||
}} | ;Also see | ||
*Template {{tl|Lyricist}} | |||
*Template {{tl|AuthorTextsList}} | |||
*Template {{tl|LyricistSettingsList}} | |||
Version 3 – 2020-11-19}} | |||
[[Category:Templates]]</noinclude> | [[Category:Templates]]</noinclude> |
Revision as of 03:22, 22 February 2021
This high-risk template has been protected from editing to prevent vandalism. Please use the talk page to ask an administrator about making an edit to change this template. |
This template is designed for a text page, so that the a link to the text can appear on the author's "Lyricist" page, using template {{AuthorTextsList}}. Template Author may also be used on a work page, below the text.
- Syntax
{{Author|<Author>|<First text line>|yr=<year>|page=<text or work>|an2=<aname2>|an3=<aname3>|pub=<pubname>}}
Parameters
- Author's name, exactly as it appears on the Author (Lyricist) page.
- First line of text, same as a text page title (without the author's name) but not necessarily the work page title. This text will appear on the Author-Lyricist's page under Texts by (Author).
- yr= – Year the text was published.
- page= – One of three words: (a) text for use as a separate line on a text page, or (b) work for use following text on a work page, or (c) line for use within a text line on a work page or text page. Defaults to text
- an2= – (Optional) second author.
- an3= – (Optional) third author.
- pub= – (Optional) title of publication where text first appeared. If you want a link to appear, you must supply square brackets; please do not use either template {{NoCo}} or {{NoComp}} – the curly brackets will mess up the program.
Appearance of template
Command | page= | Appearance | Use on pagetype: |
---|---|---|---|
{{Author|Paul Gerhardt|Befiehl du deine Wege|yr=1653|page=…}} | text | Author: Paul Gerhardt, 1664 | Text page |
work | (Paul Gerhardt, 1664) | Work page, below text | |
line | ……Paul Gerhardt (1664)…… | Either Work or Text page |
- Categorization
Whenever this template is used, the page is included in category Texts by known authors
- Also see
- Template {{Lyricist}}
- Template {{AuthorTextsList}}
- Template {{LyricistSettingsList}}
Version 3 – 2020-11-19