Difference between revisions of "Template talk:Person"

From Wikispooks
Jump to navigation Jump to search
m (link to archive)
(seems good)
Line 1: Line 1:
 
<small>[[Template talk:Person/archive 1|Page archive 1]]</small>
 
<small>[[Template talk:Person/archive 1|Page archive 1]]</small>
 
==Maintaining Wikipedia compatibility==
 
==Maintaining Wikipedia compatibility==
The wikipedia Infobox templates use 'Scributo' to both pars and display template parameters. They are stuctured heirarchically with <code>Template:Infobox</code> using the parameters passed to it by <code>Template:Infobox person</code>. The call to <code>Template:Infobox</code> is the first item in the calling template. <code>Infobox</code> passes the <code>Infobox person</code>subsidiary template parameters to the ''Scribunto'' <code>Module:Infobox</code> as a series of numbered pairs. The allowable parameters are copy/pasteable from the <code>Infobox xxxx/doc</code>.
+
The wikipedia Infobox templates use '[[Scribunto]]' to both parse and display template parameters. They are stuctured heirarchically with <code>Template:Infobox</code> using the parameters passed to it by <code>Template:Infobox person</code>. The call to <code>Template:Infobox</code> is the first item in the calling template. <code>Infobox</code> passes the <code>Infobox person</code>subsidiary template parameters to the ''Scribunto'' <code>Module:Infobox</code> as a series of numbered pairs. The allowable parameters are copy/pasteable from the <code>Infobox xxxx/doc</code>.
  
 
There are 72 parameter pairs available in the current iteration of the Template and module - ie more than Wikispooks is ever likely to wish to use. Scribunto identifies them by number so any new parameter names can probably replace existing pairs that are unlikely ever to be used by WS.
 
There are 72 parameter pairs available in the current iteration of the Template and module - ie more than Wikispooks is ever likely to wish to use. Scribunto identifies them by number so any new parameter names can probably replace existing pairs that are unlikely ever to be used by WS.
Line 7: Line 7:
 
The templates seem to be working fine with the basic information currently being passed by the few pages that have been imported from Wikipedia and the Infobox specs left unchanged. It seems therefore that the simplest way forward will be to construct new templates for inclusion in the <code>Infobox xxxx</code> templates and containing just the required SMW property assignments. minor adjustments to the existing parameter names will also be required (Noteably "known for" to replace "description" for persons - also probably birth and death date names and locations). The property assignments in the existing <code>Template:Person</code>, with some parameter name adjustments can be used as the <code>Infobox Person</code> include.  
 
The templates seem to be working fine with the basic information currently being passed by the few pages that have been imported from Wikipedia and the Infobox specs left unchanged. It seems therefore that the simplest way forward will be to construct new templates for inclusion in the <code>Infobox xxxx</code> templates and containing just the required SMW property assignments. minor adjustments to the existing parameter names will also be required (Noteably "known for" to replace "description" for persons - also probably birth and death date names and locations). The property assignments in the existing <code>Template:Person</code>, with some parameter name adjustments can be used as the <code>Infobox Person</code> include.  
  
Comments, observations etc please --[[User:Peter|Peter P]] ([[User talk:Peter|talk]]) 13:43, 18 February 2014 (GMT)
+
Comments, observations etc. please --[[User:Peter|Peter P]] ([[User talk:Peter|talk]]) 13:43, 18 February 2014 (GMT)
 +
 
 +
:I like the idea of maintaining compatability, but indeed quite a lot of the 72 pairs are not currently relevant to WikiSpooks and unlikely ever to be so. Meaning they can be replaced without loss, freeing up some slots for some custom Wikispooks parameters, such as WP page. [[User:Robin|Robin]] ([[User talk:Robin|talk]]) 13:53, 18 February 2014 (GMT)

Revision as of 13:53, 18 February 2014

Page archive 1

Maintaining Wikipedia compatibility

The wikipedia Infobox templates use 'Scribunto' to both parse and display template parameters. They are stuctured heirarchically with Template:Infobox using the parameters passed to it by Template:Infobox person. The call to Template:Infobox is the first item in the calling template. Infobox passes the Infobox personsubsidiary template parameters to the Scribunto Module:Infobox as a series of numbered pairs. The allowable parameters are copy/pasteable from the Infobox xxxx/doc.

There are 72 parameter pairs available in the current iteration of the Template and module - ie more than Wikispooks is ever likely to wish to use. Scribunto identifies them by number so any new parameter names can probably replace existing pairs that are unlikely ever to be used by WS.

The templates seem to be working fine with the basic information currently being passed by the few pages that have been imported from Wikipedia and the Infobox specs left unchanged. It seems therefore that the simplest way forward will be to construct new templates for inclusion in the Infobox xxxx templates and containing just the required SMW property assignments. minor adjustments to the existing parameter names will also be required (Noteably "known for" to replace "description" for persons - also probably birth and death date names and locations). The property assignments in the existing Template:Person, with some parameter name adjustments can be used as the Infobox Person include.

Comments, observations etc. please --Peter P (talk) 13:43, 18 February 2014 (GMT)

I like the idea of maintaining compatability, but indeed quite a lot of the 72 pairs are not currently relevant to WikiSpooks and unlikely ever to be so. Meaning they can be replaced without loss, freeing up some slots for some custom Wikispooks parameters, such as WP page. Robin (talk) 13:53, 18 February 2014 (GMT)