Difference between revisions of "Template:Infobox document"

From blackwiki
Jump to navigation Jump to search
imported>Funandtrvl
(fx)
imported>Shkuru Afshar
 
(32 intermediate revisions by 18 users not shown)
Line 1: Line 1:
 
{{Infobox
 
{{Infobox
| italic title  = {{{italic title|{{{italic_title|}}}}}}
 
 
| abovestyle    = text-align:center;
 
| abovestyle    = text-align:center;
| above          = {{#ifeq:{{{italic_title}}}|no|{{{document_name}}}|''{{{document_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 = Location
+
|  label3       = Presented
|  data3 = {{{location_of_document|}}}
+
|  data3       = {{{date_presented|}}}
|  label4 = Author(s)
+
|  label4       = [[Ratification|Ratified]]
|  data4 = {{{writer|}}}
+
|  data4       = {{{date_ratified|}}}
|  label5 = Signatories
+
|  label5       = [[Effective date|Date&nbsp;effective]]
|  data5 = {{{signers|}}}
+
|  data5       = {{{date_effective|}}}
|  label6 = Purpose
+
|  label6       = [[Repeal|Repealed]]
|  data6 = {{{purpose|}}}
+
|  data6       = {{{date_repeal|}}}
|  label7 = Read online
+
|  label7       = Location
|  data7  = {{#ifeq:{{{wikisource}}}|no|''[[s:{{{wikisource|}}}|{{{document_name|}}}]]'' at [[Wikisource]][[Category:Articles that link to Wikisource]]<!--create hidden category to be monitored by Wikiproject:Wikisource--> |''[[s:{{{document_name|}}}|{{{document_name|}}}]]'' at [[Wikisource]][[Category:Articles that link to Wikisource]]<!--create hidden category to be monitored by Wikiproject:Wikisource-->}}
+
|  data7       = {{{location_of_document|}}}
}}<noinclude>
+
| label8        = Commissioned&nbsp;by
 +
|  data8        = {{{commissioned|}}}
 +
|  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.