Difference between revisions of "Template:Infobox document"

From blackwiki
Jump to navigation Jump to search
imported>CapitalR
(Shrinking image)
imported>Shkuru Afshar
 
(64 intermediate revisions by 40 users not shown)
Line 1: Line 1:
{| class="infobox" style="width: 200px; float:right; clear:right; font-size:95%" cellspacing="4"
+
{{Infobox
|- style="vertical-align: top;"
+
| abovestyle    = text-align:center;
| colspan="2" style="text-align: center;" | <big>'''''{{{document_name}}}'''''</big>
+
| above          = {{{document_name|{{{name|<includeonly>{{PAGENAMEBASE}}</includeonly>}}}}}}
|- style="vertical-align: top;"
+
| image          = {{#invoke:InfoboxImage|InfoboxImage|image={{{Image|{{{image|{{{image_name|}}}}}}}}}|size={{{Image size|{{{image_size|}}}}}}|sizedefault=frameless|upright=1|alt={{{image_alt|}}}}}
| colspan="2" style="text-align: center;" | {{#if:{{{image|}}}|[[image:{{{image}}}|{{{image_width|190px}}}|{{{image_caption|}}}]]<br><small><div style="text-align:center">{{{image_caption|}}}</div></small>}}
+
| caption        = {{{caption|{{{image_caption|}}}}}}
|- style="vertical-align: top;"
+
| image2        = {{#invoke:InfoboxImage|InfoboxImage|image={{{Image2|{{{image2|{{{image2_name|}}}}}}}}}|size={{{Image2 size|{{{image2_size|}}}}}}|sizedefault=frameless|upright=1|alt={{{image2_alt|}}}}}
{{#if:{{{date_created|}}}|
+
| caption2      = {{{caption2|{{{image2_caption|}}}}}}
{{!}} '''Date of creation'''
 
{{!}} {{{date_created}}} }}
 
|- style="vertical-align: top;"
 
{{#if:{{{date_ratified|}}}|
 
{{!}} '''Date of [[Ratification]]'''
 
{{!}} {{{date_ratified}}} }}
 
|- style="vertical-align: top;"
 
| '''Location''' || {{{location_of_document}}}
 
|- style="vertical-align: top;"
 
{{#if:{{{writer|}}}|
 
{{!}} '''Written by'''
 
{{!}} {{{writer}}} }}
 
|- style="vertical-align: top;"
 
{{#if:{{{signers|}}}|
 
{{!}} '''Signers'''
 
{{!}} {{{signers}}} }}
 
|- style="vertical-align: top;"
 
{{#if:{{{purpose|}}}|
 
{{!}} '''Purpose of document'''
 
{{!}} {{{purpose}}} }}
 
|}<noinclude>
 
  
 
+
|  label1        = Original title
== Usage ==
+
|  data1        = {{#if: {{{title_orig|}}} | {{#if: {{{orig_lang_code|}}} | {{lang|{{{orig_lang_code|}}}|{{{title_orig|}}}}} }} }}
<div style="width:250px;background:#dddddd;border: 1px solid black;padding:0.5em  1em 0.5em 1em"><pre>
+
|  label2        = Created
{{Infobox document
+
|  data2        = {{{date_created|}}}
|document_name=
+
|  label3        = Presented
|image=
+
|  data3        = {{{date_presented|}}}
|image_width=
+
|  label4        = [[Ratification|Ratified]]
|image_caption=
+
|  data4        = {{{date_ratified|}}}
|date_created=
+
|  label5        = [[Effective date|Date&nbsp;effective]]
|date_ratified=
+
|  data5        = {{{date_effective|}}}
|location_of_document=
+
| label6        = [[Repeal|Repealed]]
|writer=
+
|   data6        = {{{date_repeal|}}}
|signers=
+
| label7        = Location
|purpose=
+
|   data7        = {{{location_of_document|}}}
}}</pre></div>
+
| label8        = Commissioned&nbsp;by
 
+
|   data8        = {{{commissioned|}}}
Required:
+
| label9        = Author(s)
* document_name &mdash; Name of the document
+
|   data9        = {{{writer|}}}
* location &mdash; city, state, country of where the document is located
+
| label10        = Signatories
[[Category:Infobox templates|Document]]
+
| 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.