The Morrissey-solo Wiki is a continual work in progress, most of the data still needs to be populated. See the To Do page if you want to help.
Difference between revisions of "Template:RelatedForumThread"
Jump to navigation
Jump to search
(Add logic to handle forum prefix) |
|||
Line 3: | Line 3: | ||
|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.)