Template:Byline: Difference between revisions

From Shifti
Jump to navigation Jump to search
add documentation. The listing at help:Templates looks fine. :)
mNo edit summary
Line 28: Line 28:
*"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.
*"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.
*"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.
The following blank template can be copied and pasted for convenience:


<nowiki>{{byline|author=&lt;name&gt;|coauthors=&lt;list of names&gt;|user=&lt;username&gt;}}</nowiki>
<nowiki>{{byline|author=&lt;name&gt;|coauthors=&lt;list of names&gt;|user=&lt;username&gt;}}</nowiki>
</noinclude>
</noinclude>

Revision as of 19:15, 24 December 2007

{{#ifeq: | |

 {{#ifeq:  | | 
   {{#ifeq:  | || 
     Author: [[User:|]] 
   }} | 
   {{#ifeq:  | |
     Author: ' |
     Author: [[User:|]]
   }}
 }} |
 {{#ifeq:  | |
   {{#ifeq:  | | Authors: ' | 
     Authors: [[User:|]] 
   }} | 
   {{#ifeq:  | |
     Authors:  |
     Author: [[User:|]] 
   }}
 }}

}}


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.

The following blank template can be copied and pasted for convenience:

{{byline|author=<name>|coauthors=<list of names>|user=<username>}}