Difference between revisions of "Template:Infobox document"

From blackwiki
Jump to navigation Jump to search
imported>Izkala
(Reverted 1 edit by 71.62.63.31 (talk). (TW))
imported>Shkuru Afshar
 
(18 intermediate revisions by 12 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={{{Image|{{{image|{{{image_name|}}}}}}}}}|size={{{Image size|{{{image_size|}}}}}}|sizedefault=frameless|upright=1|alt={{{image_alt|}}}}}
+
| image         = {{#invoke:InfoboxImage|InfoboxImage|image={{{Image|{{{image|{{{image_name|}}}}}}}}}|size={{{Image size|{{{image_size|}}}}}}|sizedefault=frameless|upright=1|alt={{{image_alt|}}}}}
 
| caption        = {{{caption|{{{image_caption|}}}}}}
 
| caption        = {{{caption|{{{image_caption|}}}}}}
 +
| image2        = {{#invoke:InfoboxImage|InfoboxImage|image={{{Image2|{{{image2|{{{image2_name|}}}}}}}}}|size={{{Image2 size|{{{image2_size|}}}}}}|sizedefault=frameless|upright=1|alt={{{image2_alt|}}}}}
 +
| caption2      = {{{caption2|{{{image2_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|Repealed]]
+
| 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 = Author(s)
+
label6        = [[Repeal|Repealed]]
data6  = {{{writer|}}}
+
data6        = {{{date_repeal|}}}
| label7  = Signatories
+
label7        = Location
|   data7 = {{{signers|}}}
+
data7        = {{{location_of_document|}}}
label8 = Purpose
+
label8        = Commissioned&nbsp;by
|   data8 = {{{purpose|}}}
+
|  data8        = {{{commissioned|}}}
}}<noinclude>
+
| label9        = Author(s)
 +
data9        = {{{writer|}}}
 +
| 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}}
 
{{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.