Template:Title: Difference between revisions

From Shifti
Jump to navigation Jump to search
bugfix to the bugfix
m strip nice formatting so the parser doesn't confuse the indentation with <pre>
Line 1: Line 1:
{{#ifeq: {{{name| }}} | |
{{#ifeq:{{{name| }}}| |{{#ifeq:{{{author| }}}| |{{#ifeq:{{NAMESPACE}}|User|<span style="font-size: 132%;"><b>{{SUBPAGENAME}}</b></span><br/>Author: ''[[User:{{BASEPAGENAME}}|{{BASEPAGENAME}}]]''|<span style="font-size: 132%; font-weight: bold;">{{PAGENAME}}</span>}}|{{#ifeq:{{NAMESPACE}}|User|<span style="font-size: 132%;"><b>{{SUBPAGENAME}}</b></span><br/>|<span style="font-size: 132%; font-weight: bold;">{{PAGENAME}}</span>}}{{#ifeq:{{{user| }}}| |Author: ''{{{author}}}''|Author: ''[[User:{{{user}}}|{{{author}}}]]''}}}}|<span style="font-size: 132%;"><b>{{{name}}}</b></span><br/>{{#ifeq:{{{author| }}}| |{{#ifeq: {{NAMESPACE}}|User|Author: ''[[User:{{BASEPAGENAME}}|{{BASEPAGENAME}}]]''|{{#ifeq: {{{user| }}}| |Author: ''{{{author}}}''|Author: ''[[User:{{{user}}}|{{{author}}}]]''}}}}|{{#ifeq:{{{user| }}}| |Author: ''{{{author}}}''|Author: ''[[USER:{{{user}}}|{{{author}}}]]''}}}}}}<hr/><noinclude>
  {{#ifeq: {{{author| }}} | |
    {{#ifeq:{{NAMESPACE}} |User|
      <span style="font-size: 132%;"><b>{{SUBPAGENAME}}</b></span><br/>Author: ''[[User:{{BASEPAGENAME}}|{{BASEPAGENAME}}]]'' |
      <span style="font-size: 132%; font-weight: bold;">{{PAGENAME}}</span>
    }} |
    {{#ifeq:{{NAMESPACE}} |User|
      <span style="font-size: 132%;"><b>{{{SUBPAGENAME}}}</b></span><br/> |
      <span style="font-size: 132%; font-weight: bold;">{{PAGENAME}}</span>
    }}
    {{#ifeq: {{{user| }}} | |
      Author: ''{{{author}}}'' |
      Author: ''[[User:{{{user}}}|{{{author}}}]]''
    }}
  }} |
  <span style="font-size: 132%;"><b>{{{name}}}</b></span><br/>
  {{#ifeq: {{{author| }}} | |
    {{#ifeq: {{NAMESPACE}} |User|
      Author: ''[[User:{{BASEPAGENAME}}|{{BASEPAGENAME}}]]'' |
      {{#ifeq: {{{user| }}} | |
        Author: ''{{{author}}}'' |
        Author: ''[[User:{{{user}}}|{{{author}}}]]''
      }}
    }} |
    {{#ifeq: {{{user| }}} | |
      Author: ''{{{author}}}'' |
      Author: ''[[USER:{{{user}}}|{{{author}}}]]''
    }}
  }}
}}<hr/><noinclude>
Usage: <nowiki>{{title|name=Story Title|author=Author Name|user=shifti user name}}</nowiki>
Usage: <nowiki>{{title|name=Story Title|author=Author Name|user=shifti user name}}</nowiki>
: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]].
: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 22:08, 22 July 2007

{{#ifeq: | |{{#ifeq: | |{{#ifeq:Template|User|Title
Author: Title|Title}}|{{#ifeq:Template|User|Title
|Title}}{{#ifeq: | |Author: {{{author}}}|Author: [[User:{{{user}}}|{{{author}}}]]}}}}|{{{name}}}
{{#ifeq: | |{{#ifeq: Template|User|Author: Title|{{#ifeq: | |Author: {{{author}}}|Author: [[User:{{{user}}}|{{{author}}}]]}}}}|{{#ifeq: | |Author: {{{author}}}|Author: [[USER:{{{user}}}|{{{author}}}]]}}}}}}


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.