Template:RelatedForumThread: Difference between revisions
(Created page with "{{#get_web_data: url=https://www.morrissey-solo.com/api-thread.php?id={{{1}}} |format=JSON |use jsonpath |data=view_url=$.thread.view_url, title=$.thread.title, post_date=...") |
(Add logic to handle forum prefix) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#get_web_data: | {{#get_web_data: | ||
url=https://www.morrissey-solo.com/api-thread.php?id={{{1}}} | url=https://www.morrissey-solo.com/api-thread.php?id={{trim| {{{1}}} }} | ||
|format=JSON | |format=JSON | ||
|use jsonpath | |use jsonpath | ||
|data=view_url=$.thread.view_url, title=$.thread.title, post_date=$.thread.post_date | |data=view_url=$.thread.view_url, title=$.thread.title, post_date=$.thread.post_date, prefix=$.thread.prefix, prefix_id=$.thread.prefix_id | ||
|cache seconds=3600 | |cache seconds=3600 | ||
|use stale cache | |use stale cache | ||
}} | }} | ||
* [{{#external_value:view_url}} {{#external_value:title}}] - Morrissey-solo ({{#time: M d, Y | @{{#external_value:post_date}} }}) | {{#ifeq:{{#external_value:prefix_id}}|0|* [{{#external_value:view_url}} {{#external_value:title}}] - Morrissey-solo ({{#time: M d, Y | @{{#external_value:post_date}} }}) | ||
|* [{{#external_value:view_url}} <nowiki>[</nowiki>{{#external_value:prefix}}<nowiki>]</nowiki> {{#external_value:title}}] - Morrissey-solo ({{#time: M d, Y | @{{#external_value:post_date}} }})}} |
Latest revision as of 09:08, 10 November 2021
- [ [] ] - Morrissey-solo (Error: Invalid time.)