zaiger
Active member
Sorry if this is in the wrong place, move it if you must
Hello,
I am trying to create a mediawiki template to link to our forum users, but I can't figure out how to do this without the user ID's. Here is what I am trying to do:
Any way I can link just the user name without having to have the ID as well? I looked unsuccessfully for an addon to parse usernames in url like:
example.com/members/user
instead of
example.com/members/user.123
Any ideas? I was thinking maybe of including a search URL instead of a straight link to the userpage, but I couldn't figure it out.
Hello,
I am trying to create a mediawiki template to link to our forum users, but I can't figure out how to do this without the user ID's. Here is what I am trying to do:
Code:
<includeonly>'''<span class="plainlinks" style="white-space:nowrap;">[[File:lolgo.png|14px|link=http://forum.myforum.ch/members/{{{1}}}]] [http://forum.myforum.ch/members/{{{1}}}/ {{{2|{{{1}}}}}}]'''</span></includeonly><noinclude>
Indicates a link to an [[EDF]] post.
==Syntax==
'''<nowiki>{{ EDF | username | description }}</nowiki>
# '''username'' - the number of the user
# '''description''' (''optional'') - replaces the user name with your text
<br />
'''''Note''''': remember to remove all whitespaces (except for the ones in description) and put everything in one long line, otherwise it might get broken.
==Examples==
<nowiki>{{EDF|example}}</nowiki>
produces:<br />
{{EDF|example}}
<br />
<nowiki>{{EDF|example2|Some random user}}</nowiki>
produces:<br />
{{EDF|example2|Some random user}}
Any way I can link just the user name without having to have the ID as well? I looked unsuccessfully for an addon to parse usernames in url like:
example.com/members/user
instead of
example.com/members/user.123
Any ideas? I was thinking maybe of including a search URL instead of a straight link to the userpage, but I couldn't figure it out.