Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Tales from Chyria
Search
Editing
Module talk:Unsubst
(section)
From Tales from Chyria
Namespaces
Module
Discussion
More
More
Page actions
Read
Edit source
New topic
History
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!
== template invocation name override == Using this module imposes a time penalty. Not surprising, that. I have been experimenting with a module to translate {{tlx|Literatur}} (a template that attempts to translate de.wiki's [[:de:Vorlage:Literatur|Vorlage:Literatur]] to a {{tlx|citation}} template). In its current form, {{tld|Literatur}} is always subst'd so I tweaked {{tlx|citation/new}} (the sandbox) to use this module. At {{slink|Help_talk:Citation_Style_1|non-English_translator_templates_and_substing}} I was queried about the time penalty. My simple experiments show that there is a significant time penalty for no benefit. In that discussion, I wondered if the translator module might call a special substable version of {{tld|citation}} so I created {{tlx|citation/subst}} which uses this module and then modified the translator module to call that template. The substitution worked as it should except that the substituted template name was {{tld|citation/subst}}. In that discussion at [[WT:CS1]], I also wondered if this module might be tweaked to support a template invocation name override parameter. I have {{diff|Module:Unsubst/sandbox|1039776614|784253929|tweaked the sandbox}} to support {{para|$template-name}}. {{tld|citation/subst}} uses this parameter to set the template name to <code>citation/new</code> and when a {{tlx|Literatur/sandbox}} template is subst'd, the result is an invocation of {{tld|citation/new}}. If there are no objections, I will update the live module from the sandbox. Comments, of course, are welcome. β[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 18:06, 20 August 2021 (UTC) : [[User:Trappist the monk|Trappist the monk]], I was just about to ask the same question. it looks like there are no objections, so I would suggest you go ahead and make the change. thank you. [[User:Frietjes|Frietjes]] ([[User talk:Frietjes|talk]]) 14:58, 8 October 2021 (UTC) ::done ::β[[User:Trappist the monk|Trappist the monk]] ([[User talk:Trappist the monk|talk]]) 18:22, 8 October 2021 (UTC)
Summary:
Please note that all contributions to Tales from Chyria 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
Chyria Wiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Special pages
Wiki tools
Wiki tools
Page tools
Page tools
User page tools
More
What links here
Related changes
Page information
Page logs