Template:Infobox doc archive: Difference between revisions

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..."
 
PlumBot: deploy Infobox doc_archive template
 
(2 intermediate revisions by the same user not shown)
Line 1:
{{#set:
<noinclude>
{{#if:{{{organization|}}}|Has organization={{{organization}}}|}}
Infobox for doc_archive pages. Annotates each field with a
|{{#if:{{{year|}}}|Has year={{{year}}}|}}
Semantic MediaWiki property so pages are queryable via
|{{#if:{{{period|}}}|Has period={{{period}}}|}}
<code>#ask</code>.
|{{#if:{{{period_label|}}}|Has period label={{{period_label}}}|}}
|{{#if:{{{document_type|}}}|Has document type={{{document_type}}}|}}
|{{#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:{{{archive_file|}}}|Has archive file={{{archive_file}}}|}}
}}{{Infobox
| abovestyle = text-align:center; background-color:#cee0f2; color:inherit;
| above = {{{name|Document info}}}
 
| label1 = Organization
== Usage ==
| data1 = {{{organization|}}}
<pre>
 
{{Infobox doc_archive
| organization label2 = AXAYear
| data2 = {{{year|}}}
| year = 2026
 
| period = Q1
| period_label label3 = 1Q26Period
| data3 = {{{period|}}}
| document_type = Earnings press release
 
| publication_date = 2026-05-15
| label4 = Period label
| market_timing = Pre-market
| data4 = {{{period_label|}}}
| language = English
 
| pages = 10
| label5 = Document type
| source_url = https://example.com/report.pdf
| data5 = {{{document_type|}}}
| archive_file = File:AXA - 2026 - Q1 2026 earnings.md
 
}}
| label6 = Publication date
</pre>
| data6 = {{{publication_date|}}}
</noinclude><includeonly>{| class="wikitable" style="float:right; margin-left:1em; width:22em; font-size:90%;"
 
|-
| label7 = Market timing
! colspan="2" style="text-align:center; background:#cee0f2;" | Document info
| data7 = {{{market_timing|}}}
{{#if:{{{organization|}}}|
 
{{!}}-
| label8 = Language
! Organization
| data8 = {{{language|}}}
{{!}} [[Has organization::{{{organization}}}]]
 
}}{{#if:{{{year|}}}|
| label9 = Pages
{{!}}-
| data9 = {{{pages|}}}
! Year
 
{{!}} [[Has year::{{{year}}}]]
| label10 = Source
}}{{#if:{{{period|}}}|
| data10 = {{#if:{{{source_url|}}}|[{{{source_url}}} Original URL]}}
{{!}}-
 
! Period
| label11 = Archive
{{!}} [[Has period::{{{period}}}]]
| data11 = {{#if:{{{archive_file|}}}|[[:{{{archive_file}}}|.md file]]}}
}}{{#if:{{{period_label|}}}|
}}<noinclude>
{{!}}-
{{documentation}}
! Period label
</noinclude>
{{!}} [[Has period label::{{{period_label}}}]]
}}{{#if:{{{document_type|}}}|
{{!}}-
! Document type
{{!}} [[Has document type::{{{document_type}}}]]
}}{{#if:{{{publication_date|}}}|
{{!}}-
! Publication date
{{!}} [[Has publication date::{{{publication_date}}}]]
}}{{#if:{{{market_timing|}}}|
{{!}}-
! Market timing
{{!}} [[Has market timing::{{{market_timing}}}]]
}}{{#if:{{{language|}}}|
{{!}}-
! Language
{{!}} [[Has language::{{{language}}}]]
}}{{#if:{{{pages|}}}|
{{!}}-
! Pages
{{!}} [[Has pages::{{{pages}}}]]
}}{{#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>