Difference between revisions of "Template:Infobox person module documentation"

From blackwiki
Jump to navigation Jump to search
imported>Zyxw
(allow specific name for child/embed parameter)
imported>MJL
 
(One intermediate revision by one other user not shown)
Line 9: Line 9:
 
  | <nowiki><!--</nowiki> ''[[et cetera|etc.]]'' <nowiki>--></nowiki>
 
  | <nowiki><!--</nowiki> ''[[et cetera|etc.]]'' <nowiki>--></nowiki>
 
  | module =  
 
  | module =  
   <nowiki>{{</nowiki>{{{1|{{{template|EMBEDDED TEMPLATE NAME}}}}}} | {{#if:{{{parameter|}}} | {{{parameter}}}=yes | child=yes <nowiki><!--</nowiki> ''or'' embed=yes ''or'' subbox=yes <nowiki>--></nowiki>}}
+
   <nowiki>{{</nowiki>{{{1|{{{template|<includeonly>{{BASEPAGENAME}}</includeonly><noinclude>EMBEDDED TEMPLATE NAME</noinclude>}}}}}} | {{#if:{{{parameter|}}} | {{{parameter}}}=yes | child=yes <nowiki><!--</nowiki> ''or'' embed=yes ''or'' subbox=yes <nowiki>--></nowiki>}}
 
   | {{{2|{{{example_parameter1|parameter-1}}}}}} =  
 
   | {{{2|{{{example_parameter1|parameter-1}}}}}} =  
 
   | {{{3|{{{example_parameter2|parameter-2}}}}}} =  
 
   | {{{3|{{{example_parameter2|parameter-2}}}}}} =  
Line 19: Line 19:
  
 
[[Category:Template namespace templates]]
 
[[Category:Template namespace templates]]
[[Category:Template documentation]]
+
[[Category:Documentation shared content templates]]
[[Category:Documentation see also templates]]
 
 
</noinclude>
 
</noinclude>

Latest revision as of 00:58, 17 August 2019

This infobox may be used to create a genre-specific section within {{Infobox person}} (or similar biographical infobox templates) for cases where a person may be notable in more than one field; a generic example is shown below. For guidance on usage, see Wikipedia:Infobox modules. Also see the Template:Infobox documentation which explains embedding and subboxes.

{{Infobox person
| name = 
| image = 
| caption = 
| birth_date = 
| birth_place = 
| <!-- etc. -->
| module = 
  {{EMBEDDED TEMPLATE NAME | child=yes <!-- or embed=yes or subbox=yes -->
  | parameter-1 = 
  | parameter-2 = 
  | parameter-3 = 
  | parameter-4 = 
  | <!-- etc. -->
  }}
}}