User:Maximilian.Klein.LRMI/RfC/transclusion

How it works
 * The MediaWiki templates pass LRMI properties through the templates' parameters, with the conversion to valid metadata markup handled by subsequently called templates and the HTML Tags MediaWiki extension. The LRMI templates are currently set up to use the terms mentioned in LRMI’s specification (which you can find here,) including the schema.org terms that it mentions.  To add metadata to a page, you can either directly add the  template or use the LRMI button we developed to the default edit window (which is found three buttons to the right of the button used to italicize text on the demo)  Here’s an example of what the LRMI-object template can look like:

Each of the parameters used in this template has a one-to-one correspondence with the terms used in LRMI.org’s specification. For the sake of simplicity, we have used the exact terms that appear in the specification. If a situation arises where it would be helpful to depart from the exact terms used in LRMI’s specification, it would be possible to do so without breaking anything as long as a one to one correspondence is maintained between the parameters in the template and the LRMI and schema.org specifications. Although we have only included terms from the LRMI specification in the template currently, it would be trivially easy to add any other terms that appear in schema.org’s specification if they would be useful on Wikibooks. When we have finalized the terms that will appear in the template, we’ll copy over descriptions of each term into the on-wiki documentation for the template. You can see a demonstration of the use of this template at this page on our demo wiki (which contains part of Wikijunior:Biology/Introduction, copied over with metadata added to it.) The addition of metadata doesn’t change what is displayed to the average viewer - you can only see the metadata in the editing window, or if you run the page through Google’s rich text snippet tool.

Under the hood
 * The Template calls two templates under the hood.   and  are used in turn to call HTML‘s   and   tags which is where schema.org and LRMI metadata is specified.  The last template,  can be used to tag pages with single metadata properties.  You can see a demonstration of how it works on this page of the demo wiki.  We don’t anticipate that this will be used on Wikibooks anywhere nearly as frequently as  which bundles all the LRMI properties into one template.

We think that this set of templates, coupled with HTML Tags, would pose a lot of advantages for Wikibooks. We’ve written a brief FAQ-style document and transcluded it below - hopefully, it’ll answer more questions that some of you may have, without just being a giant wall of text. If you have questions that aren’t answered in the overview or the FAQ, please feel free to ask them :)