Template:UserpageHeading/sandbox/doc: Difference between revisions

From the Portal Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
<center>''Credit to [[User:Sven|Sven]]  for his formula of the table and [[User:Thedoczek|Thedoczek]] for configuring it to templates.''<br />
<center>''Credit to [[User:Sven|Sven]]  for his formula of the table and [[User:Thedoczek|Thedoczek]] for configuring it to templates.''<br />
''You can still use old, short template formula, without'' Heading''!''</center>
''You can still use old, short template formula, without'' Heading''!''</center>
== Examples ==
<code><nowiki>
<code><nowiki>
{{userpage/sandbox|username=your username}}
{{userpage|username=Sven}}
</nowiki></code>
</nowiki></code>
will generate {{userpage|username=Sven}}
<code><nowiki>
{{userpage/sandbox|username=Thedoczek}}
</nowiki></code>
will generate {{userpage/sandbox|username=Thedoczek}}
<code><nowiki>
{{userpage/projects|username=Sven}}
</nowiki></code>
will generate {{userpage/projects|username=Thedoczek}}
<code><nowiki>
{{userpage/prosan|username=Thedoczek}}
</nowiki></code>
will generate {{userpage|username=Sven}}
=== DISPLAYAS ===
There is a new function, with makes you able to have in-table username other than regular username.
<code><nowiki>
{{userpage|username=Sven|displayas=SomeRandomGuy}}
</nowiki></code>
will generate {{userpage|username=Sven|displayas=SomeRandomGuy}}
{|Class="wikitable"
{|Class="wikitable"
!!style="text-align:right" |Template name
!!style="text-align:right" |Template name

Revision as of 19:19, 29 July 2020

Credit to Sven for his formula of the table and Thedoczek for configuring it to templates.
You can still use old, short template formula, without Heading!

Examples

{{userpage|username=Sven}} will generate

{{{1}}}
My User Page! My Talk Page! My Contributions!
[[User:{{{1}}}| My User Page!]] [[User_talk:{{{1}}}| My Talk Page!]] [[Special:Contributions/{{{1}}}| My Contributions!]]

{{userpage/sandbox|username=Thedoczek}} will generate

{{{1}}}
My User Page! My Talk Page! My Contributions! My Sandbox!
[[User:{{{1}}}| My User Page!]] [[User_talk:{{{1}}}| My Talk Page!]] [[Special:Contributions/{{{1}}}| My Contributions!]] [[User:{{{1}}}/sandbox| My Sandbox!]]

{{userpage/projects|username=Sven}} will generate

{{{1}}}
My User Page! My Talk Page! My Contributions! My Projects!
[[User:{{{1}}}| My User Page!]] [[User_talk:{{{1}}}| My Talk Page!]] [[Special:Contributions/{{{1}}}| My Contributions!]] [[User:{{{1}}}/projects| My Projects!]]

{{userpage/prosan|username=Thedoczek}} will generate

{{{1}}}
My User Page! My Talk Page! My Contributions!
[[User:{{{1}}}| My User Page!]] [[User_talk:{{{1}}}| My Talk Page!]] [[Special:Contributions/{{{1}}}| My Contributions!]]


DISPLAYAS

There is a new function, with makes you able to have in-table username other than regular username. {{userpage|username=Sven|displayas=SomeRandomGuy}} will generate

{{{1}}}
My User Page! My Talk Page! My Contributions!
[[User:{{{1}}}| My User Page!]] [[User_talk:{{{1}}}| My Talk Page!]] [[Special:Contributions/{{{1}}}| My Contributions!]]
Template name User page User talk Contribs Projects Sandbox
Userpage Yes Yes Yes No No
Userpage/projects Yes Yes Yes Yes No
Userpage/sandbox Yes Yes Yes No Yes
Userpage/prosan Yes Yes Yes Yes Yes