Template talk:Lang
Latest comment: 2 years ago by Middle river exports in topic span → div
span → div
edit{{Editprotected}}
Please, change div
to span
. 217.117.125.83 12:19, 8 February 2022 (UTC)
- Don’t. This template may be used with multiline parameter (e.g. at Template:Unblock declined/layout), where
<span>
would cause at least as many issues as<div>
for inline input. —Tacsipacsi (talk) 17:30, 8 February 2022 (UTC)- @Tacsipacsi: Most of wikis use
span
. 217.117.125.83 15:50, 15 February 2022 (UTC)- But Wikidata is not most wikis. Just like Commons, Wikidata is special in that not only short phrases appear in different languages, but also whole templates can be in other languages than their contexts. Of course, using
<div>
isn’t a great solution, either, and I try to avoid this template in both cases, using the raw HTML (or wikicode) that’s appropriate in that particular case, but there are uses of this template that require a block element. —Tacsipacsi (talk) 11:08, 16 February 2022 (UTC)
- But Wikidata is not most wikis. Just like Commons, Wikidata is special in that not only short phrases appear in different languages, but also whole templates can be in other languages than their contexts. Of course, using
- @Tacsipacsi: Most of wikis use
@Perhelion:'s CSS workaround (diff 1186340356) isn't working. I see this problem is also being discussed at commons:Template talk:Lang#tag. I'm going to restore the tag parameter for now. Daask (talk) 02:08, 23 July 2022 (UTC)
- Thank you for restoring this, using the tag for strings with different script directions apparently does not work with div. I will create a documentation page with a note about this. Middle river exports (talk) 06:27, 14 August 2022 (UTC)