Jump to content

User:Whatback11/asks

From Wikipedia, the free encyclopedia

Template Substitution

[edit]

{{harv|Hilliard|Keith|1999|p=43}}
This is a template syntax. Since the template uses #invoke:, I couldn’t intuitively see what the output would look like, so I used subst:. However, instead of showing the rendered result, it only displayed the template syntax itself. Could you help me see the actual output? (My original goal is to implement the template as-is without using the #invoke: syntax.)

Whatback11 (talk) 12:36, 12 October 2025 (UTC)

Hilliard; Keith (1999). Spoof citation to avoid error messages.
{{harv|Hilliard|Keith|1999|p=43}}
([[#CITEREFHilliardKeith1999|Hilliard & Keith 1999]], p. 43)
(Hilliard & Keith 1999, p. 43)
Trappist the monk (talk) 12:52, 12 October 2025 (UTC)
How did you get the output result? Whatback11 (talk) 16:04, 12 October 2025 (UTC)
Umm, look at the source of this discussion?
Trappist the monk (talk) 16:09, 12 October 2025 (UTC)
That source is interesting! Whatback11 (talk) 05:04, 14 October 2025 (UTC)




{{{case: ~ }}}

[edit]

What does {{{case: ~ }}} mean in {{{case: {{{1|}}}|{{{default|}}}}}}? (from this)

I already asked a question on the help desk, and they advised me to ask here. Whatback11 (talk) 14:59, 23 November 2025 (UTC)

{{{case: ~ }}} would mean the value of the template parameter named case: ~. {{{case: {{{1|}}}}}} would mean the value of a template parameter whose name is based on the value of parameter 1.
That very old template was intended to be used something like {{switch| value | case: a = something | case: b = something else | case: c = etc | default = a default value }}, and the {{{case: {{{1|}}}|{{{default|}}}}}} handled selecting the appropriate named parameter based on the passed in value. These days we have mw:Extension:ParserFunctions that lets the same thing be done more efficiently (and with slightly different syntax) using #switch. Anomie 16:08, 23 November 2025 (UTC)

Toggle effect

[edit]

How did you create the toggle effect on your user page link? Whatback11 (talk) 12:29, 23 November 2025 (UTC)

@Whatback11: You mean the "toggle background" button? See mw:Manual:Collapsible elements/Demo/Advanced. NguoiDungKhongDinhDanh 18:20, 23 November 2025 (UTC)
No, when you hover your mouse cursor over a hyperlink in your user document, two lines appear. Whatback11 (talk) 00:43, 3 December 2025 (UTC)
@Whatback11: See the styles.css page; specifically, line 22 to 90. Also, please never edit archived sections, as the user (in this case, me) won't be notified. It was by chance that I saw your reply. NguoiDungKhongDinhDanh 00:58, 3 December 2025 (UTC)
@NguoiDungKhongDinhDanh: I see. Thanks. Whatback11 (talk) 15:48, 6 December 2025 (UTC)