Difference between revisions of "Template:Infobox document"

From blackwiki
Jump to navigation Jump to search
imported>Bryan Derksen
(infoboxing)
Line 1: Line 1:
{| class="infobox" style="width: 200px; float:right; clear:right; font-size:95%" cellspacing="4"
+
{{Infobox
|- style="vertical-align: top;"
+
|name=Infobox document
| colspan="2" style="text-align: center;" | <big>'''''{{{document_name}}}'''''</big>
+
|abovestyle=background:inherit;
|- style="vertical-align: top;"
+
|labelstyle=background:inherit;
| 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>}}
+
|above={{{document_name}}}
|- style="vertical-align: top;"
+
|image={{#if:{{{image|}}}|[[image:{{{image}}}|{{{image_width|190px}}}|{{{image_caption|}}}]]}}
{{#if:{{{date_created|}}}|
+
|caption={{{image_caption|}}}
{{!}} '''Created'''
+
|label1=Created
{{!}} {{{date_created}}} }}
+
|data1={{{date_created|}}}
|- style="vertical-align: top;"
+
|label2=[[Ratification|Ratified]]
{{#if:{{{date_ratified|}}}|
+
|data2={{{date_ratified|}}}
{{!}} '''[[Ratification|Ratified]]'''
+
|label3=Location
{{!}} {{{date_ratified}}} }}
+
|data3={{{location_of_document|}}}
|- style="vertical-align: top;"
+
|label4=Authors
| '''Location''' || {{{location_of_document}}}
+
|data4= {{{writer|}}}
|- style="vertical-align: top;"
+
|label5=Signers
{{#if:{{{writer|}}}|
+
|data5= {{{signers|}}}
{{!}} '''Authors'''
+
|label6=Purpose
{{!}} {{{writer}}} }}
+
|data6={{{purpose|}}}
|- style="vertical-align: top;"
+
}}<noinclude>
{{#if:{{{signers|}}}|
+
{{documentation}}
{{!}} '''Signers'''
 
{{!}} {{{signers}}} }}
 
|- style="vertical-align: top;"
 
{{#if:{{{purpose|}}}|
 
{{!}} '''Purpose'''
 
{{!}} {{{purpose}}} }}
 
|}<noinclude>
 
 
 
 
 
== Usage ==
 
<div style="width:250px;background:#dddddd;border: 1px solid black;padding:0.5em  1em 0.5em 1em"><pre>
 
{{Infobox document
 
|document_name=
 
|image=
 
|image_width=
 
|image_caption=
 
|date_created=
 
|date_ratified=
 
|location_of_document=
 
|writer=
 
|signers=
 
|purpose=
 
}}</pre></div>
 
 
 
Required:
 
* document_name &mdash; Name of the document
 
* location &mdash; city, state, country of where the document is located
 
[[Category:Infobox templates|Document]]
 
[[ms:Templat:Infobox document]]
 
 
</noinclude>
 
</noinclude>

Revision as of 10:36, 7 March 2008

{{{document_name}}}

[[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.