Difference between revisions of "Template:Infobox document/doc"

From blackwiki
Jump to navigation Jump to search
imported>Funandtrvl
(fx)
imported>Shkuru Afshar
 
(22 intermediate revisions by 12 users not shown)
Line 1: Line 1:
 
{{Documentation subpage}}
 
{{Documentation subpage}}
<!-- PLEASE ADD CATEGORIES AND INTERWIKIS AT THE BOTTOM OF THIS PAGE. -->
+
<!--Categories where indicated at the bottom of this page, please; interwikis at Wikidata (see [[Wikipedia:Wikidata]])-->
 +
{{Lua|Module:Infobox|Module:InfoboxImage|Module:Check for unknown parameters}}
  
 
== Usage ==
 
== Usage ==
{{Infobox document
+
{{Parameter names example
|document_name=document_name
+
|_template=Infobox document
|image=example.png
+
| document_name
|image_width=200px
+
| image
|image_caption=image_caption
+
| image_alt
|date_created=date_created
+
| caption
|date_ratified=date_ratified
+
| image2
|location_of_document=location_of_document
+
| image2_alt
|writer=writer
+
| caption2
|signers=signers
+
| orig_lang_code = en
|purpose=purpose
+
| title_orig
|wikisource=wikisource
+
| date_created
 +
| date_presented
 +
| date_ratified
 +
| date_effective
 +
| date_repeal
 +
| location_of_document
 +
| commissioned
 +
| writer
 +
| signers
 +
| media_type
 +
| subject
 +
| purpose
 
}}
 
}}
  
<div style="width:250px;background:#dddddd;border: 1px solid black;padding:0.5em  1em 0.5em 1em"><pre>
+
<pre style="overflow:auto;">
 
{{Infobox document
 
{{Infobox document
|document_name =  
+
| document_name       =  
|italic_title  =  
+
| image                =
|image        =  
+
| image_size          =  
|image_width  =  
+
| image_alt            =
|image_caption =  
+
| caption              =
|date_created =  
+
| image2              =
|date_ratified =  
+
| image2_size          =
|location_of_document =  
+
| image2_alt          =
|writer =  
+
| caption2            =  
|signers =  
+
| orig_lang_code      =  
|purpose =  
+
| title_orig          =  
|wikisource =  
+
| date_created         =
}}</pre></div>
+
| date_presented      =  
 +
| date_ratified       =
 +
| date_effective      =
 +
| date_repeal          =  
 +
| location_of_document =
 +
| commissioned        =  
 +
| writer               =  
 +
| signers             =
 +
| media_type          =  
 +
| subject              =  
 +
| purpose              =  
 +
}}</pre>
  
Required:
+
==Parameters==
 +
;Required
 
* document_name &mdash; Name of the document
 
* document_name &mdash; Name of the document
  
==Parameters==
+
All other parameters are optional.
; italic_title: document_name will be in italics unless this parameter is set to "no"
 
; wikisource: Page name at [[:Wikisource:]]. Tracked in [[:Category:Articles that link to Wikisource]]
 
  
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
+
<includeonly>{{Sandbox other||
 
<!--Categories below here, please; interwikis to Wikidata.-->
 
<!--Categories below here, please; interwikis to Wikidata.-->
 
[[Category:History and events infobox templates|Document]]
 
[[Category:History and events infobox templates|Document]]
 
[[Category:Society and social science infobox templates|Document]]
 
[[Category:Society and social science infobox templates|Document]]
 
}}</includeonly>
 
}}</includeonly>

Latest revision as of 16:14, 2 February 2021

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.