Jump to content

Template:Paper: Difference between revisions

From TOE-E Archive
Created page with "<noinclude> = Paper Template (TOE‑E) = Use this to render a polished branch paper page with semantic metadata, downloads, and citation. == Parameters == ; id : Branch ID (e.g., TOE‑E 0.0.3) [required] ; title : Human‑friendly title (e.g., Recursive ESR in Complex Systems) [required] ; subtitle : Optional subtitle line (short) ; year : Publication year (e.g., 2025) ; authors : Comma‑separated author list (e.g., William Bir..."
 
No edit summary
 
(36 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
= Paper Template (TOE‑E) =
= Paper Template (TOE‑E) — Variables‑free =
Use this to render a polished branch paper page with semantic metadata, downloads, and citation.


== Parameters ==
== Parameters ==
; id           : Branch ID (e.g., TOE‑E 0.0.3)  [required]
; id, title (required)
; title        : Human‑friendly title (e.g., Recursive ESR in Complex Systems) [required]
; subtitle, year, authors, authors_linked, roles, status, domain, subdomain, scale, substrate, e_type, s_type, r_type, timescale, license, conflicts, data_code
; subtitle     : Optional subtitle line (short)
; description, keywords (optional, stored)
; year          : Publication year (e.g., 2025)
; internal_doi, external_doi
; authors       : Comma‑separated author list (e.g., William Birmingham, Grok)
; pdf, latex, bibtex
; status       : Accepted / Draft / Under Review
; parent : optional parent paper/branch reference
; domain       : Biology / Physics / Cognition / Neuroscience / Climate / Theory Core / Cross‑domain
; displaytitle : yes/no (default yes)
; scale         : e.g., Ecosystem (km²)
; defaultsort : optional override (e.g., Ecosystem Resilience 0002)
; substrate     : e.g., Biological networks
; e_type       : What counts as Energy (text)
; s_type       : Entropy definition (text)
; r_type       : Resonance metric (text)
; timescale     : e.g., Decades
; license       : e.g., CC BY 4.0
; conflicts     : Conflict of interest note
; data_code    : Link or note (Zenodo/GitHub)
; internal_doi : internal style DOI (e.g., 10.toe-e/0.0.3)
; external_doi : external DOI (e.g., 10.5281/zenodo.1234567) or "pending"
; pdf           : File name or full link to the PDF (e.g., TOE-E_0.0.3.pdf)
; latex         : File name/zip for LaTeX source (optional)
; bibtex       : Optional custom BibTeX entry override (else auto‑generated)
; abstract      : The abstract text (wikitext allowed)
; displaytitle : yes/no (default yes). If yes, sets DISPLAYTITLE to "Title – ID"
; defaultsort   : Optional custom DEFAULTSORT (else auto "Title 0003")


== Example ==
== Requires (create once) ==
<nowiki>
* [[Template:DOI]]
{{Paper
* Properties: [[Property:Has title]], [[Property:Has description]], [[Property:Has keywords]],
| id=TOE‑E 0.0.3
  [[Property:Has domain]], [[Property:Has status]], [[Property:Branch ID]], [[Property:Has authors]], [[Property:Has roles]]
| title=Recursive ESR in Complex Systems
</noinclude><includeonly>
| year=2025
<!-- DISPLAYTITLE -->
| authors=CAIPR Collective (Aether; Grok; Scholar)
{{#if:{{{displaytitle|yes}}}|
| status=Accepted
  {{DISPLAYTITLE:{{{title}}} – {{{id}}} }}
| domain=Cross‑domain (Physics, Cognition, Neuroscience)
| scale=Micro (mm, ms) to macro (km, years)
| substrate=Neural/physical systems
| e_type=Energy flux (J/s, neural activation)
| s_type=Informational/thermodynamic entropy (bits, J/K)
| r_type=Recursive coherence (0–1)
| timescale=Milliseconds to years
| license=CC BY 4.0
| conflicts=None declared
| data_code=Zenodo DOI (placeholder)
| internal_doi=10.toe-e/0.0.3
| external_doi=pending
| pdf=TOE-E_0.0.3.pdf
| latex=TOE-E_0.0.3_LaTeX.zip
| abstract=Your 150–250 word abstract here.
}}
}}
</nowiki>


== Requires ==
<!-- DEFAULTSORT -->
Create once (if not already):
{{#if:{{{defaultsort|}}}|
* [[Template:DOI]] (you already have the draft)
  {{DEFAULTSORT:{{{defaultsort}}}}}
* Properties:
| <!-- simple, robust: sort by Title then ID -->
  * [[Property:Has title]] → <nowiki>[[Has type::Text]]</nowiki>
  {{DEFAULTSORT:{{{title}}} {{{id}}}}}
  * [[Property:Has description]] → <nowiki>[[Has type::Text]]</nowiki> (optional summary)
  * [[Property:Has domain]] → <nowiki>[[Has type::Text]]</nowiki>
  * [[Property:Has status]] → <nowiki>[[Has type::Text]]</nowiki>
  * [[Property:Branch ID]] → <nowiki>[[Has type::Text]]</nowiki>
  * [[Property:Has internal DOI]] → <nowiki>[[Has type::Text]]</nowiki>
  * [[Property:Has external DOI]] → <nowiki>[[Has type::Text]]</nowiki>
  * [[Property:Has authors]] → <nowiki>[[Has type::Text]]</nowiki>
  * (add more later as needed)
</noinclude><includeonly>
<!-- ============= Display title & sorting ============= -->
{{#vardefine:_display|{{#switch:{{lc:{{{displaytitle|yes}}}}}|yes=1|true=1|1=1|#default=0}}}}
{{#vardefine:_id|{{{id|}}}}}
{{#vardefine:_title|{{{title|}}}}}
{{#vardefine:_year|{{{year|}}}}}
 
{{#if:{{#var:_display}}
| {{DISPLAYTITLE:{{#var:_title}} – {{#var:_id}} }}
}}
<!-- DEFAULTSORT: if not provided, auto derive "Title ####" from ID suffix -->
{{#vardefine:_ds|{{{defaultsort|}}}}}
{{#if:{{#var:_ds}}
| {{DEFAULTSORT:{{#var:_ds}}}}
| {{#vardefine:_idnum|{{#replace:{{#var:_id}}|TOE‑E |}}}}
  {{#vardefine:_suffix|{{#titleparts:{{#var:_idnum}}|1|2}}}}
  {{DEFAULTSORT:{{#var:_title}} {{#var:_suffix}}}}
}}
}}


<!-- ============= Semantic storage (minimal core) ============= -->
<!-- Minimal semantic storage -->
{{#set:
{{#set:
  | Has title={{#var:_title}}
  | Has title       = {{{title}}}
  | Branch ID={{#var:_id}}
| Has description = {{{description|}}}
  | Has domain={{{domain|}}}
| Has keywords    = {{{keywords|}}}
  | Has status={{{status|}}}
  | Branch ID       = {{{id}}}
  | Has authors={{{authors|}}}
  | Has domain     = {{{domain|}}}
  | Has status     = {{{status|}}}
  | Has authors     = {{{authors|}}}
| Has roles      = {{{roles|}}}
| Has parent      = {{{parent|}}}
}}
}}


<!-- ============= Header box ============= -->
<!-- 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;">
<div style="border:1px solid #ddd; background:#f7f9fc; padding:14px; margin:8px 0; border-radius:6px;">
   <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="font-size:1.35em; font-weight:700; margin-bottom:2px;">
  <div style="color:#666; font-size:1.1em; margin-bottom:8px;">{{{subtitle}}}</div>}}
    {{#var:_title}} <span style="font-weight:400;">{{#var:_id}}</span>
   <div style="color:#444; margin-bottom:4px;"><strong>{{{authors_linked|{{{authors|<span style="color:#999;">(Authors not set)</span>}}}}}}</strong></div>{{#if:{{{domain|}}}|
  </div>
  <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>}}
  {{#if:{{{subtitle|}}}|<div style="color:#666; margin-top:2px;">{{{subtitle}}}</div>}}
   <div style="margin-top:6px; color:#444;">
    <b>Authors:</b> {{{authors|<span style="color:#999;">(not set)</span>}}}
    {{#if:{{#var:_year}}| <b>Year:</b> {{#var:_year}}}}
    {{#if:{{{status|}}}| • <b>Status:</b> {{{status}}}}}
    {{#if:{{{domain|}}}| • <b>Domain:</b> {{{domain}}}}}
  </div>
</div>
</div>


<!-- ============= Abstract ============= -->
== Abstract ==
== Abstract ==
{{{abstract|<span style="color:#999;">(No abstract provided.)</span>}}}
{{{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;">


<!-- ============= Downloads & DOI ============= -->
<div style="margin-bottom:18px;">
== Downloads ==
<strong style="color:#333;">Access Paper:</strong>
<ul>
<ul style="margin:8px 0 0 0; padding-left:20px; list-style:none;">
  {{#if:{{{pdf|}}}|<li>[[Media:{{{pdf}}}|Download PDF]]</li>}}
{{#if:{{{pdf|}}}|<li style="margin:4px 0;"><span style="color:#0066cc;">📄</span> [[Media:{{{pdf}}}|<strong>View PDF</strong>]]</li>}}
  {{#if:{{{latex|}}}|<li>[[Media:{{{latex}}}|Download LaTeX Source]]</li>}}
{{#if:{{{latex|}}}|<li style="margin:4px 0;"><span style="color:#666;">📝</span> [[Media:{{{latex}}}|TeX Source]]</li>}}
  {{#if:{{{bibtex|}}}|<li>[[Media:{{{bibtex}}}|Download BibTeX]]</li>}}
{{#if:{{{bibtex|}}}|<li style="margin:4px 0;"><span style="color:#666;">📚</span> [[Media:{{{bibtex}}}|BibTeX]]</li>}}
{{#if:{{{data_code|}}}|<li style="margin:4px 0;"><span style="color:#666;">💻</span> {{{data_code}}}</li>}}
</ul>
</ul>
</div>
{{#if:{{{parent|}}}{{{status|}}}|
<div style="margin-bottom:18px;">
<strong style="color:#333;">Paper Structure:</strong>
<table style="width:100%; margin-top:8px; font-size:0.85em;">
{{#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
{{DOI
  | internal={{{internal_doi|}}}
  | internal={{{internal_doi|}}}
  | external={{{external_doi|}}}
  | external={{{external_doi|}}}
| store=yes
}}
}}


<!-- ============= Metadata table ============= -->
<div style="margin:18px 0; border-top:1px solid #eee; padding-top:15px;">
== Metadata ==
<strong style="color:#333;">Metadata:</strong>
{| class="wikitable"
<table style="width:100%; margin-top:8px; font-size:0.85em;">
! Field !! Value
{{#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>}}
| Branch ID || {{#var:_id}}
{{#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>}}
| Domain || {{{domain|}}}
{{#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>}}
| Scale || {{{scale|}}}
{{#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>}}
| Substrate || {{{substrate|}}}
{{#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>}}
| E‑type || {{{e_type|}}}
</table>
|-
</div>
| S‑type || {{{s_type|}}}
|-
| R‑type || {{{r_type|}}}
|-
| Timescale || {{{timescale|}}}
|-
| Data/Code || {{{data_code|}}}
|-
| License || {{{license|}}}
|-
| Conflicts || {{{conflicts|}}}
|}


<!-- ============= Citation block ============= -->
<div style="margin-top:18px; border-top:1px solid #eee; padding-top:15px;">
== Citation ==
<strong style="color:#333;">Citation:</strong>
<div style="border:1px solid #eee; background:#fafafa; padding:10px; border-radius:6px;">
<div style="background:#fff; border:1px solid #ddd; padding:8px; margin:8px 0; border-radius:4px; font-size:0.8em; line-height:1.4;">
  <b>Suggested citation (APA):</b><br/>
<strong>APA:</strong><br/>
  {{#if:{{#var:_year}}
{{{authors|TOE-E Collective}}}. ({{{year|{{CURRENTYEAR}}}}}).
    | {{{authors|TOE‑E Collective}}}. ({{#var:_year}}). ''{{#var:_title}} – {{#var:_id}}''. TOE‑E Archive.
<em>{{{title}}} – {{{id}}}</em>. TOE-E Archive.
    | {{{authors|TOE‑E Collective}}}. ''{{#var:_title}} – {{#var:_id}}''. 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}}}]
   }}
   }}
  {{#if:{{{external_doi|}}}|. doi:{{{external_doi}}}}
}}
</div>
</div>


<details style="margin-top:6px;">
<div class="mw-collapsible mw-collapsed" style="margin-top:8px;">
<summary><b>BibTeX</b></summary>
<div style="cursor:pointer; color:#0066cc;"><strong>▶ Export BibTeX</strong></div>
 
<div class="mw-collapsible-content">
<pre style="white-space:pre-wrap; background:#f8f8f8; padding:8px; border:1px solid #eee; border-radius:6px;">
{{#tag:pre|
{{#if:{{{bibtex|}}}
@article{TOEE-{{{bibkey|{{{id}}}}}}},
| {{{bibtex}}}
   title  = &#123; {{{title}}} – {{{id}}} &#125;,
| @article{TOEE-{{#replace:{{#var:_id}}| |-}},
   author  = &#123; {{{authors|TOE-E Collective}}} &#125;,
   title  = { {{#var:_title}} – {{#var:_id}} },
   year    = &#123; {{{year|{{CURRENTYEAR}}}}} &#125;,
   author  = { {{{authors|TOE-E Collective}}} },
   journal = &#123; TOE-E Archive &#125;,
   year    = { {{#var:_year|{{CURRENTYEAR}}}} },
   note    = &#123; {{#if:{{{external_doi|}}}
   journal = {TOE-E Archive},
                    | {{#ifeq:{{lc:{{{external_doi}}}}}|pending|DOI pending|DOI: {{{external_doi}}}}}
   note    = { {{#ifeq:{{lc:{{{external_doi|}}}}}|pending|DOI pending|DOI: {{{external_doi|}}}} } }
                    | 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;
}}
}}
</pre>
</div>
</details>
</div>
 
</div>
 
</div>
</div>
 
</includeonly>
</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