Template:object: Difference between revisions
From Thesaurus Inscriptionum Raeticarum
Jump to navigationJump to search
Martin Braun (talk | contribs) No edit summary |
Martin Braun (talk | contribs) No edit summary |
||
Line 45: | Line 45: | ||
{{!}} {{#arraymap:{{{culture_archaeological|}}}|,|x|[[culture_archaeological::x]]}} | {{!}} {{#arraymap:{{{culture_archaeological|}}}|,|x|[[culture_archaeological::x]]}} | ||
{{!}}- | }} | {{!}}- | }} | ||
! [[Property:date|Date]]: | ! [[Property:date|Date]]: {{#vardefine: sortdate|{{{sortdate|}}}}}{{#vardefine: date|{{{date|{{{sortdate|}}}}}}}}{{#ifeq: {{#var: sortdate}}|0|{{#vardefine: sortdate|}}{{#ifeq: {{#var: date}}|0|{{#vardefine: date|}} | ||
| | | {{#ifeq: {{#var: date}}|||[[date::{{#var: date}}]]}}{{#ifeq: {{#var: sortdate}}|||[[sortdate::{{#var: sortdate}}| ]]}} {{#ifgroup:editor| {{#ifeq: {{#var: date}}||| {{#ifeq: {{{sortdate|}}}|| <br><span style="color:red;">A display date has been entered without declaring a sorting date!</span> }} }} }} | ||
|- | |- | ||
! [[Property:date_derivation|Date derived from]]: | ! [[Property:date_derivation|Date derived from]]: | ||
Line 61: | Line 61: | ||
{{!}}- | }} | {{!}}- | }} | ||
{{#if: {{{find_context|}}} | ! [[Property:find_context|Archaeological context]]: | {{#if: {{{find_context|}}} | ! [[Property:find_context|Archaeological context]]: | ||
{{!}} {{#arraymap:{{{find_context|}}}|,|y|[[find_context::y]]}}{{#if: {{{find_context|}}} | {{#vardefine: site | {{{site|}}} }}{{#vardefine: field_name | {{{field_name|}}} }}{{#vardefine: find_context | {{{find_context|}}} }}{{#vardefine: count | {{#ask: [[Category:Object]][[site::{{#var: site }}]][[find_context::{{#var: find_context }}]]|format=count }} }}{{#ifexpr: {{#var: count }} > 1 | <br>(Objects: {{#ask: [[Category:Object]][[site::{{#var: site }}]][[find_context::{{#var: find_context }}]]|format=list }}) }} }} | {{!}} {{#arraymap:{{{find_context|}}}|,|y|[[find_context::y]]}}{{#if: {{{find_context|}}} | {{#vardefine: site | {{{site|}}} }}{{#vardefine: field_name | {{{field_name|}}} }}{{#vardefine: find_context | {{{find_context|}}} }}{{#vardefine: count | {{#ask: [[Category:Object]][[site::{{#var: site }}]][[find_context::{{#var: find_context }}]]|format=count }} }}{{#ifexpr: {{#var: count }} > 1 | <br>(Objects: {{#ask: [[Category:Object]][[site::{{#var: site }}]][[find_context::{{#var: find_context }}]]|sort=sortform|format=list|limit=1000}}) }} }} | ||
{{!}}- | }} | {{!}}- | }} | ||
! [[Property:coordinate|Coordinates]] (approx.): | ! [[Property:coordinate|Coordinates]] (approx.): | ||
| {{#if: {{{coordinate_n|}}}|{{coord|{{{coordinate_n|}}}|{{{coordinate_e|}}}|{{ | | {{#if: {{{coordinate_n|}}}|{{coord|{{{coordinate_n|}}}|{{{coordinate_e|}}}|{{PAGENAME}}}}}}{{#ifeq: {{{coordinate_n|}}}||{{#vardefine: n | {{#show:{{{site|}}}|?coordinate_n}} }}{{#ifeq: {{#var: n }}||none|{{#vardefine: e | {{#show:{{{site|}}}|?coordinate_e}} }}{{coord|{{#var: n }}|{{#var: e }}|{{PAGENAME}}}} [from site]}} }} | ||
|- | |- | ||
! [[Property:date_find|Find date]]: | ! [[Property:date_find|Find date]]: {{#vardefine: sortdate_find|{{{sortdate_find|}}}}}{{#vardefine: date_find|{{{date_find|{{{sortdate_find|}}}}}}}}{{#ifeq: {{#var: sortdate_find}}|0|{{#vardefine: sortdate_find|}}{{#ifeq: {{#var: date_find}}|0|{{#vardefine: date_find|}} | ||
| | | {{#ifeq: {{#var: date_find}}|||[[date_find::{{#var: date_find}}]]}}{{#ifeq: {{#var: sortdate_find}}|||[[sortdate_find::{{#var: sortdate_find}}| ]]}} | ||
|- | |- | ||
{{#if: {{{find_circumstances|}}} | ! [[Property:find_circumstances|Find circumstances]]: | {{#if: {{{find_circumstances|}}} | ! [[Property:find_circumstances|Find circumstances]]: | ||
Line 81: | Line 81: | ||
---- | ---- | ||
|- | |- | ||
{{#ifeq: {{#ask:[[Category:Inscription]][[object::{{ | {{#ifeq: {{#ask:[[Category:Inscription]][[object::{{PAGENAME}}]]|format=count}}|1| ! [[:Category:Inscription|Inscription]]: | ||
{{!}} {{#ask:[[Category:Inscription]][[object::{{ | {{!}} {{#ask:[[Category:Inscription]][[object::{{PAGENAME}}]]|?text_plain=|format=list}}|! [[:Category:Inscription|Inscriptions]]: | ||
{{!}} {{#ask:[[Category:Inscription]][[object::{{ | {{!}} {{#ask:[[Category:Inscription]][[object::{{PAGENAME}}]]|?text_plain=|format=ul}} }} | ||
{{#if: {{{source|}}} | | {{#if: {{{source|}}} | | ||
{{!}}- | {{!}}- |
Revision as of 12:13, 20 February 2014
This template serves to display pages about archaeological objects that carry inscriptions. These are best created or edited with the Form:object.
See the Category:Object for a list of all 294 object pages.