Desire
Within Mediawiki, on the 'top-level' page, I want to show the 2nd-level's 'page-name' in a 3-level page transclusion(nested pages).
Example Description
In this example, I have 3 pages. '3', '2', 'template:1'
- page '3' transcludes '2',
{{:2}} - page '2' transcludes 'template:1',
{{1}} - page 'template:1' includes a call for the 'page-name',
{{PAGENAME}}
I wish for page '3' to display '2' ie the pagename of page '2'. So the output of '3' would be
2
The simplest real-life example:
Pages:
- https://happytrees.org/dieshots/3 transcludes page '2',
{{:2}} - https://happytrees.org/dieshots/2 transcludes page 'template:1',
{{1}} - https://happytrees.org/dieshots/template:1 contains the code for
{{PAGENAME}}
Desired result:
- page '3' displays the number
2
Actual result:
- page '3' displays the number
3
Things I have tried
here is a mess of things i have tried mess of attempts
Ultimate goal
Ultimately I want to want to have an edit link on each dieshot box. For example page with multiple dieshots will have an 'edit link' on each dieshot box which will goto the dieshot's edit page. The 'dieshot's page' uses the template dieshot box template. The 'template' contains the 'edit page code'. and the edit link ultimatly goes to 'dieshot's edit page'
Software
if it maters
- MediaWiki 1.35.3
- Extension:ParserFunctions 1.6.0
- Extension:Variables 2.5.1
Thanks Zef the Tinker