Difference between revisions of "Template:Infobox document"

From blackwiki
Jump to navigation Jump to search
imported>Zimbabweed
(rm blank lines)
imported>Funandtrvl
(cnvrt to infobx)
Line 1: Line 1:
{| class="infobox" style="width: 200px; float:right; clear:right; font-size:88%" cellspacing="4"
+
{{Infobox
|- style="vertical-align: top;"
+
| italic title  = {{{italic title|{{{italic_title|}}}}}}
| colspan="2" style="text-align: center;"|{{#ifeq:{{{italic_title}}}|no|<big>'''{{{document_name}}}'''</big>|<big>'''''{{{document_name}}}'''''</big>}}
+
| abovestyle    = text-align:center;
|- style="vertical-align: top;"
+
| above          = {{#ifeq:{{{italic_title}}}|no|{{{document_name}}}|''{{{document_name}}}''}}
| 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>}}
+
|   image        = {{#invoke:InfoboxImage|InfoboxImage|image={{{Image|{{{image|{{{image_name|}}}}}}}}}|size={{{Image size|{{{image_size|}}}}}}|sizedefault=frameless|upright=1|alt={{{image_alt|}}}}}
|- style="vertical-align: top;"
+
| caption        = {{{caption|{{{image_caption|}}}}}}
{{#if:{{{date_created|}}}|
 
{{!}} '''Created'''
 
{{!}} {{{date_created}}} }}
 
|- style="vertical-align: top;"
 
{{#if:{{{date_ratified|}}}|
 
{{!}} '''[[Ratification|Ratified]]'''
 
{{!}} {{{date_ratified}}} }}
 
|- style="vertical-align: top;"
 
{{#if:{{{location_of_document|}}}|
 
{{!}} '''Location'''
 
{{!}} {{{location_of_document}}} }}
 
|- style="vertical-align: top;"
 
{{#if:{{{writer|}}}|
 
{{!}} '''Author(s)'''
 
{{!}} {{{writer}}} }}
 
|- style="vertical-align: top;"
 
{{#if:{{{signers|}}}|
 
{{!}} '''Signatories'''
 
{{!}} {{{signers}}} }}
 
|- style="vertical-align: top;"
 
{{#if:{{{purpose|}}}|
 
{{!}} '''Purpose'''
 
{{!}} {{{purpose}}} }}
 
|- style="vertical-align: top;"
 
{{#if:{{{wikisource|}}}|
 
{{!}} '''Read online'''
 
{{!}} ''[[s:{{{wikisource|}}}|{{{document_name|}}}]]'' at [[Wikisource]][[Category:Articles that link to Wikisource]]<!--create hidden category to be monitored by Wikiproject:Wikisource--> }}
 
  
|}<noinclude>
+
| label1  = Created
 +
|  data1  = {{{date_created|}}}
 +
|  label2  = [[Ratification|Ratified]]
 +
|  data2  = {{{date_ratified|}}}
 +
|  label3  = Location
 +
|  data3  = {{{location_of_document|}}}
 +
|  label4  = Author(s)
 +
|  data4  = {{{writer|}}}
 +
|  label5  = Signatories
 +
|  data5  = {{{signers|}}}
 +
|  label6  = Purpose
 +
|  data6  = {{{purpose|}}}
 +
|  label7  = Read online
 +
|  data7  = ''[[s:{{{wikisource|}}}|{{{document_name|}}}]]'' at [[Wikisource]][[Category:Articles that link to Wikisource]]<!--create hidden category to be monitored by Wikiproject:Wikisource-->
 +
}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
</noinclude>
 
</noinclude>

Revision as of 02:26, 8 July 2014

{{{document_name}}}
Read online[[s:|]] at Wikisource

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