Content deleted Content added
Jackmcbarn (talk | contribs) →delinkURL sometimes fails with "Tried to write global s_decoded" if used from a module with Module:No_globals: Responded to edit request (EPH) |
No edit summary |
||
Line 58:
[[User_talk:Gnosygnu|gnosygnu]] 23:58, 19 July 2014 (UTC)
:[[File:Yes check.svg|20px|link=]] '''Done'''<!-- Template:ETp --> [[User:Jackmcbarn|Jackmcbarn]] ([[User talk:Jackmcbarn|talk]]) 02:21, 20 July 2014 (UTC)
{{Help me}}
Hello everyone, I need help on delinking wikilinks. The current template {{tl|delink}} works like this:
*<code><nowiki>{{delink|[[article]]}}</nowiki></code> returns <code>article</code>
*<code><nowiki>{{delink|[[article|display name]]}}</nowiki></code> returns <code>display name</code>
Can someone with experience provide the code to make a template, let's call it X, so that
*<code><nowiki>{{X|[[article]]}}</nowiki></code> returns <code>article</code>
*<code><nowiki>{{X|[[article|display name]]</nowiki></code> returns <code>article</code>
That is, how can I receive the target of the wikilink and throw away the display name (the label)? I guess we can use [[Module:String]], 'cause I see many string-manipulating templates are based on it but I have no knowledge about Lua, so... Thank you in advance. [[User:Tran Xuan Hoa|Tran Xuan Hoa]] ([[User talk:Tran Xuan Hoa|talk]]) 23:24, 10 September 2016 (UTC)
|