Template:Title: Difference between revisions

From Shifti
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
{{#ifeq:{{{name| }}}| |{{#ifeq: {{{author| }}}| |{{#ifeq:{{NAMESPACE}}|User|<span style="font-size: 22px;?><b>{{SUBPAGENAME}}</b></span><br/>Author: ''{{BASEPAGENAME}}''|<span style="font-size: 22px; font-weight: bold;">{{PAGENAME}}</span>}}|Author: ''{{{author}}}''}}|<span style="font-size: 22px;"><b>{{{name}}}</b></span><br/>{{#ifeq: {{{author| }}}| |{{#ifeq:{{NAMESPACE}} |User|Author: ''{{BASEPAGENAME}}''| }}|Author: ''{{{author}}}''}}}}<hr/><noinclude>
{{#ifeq:{{{name| }}}| |{{#ifeq:{{{author| }}}| |{{#ifeq:{{NAMESPACE}}|User|<span style="font-size: 22px;?><b>{{SUBPAGENAME}}</b></span><br/>Author: ''[[User:{{BASEPAGENAME}}|{{BASEPAGENAME}}]]''|<span style="font-size: 22px; font-weight: bold;">{{PAGENAME}}</span>}}|Author: ''{{{author}}}''}}|<span style="font-size: 22px;"><b>{{{name}}}</b></span><br/>{{#ifeq: {{{author| }}}| |{{#ifeq:{{NAMESPACE}} |User|Author: ''[[User:{{BASEPAGENAME}}|{{BASEPAGENAME}}]]''|}}|Author: ''{{{author}}}''}}}}<hr/><noinclude>
Usage: &#123;&#123;Title|name=Story Title|author=Author Name&#125;&#125;
Usage: &#123;&#123;Title|name=Story Title|author=Author Name&#125;&#125;
:This generates a headerbar like you see above, with &#123;&#123;&#123;name&#125;&#125;&#125; and &#123;&#123;&#123;author&#125;&#125;&#125; properly replaced. The parameters can be omitted entirely, and if the page is a sub-page of your user page the template will attempt to automatically fill in the values. Otherwise it will insert the page name as the Wiki sees it. For an example of what that means, take a look at [[User:ShadowWolf/Test Page]].
:This generates a headerbar like you see above, with &#123;&#123;&#123;name&#125;&#125;&#125; and &#123;&#123;&#123;author&#125;&#125;&#125; properly replaced. The parameters can be omitted entirely, and if the page is a sub-page of your user page the template will attempt to automatically fill in the values. Otherwise it will insert the page name as the Wiki sees it. For an example of what that means, take a look at [[User:ShadowWolf/Test Page]].
</noinclude>
</noinclude>

Revision as of 19:25, 22 July 2007

{{#ifeq: | |{{#ifeq: | |{{#ifeq:Template|User|Title
Author: Title|Title}}|Author: {{{author}}}}}|{{{name}}}
{{#ifeq: | |{{#ifeq:Template |User|Author: Title|}}|Author: {{{author}}}}}}}


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

This generates a headerbar like you see above, with {{{name}}} and {{{author}}} properly replaced. The parameters can be omitted entirely, and if the page is a sub-page of your user page the template will attempt to automatically fill in the values. Otherwise it will insert the page name as the Wiki sees it. For an example of what that means, take a look at User:ShadowWolf/Test Page.