Template:ProtoPix: Difference between revisions

From Protoball
Jump to navigation Jump to search
No edit summary
(ProtoPix template: add description field)
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
This is the "Newspaper Photo" template.
This is the "ProtoPix" template.
It should be called in the following format:
It should be called in the following format:
<pre>
<pre>
{{Newspaper Photo
{{ProtoPix
|Title=
|Title=
|Newspaper=
|Source Image=
|Pic Category=
|Description=
|Descriptors=
|Date=
|Date=
|Type of Date=Day, Month, Year, Circa, Decade
|Type of Date=Day, Month, Year, Circa, Decade
|Page Number=
|Published Date=
|Descriptors=
|Type of Published Date=Day, Month, Year, Circa, Decade
|Source Image=
|Source=
|Pic Location=
|Coordinates=
|Pic Decade=
|Pic Year=
}}
}}
</pre>
</pre>
Edit the page to see the template text.
Edit the page to see the template text.
</noinclude><includeonly>{{#default_form:Newspaper Photo}}{{Newspaper Photos Box}}{{#set:Title={{{Title|}}}}}{{#set:Source Image={{{Source Image|}}}}}
</noinclude><includeonly>{{#default_form:ProtoPix}}{{ProtoPix Box}}{{#set:Title={{{Title|}}}}}{{#set:Source Image={{{Source Image|}}}}}{{#set:Coordinates={{{Coordinates|}}}}}{{#set:Pic Decade={{#sub:{{#time:Y|{{{Date|}}}}}|0|3}}0s}}{{#set:Pic Year={{#time:Y|{{{Date|}}}}}}}
{| class="stats"
{| class="stats"
! Newspaper
|- {{#ifeq: {{#replace:{{PAGENAME}}|ProtoPix:|}}|{{{Title|}}}|class=hidden}}
| [[Newspaper::{{{Newspaper|}}}]]
! Title
| {{{Title|}}} (page to be moved)
|-
! Source Image
| [[Image:{{{Source Image|}}}|left|thumb]]
|-
! Category
| <span class="hidden">{{#arraymap:{{{Pic Category|}}}|,|x|[[Pic Category::x]]}}</span>{{#arraymap:{{{Pic Category|}}}|,|~|[[ProtoPix:~|~]]}}
|- {{#if: {{{Description|}}}||class=hidden}}
! Description
| {{{Description|}}}
|- {{#if: {{{Descriptors|}}}||class=hidden}}
! Descriptors
| <span class="hidden">{{#arraymap:{{{Descriptors|}}}|,|x|[[Descriptors::{{ucfirst:x}}]]}}</span>{{#arraymap:{{{Descriptors|}}}|,|~|[[ProtoPix:~|~]]}}
|-
|-
! Date {{#set:Date={{{Date|}}}|Type of Date={{{Type of Date|}}}}}
! Date {{#set:Date={{{Date|}}}|Type of Date={{{Type of Date|}}}}}
| {{Typed Date|{{{Date|}}}|{{{Type of Date|}}}}}
| {{Typed Date|{{{Date|}}}|{{{Type of Date|}}}}}
|- {{#if: {{{Page Number|}}}||class=hidden}}
|-
! Page Number
! Published Date {{#set:Published Date={{{Published Date|}}}|Type of Published Date={{{Type of Published Date|}}}}}
| [[Page Number::{{{Page Number|}}}]]
| {{Typed Date|{{{Published Date|}}}|{{{Type of Published Date|}}}}}
|- {{#if: {{{Descriptors|}}}||class=hidden}}
|-
! Descriptors
! Source
| {{#arraymap:{{{Descriptors|}}}|,|x|[[Descriptors::{{ucfirst:x}}]]}}
| [[Source::{{{Source|}}}]]
|- {{#if: {{{Source Image|}}} || class=hidden }}
|-
! Source Image
! Location
| [[Image:{{{Source Image|}}}|left|thumb]]
| [[Pic Location::{{{Pic Location|}}}]]
|}
|}
 
[[Category:ProtoPix]]
[[Category:Newspaper Photos]]
</includeonly>
</includeonly>

Latest revision as of 09:29, 15 June 2023

This is the "ProtoPix" template. It should be called in the following format:

{{ProtoPix
|Title=
|Source Image=
|Pic Category=
|Description=
|Descriptors=
|Date=
|Type of Date=Day, Month, Year, Circa, Decade
|Published Date=
|Type of Published Date=Day, Month, Year, Circa, Decade
|Source=
|Pic Location=
|Coordinates=
|Pic Decade=
|Pic Year=
}}

Edit the page to see the template text.