Template:Title: Difference between revisions
Jump to navigation
Jump to search
ShadowWolf (talk | contribs) update the template to generate links to the authors user page and update the documentation as well. |
ShadowWolf (talk | contribs) m kill the nice indentation and such in the template - it was causing problems when used. |
||
| 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:{{{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> | ||
}} | |||
<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 21:14, 22 July 2007
{{#ifeq: | |{{#ifeq: | |{{#ifeq:Template|User|Title
Author: 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.