Template:ProtoPix: Difference between revisions
Jump to navigation
Jump to search
(Template:Proto_Pic: Pic Decade, Pic Year) |
(ProtoPix template: add description field) |
||
(11 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
This is the " | This is the "ProtoPix" template. | ||
It should be called in the following format: | It should be called in the following format: | ||
<pre> | <pre> | ||
{{ | {{ProtoPix | ||
|Title= | |Title= | ||
|Source Image= | |Source Image= | ||
|Pic Category= | |Pic Category= | ||
|Description= | |||
|Descriptors= | |Descriptors= | ||
|Date= | |Date= | ||
Line 20: | Line 21: | ||
</pre> | </pre> | ||
Edit the page to see the template text. | Edit the page to see the template text. | ||
</noinclude><includeonly>{{#default_form: | </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" | ||
|- {{#ifeq: {{#replace:{{PAGENAME}}|ProtoPix:|}}|{{{Title|}}}|class=hidden}} | |||
! Title | |||
| {{{Title|}}} (page to be moved) | |||
|- | |||
! Source Image | ! Source Image | ||
| [[Image:{{{Source Image|}}}|left|thumb]] | | [[Image:{{{Source Image|}}}|left|thumb]] | ||
|- | |- | ||
! Category | ! Category | ||
| {{#arraymap:{{{Pic Category|}}}|,|x|[[Pic Category::x]]}} | | <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}} | |- {{#if: {{{Descriptors|}}}||class=hidden}} | ||
! Descriptors | ! Descriptors | ||
| {{#arraymap:{{{Descriptors|}}}|,|x|[[Descriptors::{{ucfirst:x}}]]}} | | <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|}}}}} | ||
Line 43: | Line 51: | ||
| [[Pic Location::{{{Pic Location|}}}]] | | [[Pic Location::{{{Pic Location|}}}]] | ||
|} | |} | ||
[[Category: | [[Category:ProtoPix]] | ||
</includeonly> | </includeonly> |
Latest revision as of 08: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.