![]() | This template does not require a rating on Wikipedia's
content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||
|
Thanks to Dudemanfellabra for being willing to help with this problem:
The problem seems to be with the |spell_archaeology=
parameter (which is not yet mentioned in the documentation). The purpose of the parameter is to allow editors to toggle whether the template uses the spelling "archeological" or "archaeological": null (default) is "eo", any value/string is "aeo". The main template is supposed to just pass the parameter through to the {{
Address restricted/Explanatory note}} subtemplate. The subtemplate then should just use the presence or absence of a value in the parameter in a simple {{#if:}} conditional to return the desired spelling.
But it's not working. It doesn't matter whether |spell_archaeology=
is set or not when I call {{
Address restricted}}. What does seem to matter is whether I code the parameter as {{{spell_archaeology}}} or {{{spell_archaeology|}}}. When I use the pipe, the result is "eo"; when I don't, the result is "aeo" — whether or not I set the parameter in the call.
The problem does not appear to be in the subtemplate. When I call the subtemplate directly without mediating through {{ Address restricted}}, it works just fine.
Thanks for any wisdom you can offer. — Ipoellet ( talk) 00:52, 25 June 2014 (UTC)
|name=
and |group=
parameters to come after the content of the ref/efn instead of before like you had it. Somehow that magically made it work. Don't ask me how haha. Examples below:|spell_archaeology=
not presentAddress restricted [1]
|spell_archaeology=
present but blankAddress restricted [1]
|spell_archaeology=
some non-blank valueAddress restricted [1]
|notes=
set, |spell_archaeology=
not present|notes=
set, |spell_archaeology=
present but blank|notes=
set, |spell_archaeology=
setLook good to you?-- Dudemanfellabra ( talk) 08:56, 25 June 2014 (UTC)
![]() | This template does not require a rating on Wikipedia's
content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||
|
Thanks to Dudemanfellabra for being willing to help with this problem:
The problem seems to be with the |spell_archaeology=
parameter (which is not yet mentioned in the documentation). The purpose of the parameter is to allow editors to toggle whether the template uses the spelling "archeological" or "archaeological": null (default) is "eo", any value/string is "aeo". The main template is supposed to just pass the parameter through to the {{
Address restricted/Explanatory note}} subtemplate. The subtemplate then should just use the presence or absence of a value in the parameter in a simple {{#if:}} conditional to return the desired spelling.
But it's not working. It doesn't matter whether |spell_archaeology=
is set or not when I call {{
Address restricted}}. What does seem to matter is whether I code the parameter as {{{spell_archaeology}}} or {{{spell_archaeology|}}}. When I use the pipe, the result is "eo"; when I don't, the result is "aeo" — whether or not I set the parameter in the call.
The problem does not appear to be in the subtemplate. When I call the subtemplate directly without mediating through {{ Address restricted}}, it works just fine.
Thanks for any wisdom you can offer. — Ipoellet ( talk) 00:52, 25 June 2014 (UTC)
|name=
and |group=
parameters to come after the content of the ref/efn instead of before like you had it. Somehow that magically made it work. Don't ask me how haha. Examples below:|spell_archaeology=
not presentAddress restricted [1]
|spell_archaeology=
present but blankAddress restricted [1]
|spell_archaeology=
some non-blank valueAddress restricted [1]
|notes=
set, |spell_archaeology=
not present|notes=
set, |spell_archaeology=
present but blank|notes=
set, |spell_archaeology=
setLook good to you?-- Dudemanfellabra ( talk) 08:56, 25 June 2014 (UTC)