Template:object: Difference between revisions

From Thesaurus Inscriptionum Raeticarum
Jump to navigationJump to search
No edit summary
 
No edit summary
Line 8: Line 8:


</noinclude><includeonly>{{#vardefine: disambiguation | {{#arraymap:{{{disambiguation|}}}|,|x|[[disambiguation::x]]}} }}{{#vardefine: minus |}}{{#vardefine: sortdate | {{{sortdate|}}} }}{{#vardefine: sortdate | {{#replace: {{#var: sortdate}} |<nowiki> </nowiki>|}} }}{{#vardefine: i | {{#pos:{{#var: sortdate }}|BC}} }}{{#ifeq: {{#var: i}} | | | {{#vardefine: sortdate | {{#sub:{{#var: sortdate}}|0|{{#var: i}} }} }}{{#vardefine: minus |-}} }}[[sortdate::{{#var: minus}}{{#var: sortdate}}| ]]{{#vardefine: sortform | {{#replace: {{FULLPAGENAME}}| |·}} }}{{#vardefine: sortform | {{#replace: {{#var: sortform}}|-|·}} }}{{#vardefine: number | {{#explode:{{#var: sortform}}|·|1}} }}{{#vardefine: sortform |{{#explode:{{#var: sortform}}|·|0}}_{{#pad:{{#var: number}}|3|0|left}} }}[[sortform::{{#var: sortform}}| ]][[checklevel::{{{checklevel|}}}| ]]{{#vardefine: checklevel | {{{checklevel|}}} }}{{#ifeq: {{#var: checklevel }} || {{#vardefine: checklevel | 0 }} }}{{#vardefine: problem | {{#arraymap:{{{problem|}}}|,|x|[[problem::x]]}} }}
</noinclude><includeonly>{{#vardefine: disambiguation | {{#arraymap:{{{disambiguation|}}}|,|x|[[disambiguation::x]]}} }}{{#vardefine: minus |}}{{#vardefine: sortdate | {{{sortdate|}}} }}{{#vardefine: sortdate | {{#replace: {{#var: sortdate}} |<nowiki> </nowiki>|}} }}{{#vardefine: i | {{#pos:{{#var: sortdate }}|BC}} }}{{#ifeq: {{#var: i}} | | | {{#vardefine: sortdate | {{#sub:{{#var: sortdate}}|0|{{#var: i}} }} }}{{#vardefine: minus |-}} }}[[sortdate::{{#var: minus}}{{#var: sortdate}}| ]]{{#vardefine: sortform | {{#replace: {{FULLPAGENAME}}| |·}} }}{{#vardefine: sortform | {{#replace: {{#var: sortform}}|-|·}} }}{{#vardefine: number | {{#explode:{{#var: sortform}}|·|1}} }}{{#vardefine: sortform |{{#explode:{{#var: sortform}}|·|0}}_{{#pad:{{#var: number}}|3|0|left}} }}[[sortform::{{#var: sortform}}| ]][[checklevel::{{{checklevel|}}}| ]]{{#vardefine: checklevel | {{{checklevel|}}} }}{{#ifeq: {{#var: checklevel }} || {{#vardefine: checklevel | 0 }} }}{{#vardefine: problem | {{#arraymap:{{{problem|}}}|,|x|[[problem::x]]}} }}
<cshow logged=1 ingroup='editor'><div class="formedit">[[Special:EditData/object/{{FULLPAGENAME}}|edit with form]]</div>
<div class="formedit">[[Special:EditData/object/{{FULLPAGENAME}}|edit with form]]</div>
<div class="cshow">{{#ifexpr: {{#var: checklevel }} != 0 |
<div class="cshow">{{#ifexpr: {{#var: checklevel }} != 0 |
*[[Lexicon_Leponticum:Checklist|Checklevel]]: {{#var: checklevel }}
*[[Lexicon_Leponticum:Checklist|Checklevel]]: {{#var: checklevel }}
Line 15: Line 15:
*[[Property:sortdate|Sortdate]]: {{#var: minus}}{{#var: sortdate}}{{#ifeq: {{#var: disambiguation }}|||
*[[Property:sortdate|Sortdate]]: {{#var: minus}}{{#var: sortdate}}{{#ifeq: {{#var: disambiguation }}|||
*[[Property:disambiguation|Disambiguation pages]]: {{#var: disambiguation }} }}</div>
*[[Property:disambiguation|Disambiguation pages]]: {{#var: disambiguation }} }}</div>
</cshow>
{| class="table_data"
{| class="table_data"
{{#if: {{{name|}}} | ! [[Property:name|Proper name]]:
{{#if: {{{name|}}} | ! [[Property:name|Proper name]]:
Line 140: Line 139:
| {{#vardefine: sources | {{{source_detail|}}} }}{{#vardefine: sources | {{#replace: {{#var: sources }}|: |:}} }}{{#vardefine: sources | {{#replace: {{#var: sources }}|, |,}} }}{{#vardefine: i | 0 }}{{#vardefine: ok | 1 }}{{ #while:
| {{#vardefine: sources | {{{source_detail|}}} }}{{#vardefine: sources | {{#replace: {{#var: sources }}|: |:}} }}{{#vardefine: sources | {{#replace: {{#var: sources }}|, |,}} }}{{#vardefine: i | 0 }}{{#vardefine: ok | 1 }}{{ #while:
   | {{ #ifexpr: {{ #var: ok }} = 1 | true }}
   | {{ #ifexpr: {{ #var: ok }} = 1 | true }}
   |<nowiki/>{{#vardefine: entry | {{#explode: {{#var: sources }}|,| {{#var: i }} }} }}{{#ifeq: {{#var: entry }}||{{#vardefine: ok | 0 }}|{{#vardefine: link | {{#explode: {{#var: entry }}|:|0}} }}{{#vardefine: text | {{#explode: {{#var: entry }}|:|1}} }}{{#ifeq: {{#var: i }}|0||<br />}}{{bib|{{#var: link }}}}: {{#var: text}}[[source_detail::{{#var: link }}: {{#var: text}}| ]]}}{{#vardefine: i | {{ #expr: {{ #var: i }} + 1 }} }} }}
   |<nowiki/>{{#vardefine: entry | {{#explode: {{#var: sources }}|,| {{#var: i }} }} }}{{#ifeq: {{#var: entry }}||{{#vardefine: ok | 0 }}|{{#vardefine: link | {{#explode: {{#var: entry }}|:|0}} }}{{#vardefine: text | {{#explode: {{#var: entry }}|:|1}} }}{{#ifeq: {{#var: i }}|0||<br />}}{{bib|{{#var: link }}}}: {{#var: text}}}}{{#vardefine: i | {{ #expr: {{ #var: i }} + 1 }} }} }}
|}
|}
{{gallery}}[[Category:Object|{{#var: sortform}}]]</includeonly>
{{gallery}}[[Category:Object|{{#var: sortform}}]]</includeonly>

Revision as of 21:54, 16 June 2013

This template serves to display pages about archaeological objects that carry inscriptions. These are best created or edited with the Form:object.

See the objects' page for a list of all 294 object pages.