Template talk:Latn

From Wiktionary, the free dictionary
Latest comment: 13 years ago by Yair rand in topic lang=
Jump to navigation Jump to search

face=[edit]

Unless anyone objects in the next day or so (either here or at Wiktionary:Beer parlour#Give me a better title than Template:mention-Latn), I plan to modify this template to support an optional face= parameter, by following these rules:

  • HTML element to use:
    • If face=bold or face=head, it will use <b>.
    • If face=ital, it will use <i>.
    • Otherwise, it will use <span> (as it currently always does).
  • HTML class to use:
    • If face=term, it will use class="mention-Latn" (as, until recently, it always did).
    • Otherwise, it will use class="Latn" (as it currently always does).

Justification:

  • This will align this template (at least conceptually) with many other script templates, such as {{Cyrl}} and {{Hebr}}.
  • This will enable all sc=-supporting templates to use {{Latn}} as their default script template, with no separate code.
  • In the absence of any face= parameter, the template will continue to behave as it does now.

RuakhTALK 02:36, 10 July 2009 (UTC)Reply

Never mind, done now. I don't know why this always happens; people are perfectly happy to be lazy and leave an issue unresolved, until the minute I announce I'm going to make a change, and then they can't help falling all over themselves in their hurry to beat me to it. And half the time they screw it up. ;-)   —RuakhTALK 12:52, 10 July 2009 (UTC)Reply
Sorry, I didn't know you were going to fix it ... (;-) one detail: it uses class="Latn mention-Latn" if face=term. Robert Ullmann 15:36, 10 July 2009 (UTC)Reply
Makes sense. :-)   —RuakhTALK 16:55, 10 July 2009 (UTC)Reply

lang=[edit]

Any objection to adding {{#if:{{{lang|}}}|lang="{{{lang}}}"}} to the span/b/i in this template? --Yair rand (talk) 06:47, 26 September 2010 (UTC)Reply

Please do! —RuakhTALK 14:33, 26 September 2010 (UTC)Reply
Done. --Yair rand (talk) 06:08, 29 September 2010 (UTC)Reply