Template:Title: Difference between revisions

From Shifti
Jump to navigation Jump to search
m debugging aid.
m another debugging aid
Line 1: Line 1:
{{PAGENAME}}---{{BASEPAGENAME}}---{{SUBPAGENAME}}
{{PAGENAME}}---{{BASEPAGENAME}}---{{SUBPAGENAME}}---{{NAMESPACE}}
{{#ifeq: {{NAMESPACE}} |User|
{{#ifeq: {{NAMESPACE}} |User|
   {{#vardefine:auth|{{{author|{{BASEPAGENAME}}}}}}}
   {{#vardefine:auth|{{{author|{{BASEPAGENAME}}}}}}}

Revision as of 01:16, 23 July 2007

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


  |
 
 
 

}}

Title
{{#ifeq: | |

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

}}


Usage: {{title|name=Story Title|author=Author Name|user=shifti user name}}

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.