TDG EMPIRE
☰
Features
Wiki
Gallery
Webmap
Interactive Map
Punishments
Discord
Wiki
TDG Encyclopedia
Not logged in
Talk
Contributions
Create account
Log in
Search
Module
Discussion
Read
Edit source
Add topic
View history
Editing
Module talk:Unsubst
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== You can avoid using {{para|$N}} == You can get the template name from {{code|mw.getCurrentFrame():getTitle()|lua}} <span class="signature">β [[User:Kephir|KeΟr]]</span> 08:59, 27 March 2014 (UTC) : I retract that. It does not seem to work. Shame, really. <span class="signature">β [[User:Kephir|KeΟr]]</span> 09:28, 27 March 2014 (UTC) :: Oh wait, the proper code is {{code|mw.getCurrentFrame():getParent():getTitle()|lua}}, and it does work. (And above, I actually meant {{code|mw.getCurrentFrame().parent:getTitle()}}, which does not.) <span class="signature">β [[User:Kephir|KeΟr]]</span> 09:50, 27 March 2014 (UTC) ::: [[Special:Diff/581707228/598491600|Sandbox version]], needs review and deploy. {{ping|Mr. Stradivarius|Jackmcbarn}} any final comments? Or should we do this thing? My only comment is that I was worried about the expensive mw.title.new until I realized that only gets called on subst so it'd only be a problem if someone adds ~500 substed maintenance tags in one edit (if even that). [[User:Anomie|Anomie]][[User talk:Anomie|β]] 10:38, 27 March 2014 (UTC) :::: This is ready to go now, as far as I can see. However, I did tweak the error messages, as they were showing the #invoke call as <code><nowiki>{{#invoke:Unsubst|unsubst}}</nowiki></code>, when actually it's just <code><nowiki>{{#invoke:Unsubst|}}</nowiki></code>. As for the expensive mw.title.new, I agree that if it only gets called on subst then it shouldn't be a problem. β '''''[[User:Mr. Stradivarius|<span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span>]]''''' <sup>[[User talk:Mr. Stradivarius|βͺ talk βͺ]]</sup> 12:20, 27 March 2014 (UTC) ::::: {{ping|Anomie}} Is $N still deliberately in specialParams? (Do we need specialParams at all anymore?) [[User:Jackmcbarn|Jackmcbarn]] ([[User talk:Jackmcbarn|talk]]) 22:21, 27 March 2014 (UTC) :::::: Mr. Stradivarius restored it in [//en.wikipedia.org/w/index.php?title=Module:Unsubst/sandbox&diff=598067783&oldid=598044098], and I agree with his reasoning. [[User:Anomie|Anomie]][[User talk:Anomie|β]] 20:23, 29 March 2014 (UTC) ::::::: Ah, I was under the impression that that was done now. Anyway, looks good then. [[User:Jackmcbarn|Jackmcbarn]] ([[User talk:Jackmcbarn|talk]]) 01:35, 30 March 2014 (UTC) :::::::: I've updated the module. β '''''[[User:Mr. Stradivarius|<span style="color: #194D00; font-family: Palatino, Times, serif">Mr. Stradivarius</span>]]''''' <sup>[[User talk:Mr. Stradivarius|βͺ talk βͺ]]</sup> 01:54, 30 March 2014 (UTC)
Summary:
Please note that all contributions to TDG Encyclopedia may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
TDG Encyclopedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)