Difference between revisions of "Template:Infobox document"

From blackwiki
Jump to navigation Jump to search
(Don't need the distracting brackets: the number of authors (plural) can be one (singular). Next field already uses plural anyway (Signatories).)
imported>Shkuru Afshar
 
(25 intermediate revisions by 16 users not shown)
Line 1: Line 1:
 
{{Infobox
 
{{Infobox
| abovestyle = text-align:center;
+
| abovestyle     = text-align:center;
|   above = {{{document_name|{{{name|}}}}}}
+
| above         = {{{document_name|{{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}}}}
|   image = {{#invoke:InfoboxImage |InfoboxImage
+
| image         = {{#invoke:InfoboxImage|InfoboxImage|image={{{Image|{{{image|{{{image_name|}}}}}}}}}|size={{{Image size|{{{image_size|}}}}}}|sizedefault=frameless|upright=1|alt={{{image_alt|}}}}}
              | image = {{{Image|{{{image|{{{image_name|}}}}}}}}}
+
| caption       = {{{caption|{{{image_caption|}}}}}}
              | size = {{{Image size|{{{image_size|}}}}}}
+
| image2        = {{#invoke:InfoboxImage|InfoboxImage|image={{{Image2|{{{image2|{{{image2_name|}}}}}}}}}|size={{{Image2 size|{{{image2_size|}}}}}}|sizedefault=frameless|upright=1|alt={{{image2_alt|}}}}}
              | sizedefault=frameless | upright=1 |alt={{{image_alt|}}}
+
| caption2      = {{{caption2|{{{image2_caption|}}}}}}
            }}
 
| caption = {{{caption|{{{image_caption|}}}}}}
 
  
|  label1  = Created
+
|  label1       = Original title
data1  = {{{date_created|}}}
+
|  data1        = {{#if: {{{title_orig|}}} | {{#if: {{{orig_lang_code|}}} | {{lang|{{{orig_lang_code|}}}|{{{title_orig|}}}}} }} }}
label2 = [[Ratification|Ratified]]
+
| label2        = Created
data2  = {{{date_ratified|}}}
+
data2        = {{{date_created|}}}
label3  = [[Effective date|Date effective]]
+
label3        = Presented
data3  = {{{date_effective|}}}
+
|  data3        = {{{date_presented|}}}
label4  = [[Repeal]]ed
+
| label4        = [[Ratification|Ratified]]
data4  = {{{date_repeal|}}}
+
data4        = {{{date_ratified|}}}
label5  = Location
+
label5        = [[Effective date|Date&nbsp;effective]]
data5  = {{{location_of_document|}}}
+
data5        = {{{date_effective|}}}
label6  = Authors
+
label6        = [[Repeal|Repealed]]
data6  = {{{writers|{{{writer|}}}}}}
+
data6        = {{{date_repeal|}}}
label7  = Signatories
+
label7        = Location
|   data7 = {{{signers|}}}
+
data7        = {{{location_of_document|}}}
| label8  = Purpose
+
label8        = Commissioned&nbsp;by
|   data8 = {{{purpose|}}}
+
data8        = {{{commissioned|}}}
 
+
|  label9        = Author(s)
}}<noinclude>
+
|  data9        = {{{writer|}}}
{{Documentation}}
+
| label10        = Signatories
 +
|  data10        = {{{signers|}}}
 +
| label11        = Media type
 +
data11        = {{{media_type|}}}
 +
| label12        = Subject
 +
data12        = {{{subject|}}}
 +
| label13        = Purpose
 +
data13        = {{{purpose|}}}
 +
}}{{#invoke:Check for unknown parameters|check|unknown={{main other|}}|preview=Page using [[Template:Infobox document]] with unknown parameter "_VALUE_"|ignoreblank=y| document_name | image | image_size | image_alt | caption | image_caption | image2 | image2_size | image2_alt | caption2 | image2_caption orig_lang_code | title_orig | date_created | date_presented | date_ratified | date_effective | date_repeal | location_of_document | commissioned | writer | signers | media_type | subject | purpose }}<noinclude>
 +
{{documentation}}
 
</noinclude>
 
</noinclude>

Latest revision as of 16:14, 2 February 2021

[[Category:Infobox templates|Template:Remove first word]]

Template documentation[view] [edit] [history] [purge]

Usage

Template:Parameter names example

{{Infobox document
| document_name        = 
| image                = 
| image_size           = 
| image_alt            = 
| caption              = 
| image2               = 
| image2_size          = 
| image2_alt           = 
| caption2             = 
| orig_lang_code       = 
| title_orig           = 
| date_created         = 
| date_presented       = 
| date_ratified        = 
| date_effective       = 
| date_repeal          = 
| location_of_document = 
| commissioned         = 
| writer               = 
| signers              = 
| media_type           = 
| subject              = 
| purpose              = 
}}

Parameters

Required
  • document_name — Name of the document

All other parameters are optional.