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

I want to change the name "API" on Preview Title to pageTitle in my [PAGE_INFO] code #91

Closed
duongnotnhan opened this issue Jul 31, 2024 · 2 comments
Assignees
Labels
bug Something isn't working enhancement New feature or request upstream This issue is caused by upstream

Comments

@duongnotnhan
Copy link

duongnotnhan commented Jul 31, 2024

image
image
Just like:

WikitextPreviewer: <span class="mw-page-title-main">(pageTitle)</span>

I want to test my template on preview page:
image
"API" must be pageTitle (I make sure the Template runs correctly on the official wiki page)

@Frederisk
Copy link
Owner

I think this is an acceptable change, but it should be noted that this API may currently have some strange problems, such as the following query may not obtain the expected results:

https://en.wikipedia.org/w/api.php?action=parse&text={break{DISPLAYTITLE:test%20page|noerror}magic%20word}&title=Test%20page

"displaytitle": "<span class=\"mw-page-title-main\">Test page</span>"

https://en.wikipedia.org/w/api.php?action=parse&text={{DISPLAYTITLE:test%20page|noerror}}&title=Test%20page

"displaytitle": "test page"

This is a known upstream issue in phab.

@Frederisk Frederisk self-assigned this Aug 1, 2024
@Frederisk Frederisk added bug Something isn't working enhancement New feature or request upstream This issue is caused by upstream labels Aug 1, 2024
@Frederisk
Copy link
Owner

Since it's probably an upstream issue from VSCode that causes CI to always timeout and fail, I'll confirm that.

Frederisk added a commit that referenced this issue Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request upstream This issue is caused by upstream
Projects
None yet
Development

No branches or pull requests

2 participants