Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Template not rendering and mainlabel=- not observed #28

Open
vid opened this issue Nov 23, 2022 · 0 comments
Open

Template not rendering and mainlabel=- not observed #28

vid opened this issue Nov 23, 2022 · 0 comments

Comments

@vid
Copy link

vid commented Nov 23, 2022

Setup

  • MW version: 1.38.2
  • PHP version: 7.4.30
  • DB (MySQL etc.): MariaDB
  • SMW version: 4.0.2
  • MT version: 1.2
  • Browsers and versions (if applicable):
  • Chrome

Issue

The template is not rendering variables, it just shows the variable names. And it shows mainlabel, even though that is by convention not the right option.

image

Here is the query (I have tried variations):

{{ #ask: [[Probable year::+]]|[[Short title::+]]
|mainlabel=-
|?Short title
|?Probable year
|?Page name
|?Right
|?Section heading
|format=moderntimeline
 |start at end=on
 |height=400px
|scalefactor=39
|limit=5000
|navigation height=80%
}}

Here is the template:

[[{{{3}}}|{{{6|{{{7}}}}}}]]

{{{4}}} {{{5}}}

Steps to reproduce

Use data with the above query and template.

Expected result:

The template should render with values, and the timeline items should use the Short title, not the mainlabel.

Observed result: ...

image

Not the right thing.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant