Template:TopicPage: Difference between revisions

AdamZachar (talk | contribs)
Created page with "Case page of {{{case_title}}}. == Overview == <strong> Case Summary: </strong> {{#external_value:case_summary|source = CaseData|query = oneCase|parameters = {{{case_title}}}}} <strong> Case Status: </strong> {{#external_value:case_status|source = CaseData|query = oneCase|parameters = {{{case_title}}}}} <strong> Upcoming Events: </strong> {| class="wikitable sortable" ! Date ! Summary ! Court {{#for_external_table: |{{!}}- {{!}} {{#ifeq: {{{eventDateFiled}}} | 9..."
 
AdamZachar (talk | contribs)
No edit summary
 
(43 intermediate revisions by the same user not shown)
Line 1: Line 1:
Case page of {{{case_title}}}.
<noinclude>[[Category:Templates]]</noinclude>
<includeonly>[[Category:{{#external_value:parenttopic_name|source = CaseData|query = oneTopic|parameters = {{{topic_title}}}}}]]</includeonly>
'''Topic Summary:'''


== Overview ==
{{#external_value:topic_summary|source = CaseData|query = oneTopic|parameters = {{{topic_title}}}}}


<strong> Case Summary: </strong>
'''List of all child topics:'''


{{#external_value:case_summary|source = CaseData|query = oneCase|parameters = {{{case_title}}}}}
{{#invoke:TestModule
|recurseLineageByID
|parentID={{#invoke:TestModule|topicIDByName|topicName={{{topic_title}}}}}
}}


<strong> Case Status: </strong>


{{#external_value:case_status|source = CaseData|query = oneCase|parameters = {{{case_title}}}}}
'''List of all cases in topic {{{topic_title}}}:'''


<strong> Upcoming Events: </strong>
{| class="wikitable"
 
! Case Title
{| class="wikitable sortable"
! Case Summary
! Date
! Case Status
! Summary
! Case Topic
! Court
{{#for_external_table:
{{#for_external_table:
|{{!}}-
  |{{!}}-
   {{!}} {{#ifeq: {{{eventDateFiled}}} | 9999-12-31 | TBD  | {{{eventDateFiled}}} }}
   {{!}} [[{{{caseTitle}}}]]
   {{!}} {{{eventSummary}}} {{#if: {{{eventDocumentLink}}} | [{{{eventDocumentLink}}} SOURCE] | }} {{#if: {{{eventNewsLink}}} | [{{{eventNewsLink}}} NEWS] | }}
   {{!}} {{{caseSummary}}}
  {{!}} [[{{{eventDocketJurisdiction}}}]]
  {{!}} {{{caseStatus}}}
  {{!}} {{#invoke:TestModule |topicListByCaseName |caseTitle = {{{caseTitle}}} }}
   |source = CaseData
   |source = CaseData
   |query = caseFutureEvents
   |query = topicIDCasesDescendants
   |data =
   |data = caseID=case_id, caseTitle=case_title, caseSummary=case_summary, caseStatus=case_status, topicName=topic_name
   eventDateFiled=event_datefiled,
  |parameters =
   eventSummary=event_summary,
   {{#invoke:TestModule|topicIDByName|topicName={{{topic_title}}}}},
   eventDocketJurisdiction=docket_jurisdiction,
   {{#invoke:TestModule|topicIDByName|topicName={{{topic_title}}}}},
   eventDocumentLink=event_documentlink,
   {{#invoke:TestModule|topicIDByName|topicName={{{topic_title}}}}},
   eventNewsLink=event_newslink
   {{#invoke:TestModule|topicIDByName|topicName={{{topic_title}}}}},
  |parameters = {{{case_title}}}
   {{#invoke:TestModule|topicIDByName|topicName={{{topic_title}}}}}
}}
}}
|}
|}


<strong> Related Topics: </strong>
'''List of all upcoming events in topic {{{topic_title}}}:'''


[[{{#external_value:case_topic|source = CaseData|query = oneCase|parameters = {{{case_title}}}}}]]
{{Template:TopicTimelineTable|start_date=0|end_date=400000|topic_title={{{topic_title}}}}}


<strong> Courts Involved: </strong>
'''List of all events in the past week in topic {{{topic_title}}}:'''


{| class="wikitable sortable"
{{Template:TopicTimelineTable|start_date=-7|end_date=0|topic_title={{{topic_title}}}}}
! Court Level
! Court
! Docket Number
{{#for_external_table:
  |{{!}}-
  {{!}} [[{{{docketLevel}}}]]
  {{!}}[[{{{docketJurisdiction}}}]]
  {{!}} [{{{docketLink}}} {{{docketNumber}}}]
  |source = CaseData
  |query = caseDockets
  |data =
  docketLevel=docket_level,
  docketJurisdiction=docket_jurisdiction,
  docketLink=docket_link,
  docketNumber=docket_number
  |parameters = {{{case_title}}}
}}
|}


== Detailed Timeline ==


List of all events in this case:
'''List of all topics:'''


{| class="wikitable sortable"
{{#invoke:TestModule|recurseLineageByID|parentID=0}}
! Date
! Summary
! Court
{{#for_external_table:
  |{{!}}-
  {{!}} {{#ifeq: {{{eventDateFiled}}} | 9999-12-31 | TBD  | {{{eventDateFiled}}} }}
  {{!}} {{{eventSummary}}} {{#if: {{{eventDocumentLink}}} | [{{{eventDocumentLink}}} SOURCE] | }} {{#if: {{{eventNewsLink}}} | [{{{eventNewsLink}}} NEWS] | }}
  {{!}} [[{{{docketJurisdiction}}}]]
  |source = CaseData
  |query = caseEvents
  |data =
  eventDateFiled=event_datefiled,
  eventSummary=event_summary,
  docketJurisdiction=docket_jurisdiction,
  eventDocumentLink=event_documentlink,
  eventNewsLink=event_newslink
  |parameters = {{{case_title}}}
}}
|}