Template:Infobox doc archive: Difference between revisions
Appearance
Content deleted Content added
Created page with "<noinclude> Infobox for doc_archive pages. Annotates each field with a Semantic MediaWiki property so pages are queryable via <code>#ask</code>. == Usage == <pre> {{Infobox doc_archive | organization = AXA | year = 2026 | period = Q1 | period_label = 1Q26 | document_type = Earnings press release | publication_date = 2026-05-15 | market_timing = Pre-market | language = English | pages = 10 | source_url = https://example..." |
Deploy Template:Infobox doc_archive |
||
| (16 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
{{#set: |
|||
<noinclude> |
|||
Has page type=doc_archive |
|||
|{{#if:{{{organization|}}}|Has organization={{{organization}}}|}} |
|||
Semantic MediaWiki property so pages are queryable via |
|||
|{{#if:{{{year|}}}|Has year={{{year}}}|}} |
|||
<code>#ask</code>. |
|||
|{{#if:{{{period|}}}|Has period={{{period}}}|}} |
|||
|{{#if:{{{period_label|}}}|Has period label={{{period_label}}}|}} |
|||
|{{#if:{{{document_category|}}}|Has document category={{{document_category}}}|}} |
|||
|{{#if:{{{document_type|}}}|Has document type={{{document_type}}}|}} |
|||
|{{#if:{{{document_name|}}}|Has document name={{{document_name}}}|}} |
|||
|{{#if:{{{publication_date|}}}|Has publication date={{{publication_date}}}|}} |
|||
|{{#if:{{{market_timing|}}}|Has market timing={{{market_timing}}}|}} |
|||
|{{#if:{{{language|}}}|Has language={{{language}}}|}} |
|||
|{{#if:{{{pages|}}}|Has pages={{{pages}}}|}} |
|||
|{{#if:{{{source_url|}}}|Has source URL={{{source_url}}}|}} |
|||
|{{#if:{{{summary_md|{{{original_md|{{{archive_file|}}}}}}}}}|Has archive file={{{summary_md|{{{original_md|{{{archive_file}}}}}}}}}|}} |
|||
|{{#if:{{{original_md|}}}|Has original md={{{original_md}}}|}} |
|||
|{{#if:{{{summary_md|}}}|Has summary md={{{summary_md}}}|}} |
|||
|{{#if:{{{docling_file|}}}|Has docling file={{{docling_file}}}|}} |
|||
}}{{#if:{{{wide|}}}|<div class="ed-infobox-band">}}{{Infobox |
|||
| abovestyle = text-align:center; background-color:#cee0f2; color:inherit; |
|||
| above = {{{name|Document info}}} |
|||
| label1 = Document ID |
|||
== Usage == |
|||
| data1 = {{#if:{{{doc_id|}}}|[[{{{organization}}}/sources|{{{doc_id}}}]]}} |
|||
<pre> |
|||
{{Infobox doc_archive |
|||
| label2 = Organization |
|||
| organization = AXA |
|||
| data2 = {{{organization|}}} |
|||
| year = 2026 |
|||
| period = Q1 |
|||
| |
| label3 = Year |
||
| data3 = {{{year|}}} |
|||
| document_type = Earnings press release |
|||
| publication_date = 2026-05-15 |
|||
| label4 = Period |
|||
| market_timing = Pre-market |
|||
| data4 = {{{period|}}} |
|||
| language = English |
|||
| pages = 10 |
|||
| label5 = Period label |
|||
| source_url = https://example.com/report.pdf |
|||
| data5 = {{{period_label|}}} |
|||
| archive_file = File:AXA - 2026 - Q1 2026 earnings.md |
|||
}} |
|||
| label6 = Document category |
|||
</pre> |
|||
| data6 = {{{document_category|}}} |
|||
</noinclude><includeonly>{| class="wikitable" style="float:right; margin-left:1em; width:22em; font-size:90%;" |
|||
|- |
|||
| label7 = Document type |
|||
! colspan="2" style="text-align:center; background:#cee0f2;" | Document info |
|||
| data7 = {{{document_type|}}} |
|||
{{#if:{{{organization|}}}| |
|||
{{!}}- |
|||
| label8 = Document name |
|||
! Organization |
|||
| data8 = {{{document_name|}}} |
|||
{{!}} [[Has organization::{{{organization}}}]] |
|||
}}{{#if:{{{year|}}}| |
|||
| label9 = Publication date |
|||
{{!}}- |
|||
| data9 = {{{publication_date|}}} |
|||
! Year |
|||
{{!}} [[Has year::{{{year}}}]] |
|||
| label10 = Market timing |
|||
}}{{#if:{{{period|}}}| |
|||
| data10 = {{{market_timing|}}} |
|||
{{!}}- |
|||
! Period |
|||
| label11 = Language |
|||
{{!}} [[Has period::{{{period}}}]] |
|||
| data11 = {{{language|}}} |
|||
}}{{#if:{{{period_label|}}}| |
|||
{{!}}- |
|||
| label12 = Pages |
|||
! Period label |
|||
| data12 = {{{pages|}}} |
|||
{{!}} [[Has period label::{{{period_label}}}]] |
|||
}}{{#if:{{{document_type|}}}| |
|||
| label13 = Source |
|||
{{!}}- |
|||
| data13 = {{#if:{{{source_url|}}}|[{{{source_url}}} original URL]}} |
|||
! Document type |
|||
{{!}} [[Has document type::{{{document_type}}}]] |
|||
| label14 = Docling document |
|||
}}{{#if:{{{publication_date|}}}| |
|||
| data14 = {{#if:{{{docling_file|}}}|[[Media:{{PAGENAME:{{{docling_file}}}}}|.txt file]]}} |
|||
{{!}}- |
|||
! Publication date |
|||
| label15 = Original md |
|||
{{!}} [[Has publication date::{{{publication_date}}}]] |
|||
| data15 = {{#if:{{{original_md|}}}|[[Media:{{PAGENAME:{{{original_md}}}}}|.md file]]}} |
|||
}}{{#if:{{{market_timing|}}}| |
|||
{{!}}- |
|||
| label16 = Transcript |
|||
! Market timing |
|||
| data16 = {{#if:{{{document|}}}|[[{{{document}}}|wiki page]]}} |
|||
{{!}} [[Has market timing::{{{market_timing}}}]] |
|||
}}{{#if:{{{language|}}}| |
|||
| label17 = Data |
|||
{{!}}- |
|||
| data17 = {{#ifexist:Data:{{FULLPAGENAME}}.json|[[Data:{{FULLPAGENAME}}.json|data page]]}} |
|||
! Language |
|||
{{!}} [[Has language::{{{language}}}]] |
|||
| label18 = Summary |
|||
}}{{#if:{{{pages|}}}| |
|||
| data18 = {{#if:{{{article|}}}|[[{{{article}}}|wiki page]]}} |
|||
{{!}}- |
|||
}}{{#if:{{{wide|}}}|</div>}}<noinclude> |
|||
! Pages |
|||
{{documentation}} |
|||
{{!}} [[Has pages::{{{pages}}}]] |
|||
</noinclude> |
|||
}}{{#if:{{{source_url|}}}| |
|||
{{!}}- |
|||
! Source |
|||
{{!}} [[Has source URL::{{{source_url}}}| ]][{{{source_url}}} Original URL] |
|||
}}{{#if:{{{archive_file|}}}| |
|||
{{!}}- |
|||
! Archive |
|||
{{!}} [[Has archive file::{{{archive_file}}}|.md file]] |
|||
}} |
|||
|}</includeonly> |
|||
Latest revision as of 19:01, 22 July 2026
| Document info |
|---|
File:Test Template Info-Icon - Version (2).svg Template documentation[create] [purge]