Template:Byline: Difference between revisions
ShadowWolf (talk | contribs) m have this add the 'Title' semantic property automagically - just like Template:Title does |
ShadowWolf (talk | contribs) m add a note that this template is not intended to be used for any purpose other than what is stated on this page |
||
| (One intermediate revision by the same user not shown) | |||
| Line 3: | Line 3: | ||
-->{{#vardefine: cauth | {{{coauthors| }}} }}<!-- | -->{{#vardefine: cauth | {{{coauthors| }}} }}<!-- | ||
-->{{#ifeq: {{#var:cauth}} | | | -->{{#ifeq: {{#var:cauth}} | | | ||
<span style="text-indent: 0em;"> {{#ifeq: {{#var:auth}} | | | |||
{{#ifeq: {{#var:uname}} | || | {{#ifeq: {{#var:uname}} | || | ||
Author: ''[[User:{{#var:uname}}|{{#var:uname}}]]'' {{Author tag|{{#var:uname}}}} | Author: ''[[User:{{#var:uname}}|{{#var:uname}}]]'' {{Author tag|{{#var:uname}}}} | ||
| Line 21: | Line 21: | ||
}} | }} | ||
}} | }} | ||
}} {{#if:{{{category|}}}| — see also [[:Category:{{{category}}}|other works by this author]]}}{{Title tag|{{PAGENAME}}}}<hr/><noinclude> | }} {{#if:{{{category|}}}| — see also [[:Category:{{{category}}}|other works by this author]]}}{{Title tag|{{PAGENAME}}}}</span><hr/><noinclude> | ||
This template is used for putting a standardized byline at the top of story pages that are in the main namespace, and thus have a title header automatically generated by the wiki software. For stories on user subpages use [[Template:Title]]. | This template is used for putting a standardized byline at the top of story pages that are in the main namespace, and thus have a title header automatically generated by the wiki software. For stories on user subpages use [[Template:Title]]. | ||
*"name" is a freeform parameter that is the text that will be displayed as an author name | *"name" is a freeform parameter that is the text that will be displayed as an author name | ||
| Line 33: | Line 33: | ||
<nowiki>{{byline|author=<name>|coauthors=<list of names>|user=<username>}}</nowiki> | <nowiki>{{byline|author=<name>|coauthors=<list of names>|user=<username>}}</nowiki> | ||
'''IMPORTANT NOTE:''' If you do not use the 'coauthors' parameter this template will automatically insert the [[property:author|author property]]. This was done because this template was designed and is intended for use solely to add the name(s) of the author(s) to the start of a story. While other use is not strictly prohibited, it is not recommended simply because it does add semantic properties. | |||
</noinclude> | </noinclude> | ||
Latest revision as of 20:44, 18 February 2009
{{#ifeq: | | {{#ifeq: | |
{{#ifeq: | ||
Author: [[User:|]]
}} |
{{#ifeq: | |
Author: ' |
Author: [[User:|]]
}}
}} |
{{#ifeq: | |
{{#ifeq: | | Authors: ' |
Authors: [[User:|]]
}} |
{{#ifeq: | |
Authors: |
Author: [[User:|]]
}}
}}
}} {{#if:| — see also [[:Category:{{{category}}}|other works by this author]]}}
This template is used for putting a standardized byline at the top of story pages that are in the main namespace, and thus have a title header automatically generated by the wiki software. For stories on user subpages use Template:Title.
- "name" is a freeform parameter that is the text that will be displayed as an author name
- "user" is the username of the author that the author's name will be linked to. Don't include the "User:" prefix, that will be added automatically to the link.
- "coauthors" is an optional parameter where one can list other authors who have contributed to a story. The text can include links to user pages if any of the coauthors are also Shifti users.
- "category" is the name of the category containing the author's work. Omitting this results in a category link not being created.
The following blank template can be copied and pasted for convenience:
{{byline|author=<name>|coauthors=<list of names>|user=<username>}}
IMPORTANT NOTE: If you do not use the 'coauthors' parameter this template will automatically insert the author property. This was done because this template was designed and is intended for use solely to add the name(s) of the author(s) to the start of a story. While other use is not strictly prohibited, it is not recommended simply because it does add semantic properties.