Content deleted Content added
Cameron11598 (talk | contribs) No edit summary |
|||
Line 72:
That is, how can I get the target of the wikilink instead of 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)
:I checked around on IRC to see if I could find someone who might be able to help you and it was suggested that I direct you to {{u|Mr. Stradivarius}}. I'm going to mark this as needing a specific user to answer. Cheers! --[[User:Cameron11598|Cameron<sub><small>11598</small></sub>]] <sup>[[User Talk:Cameron11598|(Talk)]] </sup> 05:26, 11 September 2016 (UTC)
:: {{ping|Tran Xuan Hoa}} You can use :
::* wikicode : <code><nowiki>{{#invoke:String|replace|{{{1|}}}|%[%[ *([^%[%]{{!}}]+)[^%[%]]*%]%]|%1|plain=false}}</nowiki></code>
::* lua : {{code|<nowiki>article = article:gsub( '%[%[ *([^%[%]|]+)[^%[%]]*%]%]', '%1' )</nowiki>|lua}}
:: --[[User:Zebulon84|Zebulon84]] ([[User talk:Zebulon84|talk]]) 11:46, 24 September 2016 (UTC)
|