Jump to content

Template:Paper: Difference between revisions

From TOE-E Archive
No edit summary
Tag: Reverted
No edit summary
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
<!-- Main layout with sidebar -->
<noinclude>
<div style="display:flex; flex-wrap:wrap; gap:20px; align-items:flex-start;">
= Paper Template (TOE‑E) — Variables‑free =


  <!-- Main content area -->
== Parameters ==
  <div style="flex:1 1 60%; min-width:380px;">
; id, title (required)
    <!-- Clean header -->
; subtitle, year, authors, authors_linked, roles, status, domain, subdomain, scale, substrate, e_type, s_type, r_type, timescale, license, conflicts, data_code
    <div style="margin-bottom:20px;">
; description, keywords (optional, stored)
      <h1 style="font-size:1.5em; margin:0 0 8px 0; line-height:1.2;">
; internal_doi, external_doi
        {{{title}}}{{#if:{{{id|}}}| – <span style="font-weight:normal; color:#666;">{{{id}}}</span>}}
; pdf, latex, bibtex
      </h1>
; parent : optional parent paper/branch reference
      {{#if:{{{subtitle|}}}|<div style="color:#666; font-size:1.1em; margin-bottom:8px;">{{{subtitle}}}</div>}}
; displaytitle : yes/no (default yes)
      <div style="color:#444; margin-bottom:4px;">
; defaultsort  : optional override (e.g., Ecosystem Resilience 0002)
        <strong>{{{authors|<span style="color:#999;">(Authors not set)</span>}}}</strong>
      </div>
      <div style="color:#666; font-size:0.9em; margin-bottom:4px;">
        <em>{{#if:{{{status|}}}|{{{status}}}{{#if:{{{year|}}}| {{{year}}}}}|{{#if:{{{year|}}}|Submitted {{{year}}}|}}}}</em>
      </div>
      {{#if:{{{domain|}}}|<div style="color:#666; font-size:0.85em; margin-bottom:8px;">
        <strong>Subjects:</strong> <span style="color:#0066cc;">{{{domain}}}{{#if:{{{subdomain|}}}| > {{{subdomain}}}|}}</span>{{#if:{{{keywords|}}}|; {{{keywords}}}}}
      </div>}}
    </div>


    <h2 style="margin:0 0 8px 0; font-size:1.15em; color:#333;">Abstract</h2>
== Requires (create once) ==
    <div>
* [[Template:DOI]]
      {{{abstract|<span style="color:#999;">(No abstract provided.)</span>}}}
* Properties: [[Property:Has title]], [[Property:Has description]], [[Property:Has keywords]],
    </div>
  [[Property:Has domain]], [[Property:Has status]], [[Property:Branch ID]], [[Property:Has authors]], [[Property:Has roles]]
  </div><!-- /main content -->
</noinclude><includeonly>
<!-- DISPLAYTITLE -->
{{#if:{{{displaytitle|yes}}}|
  {{DISPLAYTITLE:{{{title}}} – {{{id}}} }}
}}


  <!-- Sidebar -->
<!-- DEFAULTSORT -->
   <div style="flex:0 0 300px; min-width:300px; background:#f8f9fa; border:1px solid #ddd; border-radius:6px; padding:15px; font-size:0.9em;">
{{#if:{{{defaultsort|}}}|
   {{DEFAULTSORT:{{{defaultsort}}}}}
| <!-- simple, robust: sort by Title then ID -->
  {{DEFAULTSORT:{{{title}}} {{{id}}}}}
}}


    <div style="margin-bottom:18px;">
<!-- Minimal semantic storage -->
      <strong style="color:#333;">Access Paper:</strong>
{{#set:
      <ul style="margin:8px 0 0 0; padding-left:20px; list-style:none;">
| Has title      = {{{title}}}
        {{#if:{{{pdf|}}}|<li style="margin:4px 0;"><span style="color:#0066cc;">📄</span> [[Media:{{{pdf}}}|<strong>View PDF</strong>]]</li>}}
| Has description = {{{description|}}}
        {{#if:{{{latex|}}}|<li style="margin:4px 0;"><span style="color:#666;">📝</span> [[Media:{{{latex}}}|TeX Source]]</li>}}
| Has keywords    = {{{keywords|}}}
        {{#if:{{{bibtex|}}}|<li style="margin:4px 0;"><span style="color:#666;">📚</span> [[Media:{{{bibtex}}}|BibTeX]]</li>}}
| Branch ID      = {{{id}}}
        {{#if:{{{data_code|}}}|<li style="margin:4px 0;"><span style="color:#666;">💻</span> {{{data_code}}}</li>}}
| Has domain      = {{{domain|}}}
      </ul>
| Has status      = {{{status|}}}
    </div>
| Has authors    = {{{authors|}}}
| Has roles      = {{{roles|}}}
| Has parent      = {{{parent|}}}
}}


    {{DOI | internal={{{internal_doi|}}} | external={{{external_doi|}}} | store=yes }}
<!-- Main layout with sidebar --><div style="display:flex; gap:20px; align-items:flex-start;"><!-- Main content area --><div style="flex:1; min-width:0;"><!-- Clean header --><div style="margin-bottom:20px;">
  <h1 style="font-size:1.5em; margin:0 0 8px 0; line-height:1.2;">{{{title}}}{{#if:{{{id|}}}| – <span style="font-weight:normal; color:#666;">{{{id}}}</span>}}</h1>{{#if:{{{subtitle|}}}|
  <div style="color:#666; font-size:1.1em; margin-bottom:8px;">{{{subtitle}}}</div>}}
  <div style="color:#444; margin-bottom:4px;"><strong>{{{authors_linked|{{{authors|<span style="color:#999;">(Authors not set)</span>}}}}}}</strong></div>{{#if:{{{domain|}}}|
  <div style="color:#666; font-size:0.85em; margin-bottom:8px;"><strong>Subjects:</strong> <span style="color:#0066cc;">{{{domain}}}{{#if:{{{subdomain|}}}| > {{{subdomain}}}|}}</span>{{#if:{{{keywords|}}}|; {{{keywords}}}}}</div>}}
</div>


    <div style="margin:18px 0; border-top:1px solid #eee; padding-top:15px;">
== Abstract ==
      <strong style="color:#333;">Metadata:</strong>
{{{abstract|<span style="color:#999;">(No abstract provided.)</span>}}}</div><!-- Sidebar --><div style="flex:0 0 280px; background:#f8f9fa; border:1px solid #ddd; border-radius:6px; padding:15px; font-size:0.9em;">
      <table style="width:100%; margin-top:8px; font-size:0.85em;">
        {{#if:{{{domain|}}}|<tr><td style="color:#666; padding:2px 0;"><strong>Domain:</strong></td><td style="padding:2px 0;">{{{domain}}}</td></tr>}}
        {{#if:{{{subdomain|}}}|<tr><td style="color:#666; padding:2px 0;"><strong>Subdomain:</strong></td><td style="padding:2px 0;">{{{subdomain}}}</td></tr>}}
        {{#if:{{{scale|}}}|<tr><td style="color:#666; padding:2px 0;"><strong>Scale:</strong></td><td style="padding:2px 0;">{{{scale}}}</td></tr>}}
        {{#if:{{{substrate|}}}|<tr><td style="color:#666; padding:2px 0;"><strong>Substrate:</strong></td><td style="padding:2px 0;">{{{substrate}}}</td></tr>}}
        {{#if:{{{e_type|}}}|<tr><td style="color:#666; padding:2px 0;"><strong>E‑type:</strong></td><td style="padding:2px 0;">{{{e_type}}}</td></tr>}}
        {{#if:{{{s_type|}}}|<tr><td style="color:#666; padding:2px 0;"><strong>S‑type:</strong></td><td style="padding:2px 0;">{{{s_type}}}</td></tr>}}
        {{#if:{{{r_type|}}}|<tr><td style="color:#666; padding:2px 0;"><strong>R‑type:</strong></td><td style="padding:2px 0;">{{{r_type}}}</td></tr>}}
        {{#if:{{{timescale|}}}|<tr><td style="color:#666; padding:2px 0;"><strong>Timescale:</strong></td><td style="padding:2px 0;">{{{timescale}}}</td></tr>}}
        {{#if:{{{data_code|}}}|<tr><td style="color:#666; padding:2px 0;"><strong>Data/Code:</strong></td><td style="padding:2px 0;">{{{data_code}}}</td></tr>}}
        {{#if:{{{conflicts|}}}|<tr><td style="color:#666; padding:2px 0;"><strong>Conflicts:</strong></td><td style="padding:2px 0;">{{{conflicts}}}</td></tr>}}
        {{#if:{{{license|}}}|<tr><td style="color:#666; padding:2px 0;"><strong>License:</strong></td><td style="padding:2px 0;">{{{license}}}</td></tr>}}
      </table>
    </div>


    <div style="margin-top:18px; border-top:1px solid #eee; padding-top:15px;">
<div style="margin-bottom:18px;">
      <strong style="color:#333;">Citation:</strong>
<strong style="color:#333;">Access Paper:</strong>
      <div style="background:#fff; border:1px solid #ddd; padding:8px; margin:8px 0; border-radius:4px; font-size:0.8em; line-height:1.4;">
<ul style="margin:8px 0 0 0; padding-left:20px; list-style:none;">
        <strong>APA:</strong><br/>
{{#if:{{{pdf|}}}|<li style="margin:4px 0;"><span style="color:#0066cc;">📄</span> [[Media:{{{pdf}}}|<strong>View PDF</strong>]]</li>}}
        {{{authors|TOE-E Collective}}}. ({{{year|{{CURRENTYEAR}}}}}).
{{#if:{{{latex|}}}|<li style="margin:4px 0;"><span style="color:#666;">📝</span> [[Media:{{{latex}}}|TeX Source]]</li>}}
        <em>{{{title}}} – {{{id}}}</em>. TOE-E Archive.
{{#if:{{{bibtex|}}}|<li style="margin:4px 0;"><span style="color:#666;">📚</span> [[Media:{{{bibtex}}}|BibTeX]]</li>}}
        {{#if:{{{external_doi|}}}|
{{#if:{{{data_code|}}}|<li style="margin:4px 0;"><span style="color:#666;">💻</span> {{{data_code}}}</li>}}
          {{#ifeq:{{lc:{{{external_doi}}}}}|pending|
</ul>
            <span style="color:#999;"> (DOI pending)</span>
</div>
            | . doi:[https://doi.org/{{{external_doi}}} {{{external_doi}}}]
          }}
        }}
      </div>


      <!-- Collapsible BibTeX (no Lua needed) -->
{{#if:{{{parent|}}}{{{status|}}}|
      <details style="margin-top:8px;">
<div style="margin-bottom:18px;">
        <summary><b>Export BibTeX</b></summary>
<strong style="color:#333;">Paper Structure:</strong>
        {{#tag:pre|
<table style="width:100%; margin-top:8px; font-size:0.85em;">
@article{TOEE-{{{bibkey|{{#replace:{{{id}}}| |-}}}}}},
{{#if:{{{parent|}}}|<tr><td style="color:#666; padding:2px 0;"><strong>Parent:</strong></td><td style="padding:2px 0;">[[{{{parent}}}]]</td></tr>}}
{{#if:{{{status|}}}|<tr><td style="color:#666; padding:2px 0;"><strong>Status:</strong></td><td style="padding:2px 0;">{{{status}}}{{#if:{{{year|}}}| ({{{year}}})}}</td></tr>}}
</table>
</div>
}}
 
{{DOI
| internal={{{internal_doi|}}}
| external={{{external_doi|}}}
| store=yes
}}
 
<div style="margin:18px 0; border-top:1px solid #eee; padding-top:15px;">
<strong style="color:#333;">Metadata:</strong>
<table style="width:100%; margin-top:8px; font-size:0.85em;">
{{#if:{{{domain|}}}|<tr><td style="color:#666; padding:2px 0;"><strong>Domain:</strong></td><td style="padding:2px 0;">{{{domain}}}</td></tr>}}
{{#if:{{{scale|}}}|<tr><td style="color:#666; padding:2px 0;"><strong>Scale:</strong></td><td style="padding:2px 0;">{{{scale}}}</td></tr>}}
{{#if:{{{substrate|}}}|<tr><td style="color:#666; padding:2px 0;"><strong>Substrate:</strong></td><td style="padding:2px 0;">{{{substrate}}}</td></tr>}}
{{#if:{{{e_type|}}}|<tr><td style="color:#666; padding:2px 0;"><strong>E‑type:</strong></td><td style="padding:2px 0;">{{{e_type}}}</td></tr>}}
{{#if:{{{s_type|}}}|<tr><td style="color:#666; padding:2px 0;"><strong>S‑type:</strong></td><td style="padding:2px 0;">{{{s_type}}}</td></tr>}}
{{#if:{{{r_type|}}}|<tr><td style="color:#666; padding:2px 0;"><strong>R‑type:</strong></td><td style="padding:2px 0;">{{{r_type}}}</td></tr>}}
{{#if:{{{timescale|}}}|<tr><td style="color:#666; padding:2px 0;"><strong>Timescale:</strong></td><td style="padding:2px 0;">{{{timescale}}}</td></tr>}}
{{#if:{{{data_code|}}}|<tr><td style="color:#666; padding:2px 0;"><strong>Data/Code:</strong></td><td style="padding:2px 0;">{{{data_code}}}</td></tr>}}
{{#if:{{{conflicts|}}}|<tr><td style="color:#666; padding:2px 0;"><strong>Conflicts:</strong></td><td style="padding:2px 0;">{{{conflicts}}}</td></tr>}}
{{#if:{{{license|}}}|<tr><td style="color:#666; padding:2px 0;"><strong>License:</strong></td><td style="padding:2px 0;">{{{license}}}</td></tr>}}
</table>
</div>
 
<div style="margin-top:18px; border-top:1px solid #eee; padding-top:15px;">
<strong style="color:#333;">Citation:</strong>
<div style="background:#fff; border:1px solid #ddd; padding:8px; margin:8px 0; border-radius:4px; font-size:0.8em; line-height:1.4;">
<strong>APA:</strong><br/>
{{{authors|TOE-E Collective}}}. ({{{year|{{CURRENTYEAR}}}}}).
<em>{{{title}}} – {{{id}}}</em>. TOE-E Archive.
{{#if:{{{external_doi|}}}|
  {{#ifeq:{{lc:{{{external_doi}}}}}|pending|
    <span style="color:#999;"> (DOI pending)</span>
    | . doi:[https://doi.org/{{{external_doi}}} {{{external_doi}}}]
  }}
}}
</div>
 
<div class="mw-collapsible mw-collapsed" style="margin-top:8px;">
<div style="cursor:pointer; color:#0066cc;"><strong>▶ Export BibTeX</strong></div>
<div class="mw-collapsible-content">
{{#tag:pre|
@article{TOEE-{{{bibkey|{{{id}}}}}}},
   title  = &#123; {{{title}}} – {{{id}}} &#125;,
   title  = &#123; {{{title}}} – {{{id}}} &#125;,
   author  = &#123; {{{authors|TOE-E Collective}}} &#125;,
   author  = &#123; {{{authors|TOE-E Collective}}} &#125;,
Line 86: Line 121:
                     | DOI pending }} &#125;
                     | DOI pending }} &#125;
}
}
|style=white-space:pre-wrap; background:#f8f8f8; padding:6px; border:1px solid #ccc; border-radius:3px; margin:4px 0 0 0; font-family:monospace; font-size:0.75em; }}
|style=white-space:pre-wrap; background:#f8f8f8; padding:6px; border:1px solid #ccc; border-radius:3px; margin:4px 0 0 0; font-family:monospace; font-size:0.75em;
      </details>
}}
    </div><!-- /citation -->
</div>
</div>
 
</div>


  </div><!-- /sidebar -->
</div>
</div>


</div><!-- /layout -->
</includeonly>

Latest revision as of 01:17, 24 August 2025

Paper Template (TOE‑E) — Variables‑free

Parameters

id, title (required)
subtitle, year, authors, authors_linked, roles, status, domain, subdomain, scale, substrate, e_type, s_type, r_type, timescale, license, conflicts, data_code
description, keywords (optional, stored)
internal_doi, external_doi
pdf, latex, bibtex
parent
optional parent paper/branch reference
displaytitle
yes/no (default yes)
defaultsort
optional override (e.g., Ecosystem Resilience 0002)

Requires (create once)

 Property:Has domain, Property:Has status, Property:Branch ID, Property:Has authors, Property:Has roles