<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mwiki.costasano.club/index.php?action=history&amp;feed=atom&amp;title=ICT%3ATemplate_and_Cargo_Convention</id>
	<title>ICT:Template and Cargo Convention - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mwiki.costasano.club/index.php?action=history&amp;feed=atom&amp;title=ICT%3ATemplate_and_Cargo_Convention"/>
	<link rel="alternate" type="text/html" href="https://mwiki.costasano.club/index.php?title=ICT:Template_and_Cargo_Convention&amp;action=history"/>
	<updated>2026-07-22T23:28:13Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.45.1</generator>
	<entry>
		<id>https://mwiki.costasano.club/index.php?title=ICT:Template_and_Cargo_Convention&amp;diff=221&amp;oldid=prev</id>
		<title>Mngr: Mngr moved page ICT:Template &amp; Cargo Convention to ICT:Template and Cargo Convention without leaving a redirect</title>
		<link rel="alternate" type="text/html" href="https://mwiki.costasano.club/index.php?title=ICT:Template_and_Cargo_Convention&amp;diff=221&amp;oldid=prev"/>
		<updated>2026-01-29T14:51:54Z</updated>

		<summary type="html">&lt;p&gt;Mngr moved page &lt;a href=&quot;/index.php?title=ICT:Template_%26_Cargo_Convention&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;ICT:Template &amp;amp; Cargo Convention (page does not exist)&quot;&gt;ICT:Template &amp;amp; Cargo Convention&lt;/a&gt; to &lt;a href=&quot;/ICT:Template_and_Cargo_Convention&quot; title=&quot;ICT:Template and Cargo Convention&quot;&gt;ICT:Template and Cargo Convention&lt;/a&gt; without leaving a redirect&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 14:51, 29 January 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;en&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Mngr</name></author>
	</entry>
	<entry>
		<id>https://mwiki.costasano.club/index.php?title=ICT:Template_and_Cargo_Convention&amp;diff=217&amp;oldid=prev</id>
		<title>Mngr: Created page with &quot;= Template &amp; Cargo Conventions =  == Purpose == Defines standards for creating templates and Cargo tables.  Consistency keeps the system understandable.  ----  == Golden rule ==    One DB table = One template = One #cargo_store  Never mix multiple tables inside one template.  ----  == Basic template structure ==  Example:  &lt;pre&gt; {{#cargo_store:  _table=DigitalAssets  |id={{{id|}}}  |file_id={{{file_id|}}}  |description={{{description|}}} }} &lt;/pre&gt;  Nothing else should be...&quot;</title>
		<link rel="alternate" type="text/html" href="https://mwiki.costasano.club/index.php?title=ICT:Template_and_Cargo_Convention&amp;diff=217&amp;oldid=prev"/>
		<updated>2026-01-29T13:23:08Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;= Template &amp;amp; Cargo Conventions =  == Purpose == Defines standards for creating templates and Cargo tables.  Consistency keeps the system understandable.  ----  == Golden rule ==    One DB table = One template = One #cargo_store  Never mix multiple tables inside one template.  ----  == Basic template structure ==  Example:  &amp;lt;pre&amp;gt; {{#cargo_store:  _table=DigitalAssets  |id={{{id|}}}  |file_id={{{file_id|}}}  |description={{{description|}}} }} &amp;lt;/pre&amp;gt;  Nothing else should be...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Template &amp;amp; Cargo Conventions =&lt;br /&gt;
&lt;br /&gt;
== Purpose ==&lt;br /&gt;
Defines standards for creating templates and Cargo tables.&lt;br /&gt;
&lt;br /&gt;
Consistency keeps the system understandable.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== Golden rule ==&lt;br /&gt;
&lt;br /&gt;
  One DB table = One template = One #cargo_store&lt;br /&gt;
&lt;br /&gt;
Never mix multiple tables inside one template.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== Basic template structure ==&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{#cargo_store:&lt;br /&gt;
 _table=DigitalAssets&lt;br /&gt;
 |id={{{id|}}}&lt;br /&gt;
 |file_id={{{file_id|}}}&lt;br /&gt;
 |description={{{description|}}}&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Nothing else should be inside #cargo_store.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== Naming conventions ==&lt;br /&gt;
&lt;br /&gt;
=== Templates ===&lt;br /&gt;
Singular, PascalCase:&lt;br /&gt;
&lt;br /&gt;
* Template:DigitalAsset&lt;br /&gt;
* Template:HeritageObject&lt;br /&gt;
* Template:Person&lt;br /&gt;
&lt;br /&gt;
Not:&lt;br /&gt;
* DigitalAssetsTemplate&lt;br /&gt;
* digital_asset&lt;br /&gt;
* DA_template&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Cargo tables ===&lt;br /&gt;
Plural, match DBML:&lt;br /&gt;
&lt;br /&gt;
* DigitalAssets&lt;br /&gt;
* HeritageObjects&lt;br /&gt;
* Persons&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
=== Fields ===&lt;br /&gt;
Lowercase snake_case:&lt;br /&gt;
&lt;br /&gt;
* file_id&lt;br /&gt;
* parent_id&lt;br /&gt;
* date_from&lt;br /&gt;
&lt;br /&gt;
Avoid spaces or mixed casing.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== Field types (recommended) ==&lt;br /&gt;
&lt;br /&gt;
* string → String&lt;br /&gt;
* int → Integer&lt;br /&gt;
* float → Float&lt;br /&gt;
* datetime → Date/Datetime&lt;br /&gt;
* boolean → Boolean&lt;br /&gt;
* relations → Page&lt;br /&gt;
&lt;br /&gt;
Prefer Page type when linking to other entities.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
{{{field|digitalasset_id|input type=page|values from namespace=DA}}}&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Benefits:&lt;br /&gt;
* autocomplete&lt;br /&gt;
* fewer mistakes&lt;br /&gt;
* clickable links&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== Junction tables (many-to-many) ==&lt;br /&gt;
&lt;br /&gt;
Always create explicit tables.&lt;br /&gt;
&lt;br /&gt;
Example:&lt;br /&gt;
&lt;br /&gt;
HeritageObjectDigitalAssets&lt;br /&gt;
&lt;br /&gt;
Never store lists or comma-separated values.&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== Template responsibilities ==&lt;br /&gt;
&lt;br /&gt;
Templates must:&lt;br /&gt;
&lt;br /&gt;
* store data&lt;br /&gt;
* nothing else&lt;br /&gt;
&lt;br /&gt;
Avoid:&lt;br /&gt;
* formatting logic&lt;br /&gt;
* display layouts&lt;br /&gt;
* heavy wikitext&lt;br /&gt;
&lt;br /&gt;
Keep them clean and schema-focused.&lt;/div&gt;</summary>
		<author><name>Mngr</name></author>
	</entry>
</feed>