Template talk:Vaccination policy table/cell/doc

Latest comment: 1 year ago by Guarapiranga in topic Diff/1099522612

Diff/1099522612

edit

Just use BASEPAGENAME, since in this scenario it generates Template:Vaccination policy table/cell (which is what we want) and means it doesnt require maintenance if ever moved

That was my intention, Aidan9382, but it didn't work. Did you check out {{Vaccination policy table/cell}}. This is what it shows me:

{{Vaccination policy table|MA}} Template:Vaccination policy table
{{Vaccination policy table|MS}} Template:Vaccination policy table
{{Vaccination policy table|RA}} Template:Vaccination policy table
{{Vaccination policy table|RS}} Template:Vaccination policy table
{{Vaccination policy table|No}} Template:Vaccination policy table

Guarapiranga  07:21, 21 July 2022 (UTC)Reply

@Guarapiranga: Oh, yeah, I forgot BASEPAGENAME is a bit weird on transclusion. Thats my mistake. Sure, use the direct name instead (or consider using {{#titleparts:}} but that might be excessive). Sorry for the confusion! Aidan9382 (talk) 07:27, 21 July 2022 (UTC)Reply
{{#titleparts:{{FULLPAGENAME}}|-1|1}}?
Yeah, nah; didn't work either. This did. — Guarapiranga  08:18, 21 July 2022 (UTC)Reply