Template talk:Interp

(Redirected from Template talk:Interp/sandbox)
Latest comment: 9 years ago by Pigsonthewing in topic Redundant

Potential change

edit

Potential change, offering the ability to substitute inline and offer the original wording as a tooltip, while preserving current usage. Comments/Criticism?

{{#if:{{{2|}}}|<span title="originally: {{{2}}}"><nowiki>[</nowiki>{{{1}}}<nowiki>]</nowiki></span>|<nowiki>[</nowiki>{{{1}}}<nowiki>]</nowiki>}}

  • {{interp|Bob}} yields [Bob].
  • {{interp|Bob|him}} yields [Bob]. (Hover to see tooltip.)

Druid816 (talk) 05:21, 16 May 2012 (UTC)Reply

This seems emminently sensible. Adding the option of named parameters gives the option of a clearer markup when this template is used. So:
{{#if:{{{Originally|{{{originally|{{{2|}}}}}}}}}|&lt;span title="Originally: {{{Originally|{{{originally|{{{2|}}}}}}}}}"&gt;&lt;nowiki&gt;[&lt;/nowiki&gt;{{{1}}}&lt;nowiki&gt;]&lt;/nowiki&gt;&lt;/span&gt;|&lt;nowiki&gt;[&lt;/nowiki&gt;{{{1}}}&lt;nowiki&gt;]&lt;/nowiki&gt;}}
  • {{interp|Bob}} yields [Bob].
  • {{interp|Bob|originally=him}} yields [Bob]. (Hover to see tooltip.)
(Also, I thought it made more sense to capitalize the O of originally in the tool tip.) --205.254.147.8 (talk) 20:32, 6 November 2013 (UTC)Reply
Tried the suggested code out on the sandbox page, so this shows with using the actual code rather than showing what was expected:
  • {{interp/sandbox|Bob}} yields [Bob].
  • {{interp/sandbox|Bob|originally=him}} yields [Bob]. (Hover to see tooltip.)
--Salton Finneger (talk) 14:14, 7 November 2013 (UTC)Reply
Have there been any issues with this? I think it's a good idea—what's keeping it from being implemented? Curly Turkey (gobble) 23:18, 16 April 2014 (UTC)Reply

Redundant

edit

If all this template does is add a pair of square brackets, why do we need it? Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits 13:33, 6 February 2015 (UTC)Reply