Template:UserpageHeading/doc: Difference between revisions

From the Portal Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 4: Line 4:
=== Normal ===
=== Normal ===
<pre><nowiki>
<pre><nowiki>
{{userpage|username=Sven}}
{{userpage|Sven}}
</nowiki></pre>
</nowiki></pre>
will generate
will generate
{{userpage|username=Sven}}
{{userpage|Sven}}
=== With projects <small>(User:username/projects)</small> ===
=== With projects <small>(User:username/projects)</small> ===
<pre><nowiki>
<pre><nowiki>
{{userpage/projects|username=Headquarter8302}}
{{userpage/projects|Headquarter8302}}
</nowiki></pre>
</nowiki></pre>
wil generate
wil generate
{{userpage/projects|username=Headquarter8302}}
{{userpage/projects|Headquarter8302}}
=== With sandbox <small>(User:username/sandbox)</small> ===
=== With sandbox <small>(User:username/sandbox)</small> ===
<pre><nowiki>
<pre><nowiki>
{{userpage/sandbox|username=Thedoczek}}
{{userpage/sandbox|Thedoczek}}
</nowiki></pre>
</nowiki></pre>
will generate
will generate
{{userpage/sandbox|username=Thedoczek}}
{{userpage/sandbox|Thedoczek}}
=== With projects and sandbox ===
=== With projects and sandbox ===
<pre><nowiki>
<pre><nowiki>
{{userpage/prosan|username=PortalPlayer1}}
{{userpage/prosan|PortalPlayer1}}
</nowiki></pre>
</nowiki></pre>
will generate
will generate
{{userpage/prosan|username=PortalPlayer1}}
{{userpage/prosan|PortalPlayer1}}
== Custom title ==
== Custom title ==
You can also set own title, other than username.
You can also set own title, other than username.
<pre><nowiki>
<pre><nowiki>
{{userpage|username=Headquarter8302|displayas=My pages!}}
{{userpage|Headquarter8302|=My pages!}}
</nowiki></pre>
</nowiki></pre>
will generate
will generate
{{userpage|username=Headquarter8302|displayas=My pages!}}
{{userpage|Headquarter8302|=My pages!}}
== Visual table of contents ==
== Visual table of contents ==
{|Class="wikitable"
{|Class="wikitable"

Revision as of 10:30, 8 August 2020

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

Examples

Normal

{{userpage|Sven}}

will generate

Sven
My User Page! My Talk Page! My Contributions!
My User Page! My Talk Page! My Contributions!

With projects (User:username/projects)

{{userpage/projects|Headquarter8302}}

wil generate

Headquarter8302
My User Page! My Talk Page! My Contributions! My Projects!
My User Page! My Talk Page! My Contributions! My Projects!

With sandbox (User:username/sandbox)

{{userpage/sandbox|Thedoczek}}

will generate

Thedoczek
My User Page! My Talk Page! My Contributions! My Sandbox!
My User Page! My Talk Page! My Contributions! My Sandbox!

With projects and sandbox

{{userpage/prosan|PortalPlayer1}}

will generate

PortalPlayer1
My User Page! My Talk Page! My Contributions! My Projects! My Sandbox!
My User Page! My Talk Page! My Contributions! My Projects! My Sandbox!

Custom title

You can also set own title, other than username.

{{userpage|Headquarter8302|=My pages!}}

will generate

Headquarter8302
My User Page! My Talk Page! My Contributions!
My User Page! My Talk Page! My Contributions!

Visual table of contents

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