Template:Infobox Character

From My Fan Fiction
Revision as of 20:39, 28 June 2016 by Skca54admin (talk | contribs) (Created page with "<noinclude>This is a greatly simplified adaptation of the template from [[wikipedia:{{FULLPAGENAME}}]]. This version embeds semantic annotation inside the template, so the te...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is a greatly simplified adaptation of the template from wikipedia:Template:Infobox Character.

This version embeds semantic annotation inside the template, so the template both displays information in a table and records semantically meaningful properties. Such semantic templates simplify adding semantics to recurring elements in wiki pages.

Note this table does not handle missing values for Population and Area. That can be done using <source enclose="none" lang="bibtex"></source> from the MediaWiki ParserFunctions extension, but using conditionals in a table requires tricky syntax to mix pipe ' | ' symbols for layout and expressions (see wikipedia:Wikipedia:Conditional_tables).

The table appears below in this template page (we could hide it with <includeonly>). You don't see any factbox for this dummy table because in this Semantic MediaWiki installation, semantic annotations are not enabled in the Template namespace.

{{{Name}}}
Population [[Population::{{{Pop}}}]]
Area [[Area::{{{Area}}} sq mi]]