Template:Title: Difference between revisions

From Shifti
Jump to navigation Jump to search
m Protected "Template:Title": This is a high-risk template, used on many pages throughout Shifti. [edit=sysop:move=sysop]
add an optional "category" parameter
Line 23: Line 23:
     }}
     }}
   }}
   }}
}}<hr/><noinclude>
}} {{#if:{{{category|}}}| &mdash; see also [[:Category:{{{category}}}|other works by this author]]}}<hr/><noinclude>
Usage: <nowiki>{{title|name=Story Title|author=Author Name|user=shifti user name|coauthors=&lt;extra authorship information&gt;}}</nowiki>
Usage:
:This generates a headerbar like you see above, with <nowiki>{{{name}}}, {{{author}}} and {{{user}}}</nowiki> values properly replaced. <nowiki>{{{user}}}</nowiki> is used to generate a link back to the authors user page. Any of the parameters can be omitted - in fact, on a page that is a sub-page of a user page they can be omitted entirely and the header will still be be properly generated. On other pages omission of all the parameters will result in only the addition of the story title. For an example of what all of the preceding means, take a look at [[User:ShadowWolf/Test Page]].
 
<pre>{{title
|name= Story Title
|author= Author Name
|user= shifti user name
|coauthors= extra authorship information
|category= name of author's category}}
</pre>
 
This generates a headerbar like you see above, with <nowiki>{{{name}}}, {{{author}}} and {{{user}}}</nowiki> values properly replaced. <nowiki>{{{user}}}</nowiki> is used to generate a link back to the authors user page. Any of the parameters can be omitted - in fact, on a page that is a sub-page of a user page they can be omitted entirely and the header will still be be properly generated. On other pages omission of all the parameters will result in only the addition of the story title. For an example of what all of the preceding means, take a look at [[User:ShadowWolf/Test Page]].
</noinclude>
</noinclude>

Revision as of 14:33, 16 February 2008

{{#ifeq: Template |User| Title | Title}}
{{#ifeq: | |

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

}} {{#if:| — see also [[:Category:{{{category}}}|other works by this author]]}}


Usage:

{{title
|name= Story Title
|author= Author Name
|user= shifti user name
|coauthors= extra authorship information
|category= name of author's category}}

This generates a headerbar like you see above, with {{{name}}}, {{{author}}} and {{{user}}} values properly replaced. {{{user}}} is used to generate a link back to the authors user page. Any of the parameters can be omitted - in fact, on a page that is a sub-page of a user page they can be omitted entirely and the header will still be be properly generated. On other pages omission of all the parameters will result in only the addition of the story title. For an example of what all of the preceding means, take a look at User:ShadowWolf/Test Page.