Page protected

Difference between revisions of "Template:ObjectInfobox"

From Life After BOB Wiki
Jump to navigation Jump to search
 
(19 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 +
{{#invoke:Protection banner|main|small=yes}}
 
This is the template for Object infoboxes
 
This is the template for Object infoboxes
 
{{#cargo_declare:_table=Objects
 
{{#cargo_declare:_table=Objects
  | Page_name=Page
+
  | Image=File
 +
| Entity=Page
 
  | Age=String
 
  | Age=String
 
  | Element=String
 
  | Element=String
  | Related_to=List (,) of String
+
  | Related_to=List (,) of Wikitext
 
  | Name=String
 
  | Name=String
 
  | Nicknames_previous_names=String
 
  | Nicknames_previous_names=String
  | Occupation_by_design=String
+
  | Occupation_by_design=Wikitext
  | Script=String
+
  | Script=Wikitext
  | Script_position=String
+
  | Script_position=Wikitext
  | Lucky_cursed=String
+
  | Lucky_cursed=String (allowed values=Lucky,Cursed,?)
 
  | Motto=String
 
  | Motto=String
 
  | Times_reincarnated=Integer
 
  | Times_reincarnated=Integer
Line 18: Line 20:
 
<includeonly>
 
<includeonly>
 
{{#cargo_store: _table=Objects
 
{{#cargo_store: _table=Objects
  | Page_name={{PAGENAME}}
+
  | Image={{{image}}}
  | Age="Age"
+
| Entity={{PAGENAME}}
  | Element="Element"
+
  | Age={{{Age}}}
  | Related_to="Related to"
+
  | Element={{{Element}}}
  | Name={{Name}}
+
  | Related_to={{{Related to}}}
  | Nicknames_previous_names={{Nicknames/previous names}}
+
  | Name={{{Name}}}
  | Occupation_by_design={{Occupation by design}}
+
  | Nicknames_previous_names={{{Nicknames/previous names}}}
  | Script={{Script}}
+
  | Occupation_by_design={{{Occupation by design}}}
  | Script_position={{Script position}}
+
  | Script={{{Script}}}
  | Lucky_cursed={{Lucky/cursed}}
+
  | Script_position={{{Script position}}}
  | Motto={{Motto}}
+
  | Lucky_cursed={{{Lucky/cursed}}}
  | Times_reincarnated={{Times reincarnated}}
+
  | Motto={{{Motto}}}
 +
  | Times_reincarnated={{{Times reincarnated}}}
 
}}
 
}}
<infobox>
+
<infobox type="object">
 
   <title source="name">
 
   <title source="name">
 
     <default>{{PAGENAME}}</default>
 
     <default>{{PAGENAME}}</default>
 
   </title>
 
   </title>
 
   <image source="image" />
 
   <image source="image" />
   <group collapse="closed">
+
   <group collapse="open">
 
  <header>Nature</header>
 
  <header>Nature</header>
 
  <data source="Age"><label>Age:</label></data>
 
  <data source="Age"><label>Age:</label></data>
Line 42: Line 45:
 
  <data source="Related to"><label>Related To:</label></data>
 
  <data source="Related to"><label>Related To:</label></data>
 
   </group>
 
   </group>
   <group collapse="closed">
+
   <group collapse="open">
 
  <header>Nurture</header>
 
  <header>Nurture</header>
 
  <data source="Name"><label>Name:</label></data>
 
  <data source="Name"><label>Name:</label></data>
Line 48: Line 51:
 
  <data source="Occupation by design"><label>Occupation by Design:</label></data>
 
  <data source="Occupation by design"><label>Occupation by Design:</label></data>
 
  <data source="Script"><label>Script:</label></data>
 
  <data source="Script"><label>Script:</label></data>
  <data source="Lucky/Cursed"><label>Lucky/Cursed:</label></data>
+
  <data source="Lucky/cursed"><label>Lucky/Cursed:</label></data>
 
  <data source="Script position"><label>Script Position:</label></data>
 
  <data source="Script position"><label>Script Position:</label></data>
 
   </group>
 
   </group>
   <group collapse="closed">
+
   <group collapse="open">
 
  <header>Torture</header>
 
  <header>Torture</header>
 
  <data source="Motto"><label>Motto:</label></data>
 
  <data source="Motto"><label>Motto:</label></data>
Line 57: Line 60:
 
   </group>
 
   </group>
 
</infobox>
 
</infobox>
 +
[[Category:Objects]]
 
</includeonly>
 
</includeonly>

Latest revision as of 17:42, 27 August 2021

This is the template for Object infoboxes This template defines the table "Objects". View table.