Difference between revisions of "Template:Image"

From Wikispooks
Jump to navigation Jump to search
(Add all pages using it to Category:Images automatically - No hardcoded category needed)
m (Text replacement - "{{template " to "{{WStemplate ")
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>{{template
+
<noinclude>{{WStemplate
 
|summary=This template is for individual images worthy of appearing in the 'related documents' section created by [[Template:SMWDocs]].
 
|summary=This template is for individual images worthy of appearing in the 'related documents' section created by [[Template:SMWDocs]].
 
|description=The optional sections will allow it to be picked up by [[Template:SMWDocs]].
 
|description=The optional sections will allow it to be picked up by [[Template:SMWDocs]].
Line 11: Line 11:
 
''Optional Parameters:''<br/>
 
''Optional Parameters:''<br/>
 
|{{t|{{GREEN|authors}}}}= Comma separated list of authors. For pseudonyms, use single quotes. ''([[Property:Has author]])''<br/>
 
|{{t|{{GREEN|authors}}}}= Comma separated list of authors. For pseudonyms, use single quotes. ''([[Property:Has author]])''<br/>
 +
|{{t|{{GREEN|constitutes}}}}= suitable descriptions of this image (e.g. "Propaganda") ''([[Property:Constitutes]])''<br/>
 +
|{{BLUE|source_name}}=General name of the source, e.g. "[[Unwelcome Guests]]", "[[Cryptome]]", ... ''([[Property:Sourced from]])''
 +
|{{PURPLE|source_URL}}=URL of the source, if it is available online
 +
|source_detail=Specific details, e.g. "#675", "vol. 3, chapter 20", "pp.212-213"... (Do ''not'' use this for ISBN numbers, use '|ISBN' for that)
 
|{{t|{{GREEN|subjects}}}}= what this image is about ''([[Property:Is about]])''<br/>
 
|{{t|{{GREEN|subjects}}}}= what this image is about ''([[Property:Is about]])''<br/>
|{{t|{{GREEN|constitutes}}}}= suitable descriptions of this image (e.g. "Propaganda") ''([[Property:Constitutes]])''<br/>
 
 
<nowiki>}}</nowiki>
 
<nowiki>}}</nowiki>
 
</noinclude><includeonly>
 
</noinclude><includeonly>
Line 26: Line 29:
 
|-
 
|-
 
|style="Vertical-align:top;" | '''Description''' || {{{text| }}}<span style="display:none;">[[Description2::{{EncodeLinks|{{{text|}}}}}]]</span>
 
|style="Vertical-align:top;" | '''Description''' || {{{text| }}}<span style="display:none;">[[Description2::{{EncodeLinks|{{{text|}}}}}]]</span>
 +
|-
 +
| '''Subjects''' || {{ArrayMapPropertyListLink|{{{subjects|}}}|Is about}}
 +
|-
 +
| '''Source:''' || {{DisplaySource|{{{source_URL|}}}|{{{source_name|}}}|{{{source_detail|}}}}}
 +
|-
 +
| '''Constitutes || {{{constitutes|}}}
 
|-
 
|-
 
| colspan="2" Style="text-align:center;" |<small>[[Main Page/Images|Image archive]]&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;[[Form:MainPageImage|Add another image]]</small></div>
 
| colspan="2" Style="text-align:center;" |<small>[[Main Page/Images|Image archive]]&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;[[Form:MainPageImage|Add another image]]</small></div>
 
|}[[Category:Main Page images]][[Category:Images]]</includeonly>
 
|}[[Category:Main Page images]][[Category:Images]]</includeonly>

Latest revision as of 06:38, 26 April 2015

This template is for individual images worthy of appearing in the 'related documents' section created by Template:SMWDocs.
The optional sections will allow it to be picked up by Template:SMWDocs.

Blue parameters are for a single Wikispooks page name (If no suitable page exists, then pick a title for a future page)
Brown parameters are for numbers
Green parameters are for comma-separated lists of page names (Or planned page names).
Navy parameters are for dates
Orange parameters are for booleans. (Usually, either "Yes" or just leave blank).
Purple parameters are URLs.
Violet parameters are slash-separated lists.
Pink parameters are for coordinates.
Crossed out parameters were formerly available, but have been upgraded. Some may still work, but do not use these.

Usage:
{{Image
|title= section title (Property:Has caption)
|date= section date (Property:Has publicationDate)
|text= description of image. May include links. (Property:Description2)

Optional Parameters:
|authors= Comma separated list of authors. For pseudonyms, use single quotes. (Property:Has author)
|constitutes= suitable descriptions of this image (e.g. "Propaganda") (Property:Constitutes)
|source_name=General name of the source, e.g. "Unwelcome Guests", "Cryptome", ... (Property:Sourced from) |source_URL=URL of the source, if it is available online |source_detail=Specific details, e.g. "#675", "vol. 3, chapter 20", "pp.212-213"... (Do not use this for ISBN numbers, use '|ISBN' for that) |subjects= what this image is about (Property:Is about)
}}