Template talk:RQ:Locke Conduct

From Wiktionary, the free dictionary
Jump to navigation Jump to search

Problem passing |pageref= to {{RQ:Locke Posthumous Works}}[edit]

Hi, @JeffDoozan. Any idea how I can pass a value for |pageref= to {{RQ:Locke Posthumous Works}}, which this template relies on? Specifying it as a parameter on its own doesn't work, and when I tried to combine it with |page= (|page = {{{page|{{{pageref|{{{1|}}}}}}}}}) the template threw a Lua error. Thanks. — Sgconlaw (talk) 14:16, 17 March 2024 (UTC)Reply

@Sgconlaw: Fixed with diff. Since this template always calls {{RQ:Locke Posthumous Works}} with |page=, the expression {{{page|{{{pageref}}}}}} will always use the value of |page= and never the value of |pageref=. Detailed explanation of why available here. JeffDoozan (talk) 14:56, 17 March 2024 (UTC)Reply
@JeffDoozan: thanks! I'll try and remember to use that for quotation templates which are called by other such templates. — Sgconlaw (talk) 15:13, 17 March 2024 (UTC)Reply