Difference between revisions of "Template:Infobox document"

From blackwiki
Jump to navigation Jump to search
imported>RGloucester
(better)
(Don't need the distracting brackets: the number of authors (plural) can be one (singular). Next field already uses plural anyway (Signatories).)
Line 1: Line 1:
 
{{Infobox
 
{{Infobox
| abovestyle     = text-align:center;
+
| abovestyle = text-align:center;
| above         = {{{document_name|{{{name|}}}}}}
+
|   above = {{{document_name|{{{name|}}}}}}
|  image       = {{#invoke:InfoboxImage|InfoboxImage|image={{{Image|{{{image|{{{image_name|}}}}}}}}}|size={{{Image size|{{{image_size|}}}}}}|sizedefault=frameless|upright=1|alt={{{image_alt|}}}}}
+
|  image = {{#invoke:InfoboxImage |InfoboxImage
| caption       = {{{caption|{{{image_caption|}}}}}}
+
              | image = {{{Image|{{{image|{{{image_name|}}}}}}}}}
 +
              | size = {{{Image size|{{{image_size|}}}}}}
 +
              | sizedefault=frameless | upright=1 |alt={{{image_alt|}}}
 +
            }}
 +
| caption = {{{caption|{{{image_caption|}}}}}}
  
 
|  label1  = Created
 
|  label1  = Created
Line 11: Line 15:
 
|  label3  = [[Effective date|Date effective]]
 
|  label3  = [[Effective date|Date effective]]
 
|  data3  = {{{date_effective|}}}
 
|  data3  = {{{date_effective|}}}
|  label4  = [[Repeal|Repealed]]
+
|  label4  = [[Repeal]]ed
 
|  data4  = {{{date_repeal|}}}
 
|  data4  = {{{date_repeal|}}}
 
|  label5  = Location
 
|  label5  = Location
 
|  data5  = {{{location_of_document|}}}
 
|  data5  = {{{location_of_document|}}}
|  label6  = Author(s)
+
|  label6  = Authors
|  data6  = {{{writer|}}}
+
|  data6  = {{{writers|{{{writer|}}}}}}
 
|  label7  = Signatories
 
|  label7  = Signatories
 
|  data7  = {{{signers|}}}
 
|  data7  = {{{signers|}}}
 
|  label8  = Purpose
 
|  label8  = Purpose
 
|  data8  = {{{purpose|}}}
 
|  data8  = {{{purpose|}}}
 +
 
}}<noinclude>
 
}}<noinclude>
{{documentation}}
+
{{Documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 13:38, 24 February 2015

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

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.