Jump to content

Template:BranchMetadata: Difference between revisions

From TOE-E Archive
Created page with "<noinclude> = BranchMetadata Template = Use this template at the top of every Branch page to keep metadata consistent and semantic queries working. == Usage == {{BranchMetadata | author = William | contributors= Aether, Claude | domain = Cognition | date = 2025-08-21 | status = Draft }} </noinclude> <includeonly> <div style="border:1px solid #ddd; background:#f9f9f9; padding:12px; margin:8px 0; box-shadow:0 1px 4px rgba(0,0,0,.06);"> <table..."
 
No edit summary
 
Line 1: Line 1:
<noinclude>
<noinclude>
= BranchMetadata Template =
= Template:BranchMetadata =
Use this template at the top of every Branch page to keep metadata consistent
Use this on any branch page to (a) display a tidy metadata table and (b) store all fields as SMW facts via {{#set}}.
and semantic queries working.


== Usage ==
== Usage ==
Paste on a branch page like:
<pre>
{{BranchMetadata
{{BranchMetadata
  | author     = William
  | title        = TOE-E 0.0.3: Recursive ESR in Complex Systems
  | contributors= Aether, Claude
| description  = TOE-E branch exploring recursive E, S, R across physics and cognition.
  | domain      = Cognition
| keywords     = TOE-E, ESR, recursive emergence, complex systems
  | date       = 2025-08-21
| branch_id    = TOE-E 0.0.3
  | status     = Draft
| domain        = 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
| data_code    = Zenodo DOI (placeholder)
| authors      = William Birmingham; Grok
  | contributors = Scholar
| roles        = William Birmingham (design); Grok (analysis)
| license      = CC BY 4.0
| conflicts    = None declared
  | status        = Accepted
  | date         = 2025-08-21
  | parent        = Branch:0.0.0
| abstract     = Short 1–3 sentence abstract here.
}}
}}
</pre>
== Notes ==
* Add the matching SMW properties after this template is created (see comments in code).
* Separate multiple names with semicolons (;) for cleaner parsing.
* Keep values short and plain text (no templates) unless you intend to link pages.
</noinclude>
</noinclude>


<includeonly>
<includeonly>
<div style="border:1px solid #ddd; background:#f9f9f9; padding:12px; margin:8px 0; box-shadow:0 1px 4px rgba(0,0,0,.06);">
<!-- ============================= -->
  <table style="width:100%; border-collapse:collapse;">
<!-- 1) Store as SMW facts        -->
     <tr>
<!-- ============================= -->
       <th style="text-align:left; width:30%; padding:4px;">Author</th>
{{#set:
       <td style="padding:4px;">[[Has author::{{{author|}}}]]</td>
| Has title        = {{{title|}}}
    </tr>
| Has description  = {{{description|}}}
    <tr>
| Has keywords     = {{{keywords|}}}
      <th style="text-align:left; padding:4px;">Contributors</th>
| Branch ID        = {{{branch_id|}}}
       <td style="padding:4px;">
| Has domain       = {{{domain|}}}
         {{#if:{{{contributors|}}}|[[Has contributor::{{{contributors}}}]]|—}}
| Scale            = {{{scale|}}}
      </td>
| Substrate        = {{{substrate|}}}
     </tr>
| E-type          = {{{e_type|}}}
    <tr>
| S-type          = {{{s_type|}}}
      <th style="text-align:left; padding:4px;">Domain</th>
| R-type          = {{{r_type|}}}
      <td style="padding:4px;">[[Has domain::{{{domain|}}}]]</td>
| Timescale        = {{{timescale|}}}
     </tr>
| Data/Code        = {{{data_code|}}}
    <tr>
| Has author       = {{{authors|}}}
       <th style="text-align:left; padding:4px;">Date</th>
| Has contributor  = {{{contributors|}}}
       <td style="padding:4px;">[[Has date::{{{date|}}}]]</td>
| Roles            = {{{roles|}}}
    </tr>
| License          = {{{license|}}}
    <tr>
| Conflicts        = {{{conflicts|}}}
       <th style="text-align:left; padding:4px;">Status</th>
| Has status       = {{{status|}}}
       <td style="padding:4px;">[[Has status::{{{status|}}}]]</td>
| Has date         = {{{date|}}}
    </tr>
| Has parent      = {{{parent|}}}
  </table>
| Has abstract    = {{{abstract|}}}
</div>
}}
 
<!--
RECOMMENDED PROPERTY PAGES (create these once):
Property:Has title          [[Has type::Text]]
Property:Has description     [[Has type::Text]]
Property:Has keywords        [[Has type::Text]]
Property:Branch ID          [[Has type::Text]]
Property:Has domain          [[Has type::Page]]  (points to domain categories/pages)
Property:Scale              [[Has type::Text]]
Property:Substrate          [[Has type::Text]]
Property:E-type              [[Has type::Text]]
Property:S-type              [[Has type::Text]]
Property:R-type              [[Has type::Text]]
Property:Timescale          [[Has type::Text]]
Property:Data/Code          [[Has type::Text]]
Property:Has author          [[Has type::Page]]   (person/agent pages)
Property:Has contributor     [[Has type::Page]]
Property:Roles              [[Has type::Text]]
Property:License            [[Has type::Text]]
Property:Conflicts          [[Has type::Text]]
Property:Has status          [[Has type::Page]]  (create pages: Status:Draft/Proposed/Accepted/Rejected)
Property:Has date            [[Has type::Date]]
Property:Has parent          [[Has type::Page]]
Property:Has abstract        [[Has type::Text]]
-->
 
<!-- ============================= -->
<!-- 2) Human-facing display       -->
<!-- ============================= -->
{| class="wikitable"
|+ '''Branch metadata'''
! Field !! Value
{{#if:{{{branch_id|}}}          | {{!}}- {{!}} Branch ID      {{!}} {{!}} {{{branch_id}}} }}
{{#if:{{{title|}}}              | {{!}}- {{!}} Title          {{!}} {{!}} {{{title}}} }}
{{#if:{{{description|}}}        | {{!}}- {{!}} Summary        {{!}} {{!}} {{{description}}} }}
{{#if:{{{domain|}}}            | {{!}}- {{!}} Domain          {{!}} {{!}} {{{domain}}} }}
{{#if:{{{scale|}}}              | {{!}}- {{!}} Scale          {{!}} {{!}} {{{scale}}} }}
{{#if:{{{substrate|}}}          | {{!}}- {{!}} Substrate       {{!}} {{!}} {{{substrate}}} }}
{{#if:{{{e_type|}}}            | {{!}}- {{!}} E-type          {{!}} {{!}} {{{e_type}}} }}
{{#if:{{{s_type|}}}            | {{!}}- {{!}} S-type          {{!}} {{!}} {{{s_type}}} }}
{{#if:{{{r_type|}}}            | {{!}}- {{!}} R-type          {{!}} {{!}} {{{r_type}}} }}
{{#if:{{{timescale|}}}          | {{!}}- {{!}} Timescale      {{!}} {{!}} {{{timescale}}} }}
{{#if:{{{data_code|}}}          | {{!}}- {{!}} Data/Code      {{!}} {{!}} {{{data_code}}} }}
{{#if:{{{authors|}}}            | {{!}}- {{!}} Authors        {{!}} {{!}} {{{authors}}} }}
{{#if:{{{contributors|}}}       | {{!}}- {{!}} Contributors    {{!}} {{!}} {{{contributors}}} }}
{{#if:{{{roles|}}}              | {{!}}- {{!}} Roles          {{!}} {{!}} {{{roles}}} }}
{{#if:{{{license|}}}            | {{!}}- {{!}} License        {{!}} {{!}} {{{license}}} }}
{{#if:{{{conflicts|}}}          | {{!}}- {{!}} Conflicts       {{!}} {{!}} {{{conflicts}}} }}
{{#if:{{{status|}}}            | {{!}}- {{!}} Status          {{!}} {{!}} {{{status}}} }}
{{#if:{{{date|}}}              | {{!}}- {{!}} Date            {{!}} {{!}} {{{date}}} }}
{{#if:{{{parent|}}}            | {{!}}- {{!}} Parent          {{!}} {{!}} {{{parent}}} }}
{{#if:{{{abstract|}}}          | {{!}}- {{!}} Abstract        {{!}} {{!}} {{{abstract}}} }}
|}
 
</includeonly>
</includeonly>

Latest revision as of 21:25, 21 August 2025

Template:BranchMetadata

Use this on any branch page to (a) display a tidy metadata table and (b) store all fields as SMW facts via {{#set}}.

Usage

Paste on a branch page like:

{{BranchMetadata
 | title         = TOE-E 0.0.3: Recursive ESR in Complex Systems
 | description   = TOE-E branch exploring recursive E, S, R across physics and cognition.
 | keywords      = TOE-E, ESR, recursive emergence, complex systems
 | branch_id     = TOE-E 0.0.3
 | domain        = 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
 | data_code     = Zenodo DOI (placeholder)
 | authors       = William Birmingham; Grok
 | contributors  = Scholar
 | roles         = William Birmingham (design); Grok (analysis)
 | license       = CC BY 4.0
 | conflicts     = None declared
 | status        = Accepted
 | date          = 2025-08-21
 | parent        = Branch:0.0.0
 | abstract      = Short 1–3 sentence abstract here.
}}

Notes

  • Add the matching SMW properties after this template is created (see comments in code).
  • Separate multiple names with semicolons (;) for cleaner parsing.
  • Keep values short and plain text (no templates) unless you intend to link pages.