Page protected

Difference between revisions of "Template:ObjectInfobox"

From Life After BOB Wiki
Jump to navigation Jump to search
(Created page with "<noinclude> This is the template for Object infoboxes {{#cargo_declare:_table=Objects | Age=String | Element=String | Related_to=List (,) of String | Name=String | Nickna...")
 
 
(22 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
 +
| 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 16: Line 19:
 
</noinclude>
 
</noinclude>
 
<includeonly>
 
<includeonly>
<infobox layout="stacked">
+
{{#cargo_store: _table=Objects
 +
| Image={{{image}}}
 +
| Entity={{PAGENAME}}
 +
| Age={{{Age}}}
 +
| Element={{{Element}}}
 +
| Related_to={{{Related to}}}
 +
| Name={{{Name}}}
 +
| Nicknames_previous_names={{{Nicknames/previous names}}}
 +
| Occupation_by_design={{{Occupation by design}}}
 +
| Script={{{Script}}}
 +
| Script_position={{{Script position}}}
 +
| Lucky_cursed={{{Lucky/cursed}}}
 +
| Motto={{{Motto}}}
 +
| Times_reincarnated={{{Times reincarnated}}}
 +
}}
 +
<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 27: 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 33: 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 42: 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.