Difference between revisions of "Template:User"

From Zombi Wiki
Jump to navigation Jump to search
m (wikilink)
m (fixing mastodon)
Line 2: Line 2:
 
|Feldname1=Git|Daten1=https://git.zom.bi/{{{user|{{ROOTPAGENAME}}}}}
 
|Feldname1=Git|Daten1=https://git.zom.bi/{{{user|{{ROOTPAGENAME}}}}}
 
|Feldname2=Webspace|Daten2=https://user.zom.bi/{{{user|{{ROOTPAGENAME}}}}}
 
|Feldname2=Webspace|Daten2=https://user.zom.bi/{{{user|{{ROOTPAGENAME}}}}}
|Feldname3=Mastodon|Daten3=[https://soc.zom.bi/@{{{mastodon|}}} @{{{mastodon|}}}]
+
|Feldname3=Mastodon|Daten3={{#if: {{{mastodon|}}} | [https://soc.zom.bi/@{{{mastodon}}} @{{{mastodon}}}]}}
 
|Feldname4=VPN-IP|Daten4={{{ip|}}}
 
|Feldname4=VPN-IP|Daten4={{{ip|}}}
 
|Feldname5={{{1|}}}|Daten5={{{2|}}}
 
|Feldname5={{{1|}}}|Daten5={{{2|}}}
 
|Feldname6={{{3|}}}|Daten6={{{4|}}}
 
|Feldname6={{{3|}}}|Daten6={{{4|}}}
}}</includeonly><noinclude>{{User|user=root|ip=0.0.0.0|mastodon=roottoot |Extra 1|Value|Extra 2|yet another value}}
+
}}</includeonly><noinclude>{{User|user=root|ip=0.0.0.0|mastodon=roottoot|Extra 1|Value|Extra 2|yet another value}}
 
This Template renders an Infobox with links to userpages on other Zombi-Services. Usage:
 
This Template renders an Infobox with links to userpages on other Zombi-Services. Usage:
 
<pre><nowiki>
 
<pre><nowiki>
Line 16: Line 16:
 
|Extra 2|yet another value
 
|Extra 2|yet another value
 
}}
 
}}
</nowiki></pre>You can use the Template on [[Special:MyPage|your user page]] without handing the argument user. No argument is mandatory. The above example renders into the example on the right.  
+
</nowiki></pre>You can use the Template on your user page without handing the argument user. No argument is mandatory. The above example renders into the example on the right.  
 
[[Category:Template]]
 
[[Category:Template]]
 
</noinclude>
 
</noinclude>

Revision as of 10:32, 14 February 2020

User
Git https://git.zom.bi/root
Webspace https://user.zom.bi/root
Mastodon @roottoot
VPN-IP 0.0.0.0
Extra 1 Value
Extra 2 yet another value

This Template renders an Infobox with links to userpages on other Zombi-Services. Usage:

{{User
|user=root
|ip=0.0.0.0
|mastodon=roottoot
|Extra 1|value
|Extra 2|yet another value
}}

You can use the Template on your user page without handing the argument user. No argument is mandatory. The above example renders into the example on the right.