Template talk:Person

From Inventing aviation
Jump to navigation Jump to search
Documentation

There are four sections to this Cargo template:

1. The part with <noinclude><pre> is documentation, in a format an editor can copy into a mainspace page to give it a row in a Cargo table. This block could be deleted and the system would run the same. The <noinclude> bit means that when this template is transcluded, this part is NOT included out there in mainspace.

2. The part with {{#cargo_declare:_table=Person is specifying the fields of a Cargotable to be stored in the underlying SQL database. The underlying database seems not to allow spaces so you can see the use of underbars (_) in the SQL field names. This syntax is defined by the authors of #cargo_declare, not by MediaWiki generally.

3. The part with <includeonly>{{#cargo_store:_table=Person is assigning values in a template to the fields in the Cargo table somehow. This syntax is defined by the authors of #cargo_store, not by MediaWiki generally. The </includeonly> may mean this text is included on actual mainspace pages after this template is transcluded out there.

4. The part with {| class="wikitable" is defining something about how things appear on the wiki page and/or how they are interpreted when drawn from the database. #arraymap is defined by extension Page Forms I believe. The semicolons are a choice of the wiki editors -- we use semicolons as separators on this particular wiki, but commas would be possible I believe, or some other punctuation.