Template:reference: Difference between revisions

From Thesaurus Inscriptionum Raeticarum
Jump to navigationJump to search
No edit summary
 
No edit summary
 
(28 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
[[description::This template serves to display pages about '''referenced literature'''.]] These are best created or edited with the [[Form:reference]].
[[description::This template serves to display pages about '''referenced literature'''.]]
These are best created or edited with the [[Form:reference]].


See the [[Bibliography]] for a list of all {{#ask:[[Category:Reference]]|format=count}} reference pages.
See the [[Bibliography]] for a list of all {{#ask:[[Category:Reference]]|format=count}} reference pages.
Line 6: Line 7:
[[Category:Page Module]]
[[Category:Page Module]]


</noinclude><includeonly>{{#vardefine: disambiguation | {{#arraymap:{{{disambiguation|}}}|,|x|[[disambiguation::x]]}} }}{{#ifeq: {{{year|}}}||{{#vardefine: year | {{{journal_year|}}} }}|{{#vardefine: year | {{{year|}}} }} }}{{#ifeq: {{#var: year }}|| {{#vardefine: year | {{#show:{{{in_title|}}}|?date}} }} }}{{#vardefine: full_title | {{{title|}}} }}{{#ifeq: {{{subtitle|}}}|||{{#vardefine: full_title | {{{title|}}}. {{{subtitle|}}} }} }}{{#vardefine: full_citation |{{{author|}}}{{#ifeq: {{{author_info|}}}|||&#32;{{{author_info|}}}}}, {{#ifeq: {{{in_title|}}}||{{#ifeq: {{{journal|}}}||''{{#var: full_title}}''|"{{#var: full_title}}"}}|"{{#var: full_title}}"}}{{#ifeq: {{{review_of|}}}|||, review of: {{#show:{{{review_of|}}}|?text_plain}} }}{{#ifeq: {{{edition|}}}|||, {{{edition|}}}}}{{#ifeq: {{{in_title|}}}|||{{#vardefine: in | {{#show:{{{in_title|}}}|?text_plain}} }}{{#vardefine: len | {{#expr: {{#len: {{#var: in }} }} -1 }} }}{{#ifexpr: {{#rpos: {{#var: in}}|.}} = {{#var: len}} | {{#vardefine: in | {{#sub: {{#var: in }}|0|{{#var: len}} }} }} }}, in: {{#var: in }} }}{{#ifeq: {{{journal|}}}|||, ''{{{journal|}}}'' {{{issue|}}}{{#ifeq: {{#var: year }}|||&#32;({{#var: year }})}} }}{{#ifeq:{{{series|}}}|||&#32;&#91;= {{{series|}}}{{#ifeq:{{{series_number|}}}|||&#32;{{{series_number|}}}}}&#93;}}{{#ifeq: {{{city|}}}|||, {{{city|}}}: {{{publisher|}}} {{#var: year }}}}{{#ifeq:{{{pages|}}}|||, {{{pages|}}}}}. {{{description|}}} }}[[text_plain::{{#var: full_citation}}]]{{#if: {{{lexlep_shelfmark|}}}|{{#vardefine: shelfmark | {{{lexlep_shelfmark|}}} }}|{{#vardefine: shelfmark | none }} }}
</noinclude><includeonly>{{#vardefine: disambiguation | {{#arraymap:{{{disambiguation|}}}|,|x|[[disambiguation::x]]}} }}{{#ifeq: {{{year|}}}||{{#vardefine: year | {{{journal_year|}}} }}|{{#vardefine: year | {{{year|}}} }} }}{{#ifeq: {{#var: year }}|| {{#vardefine: year | {{#show:{{{in_title|}}}|?date}} }} }}{{#vardefine: full_title | {{{title|}}} }}{{#ifeq: {{{subtitle|}}}|||{{#vardefine: full_title | {{{title|}}}. {{{subtitle|}}} }} }}{{#vardefine: sortform | {{lc:{{{sortform|}}}}} }}{{#ifeq: {{#var: sortform}}||{{#vardefine: sortform | {{lc:{{PAGENAME}}}} }} }}{{#vardefine: sortform | {{#replace: {{#var: sortform}}|&#38;|&}} }}{{#vardefine: replace |et al.=~?-=?&=~?ä=a?ö=o?ü=u?ß=ss?á=a?à=a?é=e?í=i?ì=i?ó=o?ò=o?ú=u?ù=u?â=a?ê=e?î=i?ô=o?û=u?è=e?~~=~?~~=~?<nowiki> </nowiki>=}}{{#vardefine: n | 0 }}{{#vardefine: ok | 1 }}{{#while:
 
  | {{ #ifexpr: {{#var: ok }} = 1 | true }}
{{#vardefine: sortform | {{lc:{{{sortform|}}}}} }}{{#ifeq: {{#var: sortform}}||{{#vardefine: sortform | {{lc:{{FULLPAGENAME}}}} }} }}{{#vardefine: sortform | {{ucfirst:{{#var: sortform}}}} }}{{#vardefine: sortform | {{#replace: {{#var: sortform}}| |}} }}{{#vardefine: checklevel | {{{checklevel|}}} }}{{#ifeq: {{#var: checklevel}}||{{#vardefine: checklevel|0}} }}{{#vardefine: problem | {{#arraymap:{{{problem|}}}|,|x|[[problem::x]]}} }}{{#vardefine: sourcetype | {{#arraymap:{{{lexlep_sourcetype|}}}|,|z|[[lexlep_sourcetype::z]]}} }}<cshow logged=1 ingroup='editor, sysop'><div class="formedit">[[Special:EditData/reference/{{FULLPAGENAME}}|edit with form]]</div>
  |<nowiki/>
<div class="cshow">
{{#vardefine: to | {{#explode: {{#var: replace }}|?|{{#var: n }} }} }}{{#vardefine: from | {{#explode: {{#var: to }}|=|0}} }}{{#vardefine: to | {{#explode: {{#var: to }}|=|1}} }}{{#vardefine: sortform | {{#replace: {{#var: sortform}}|{{#var: from}}|{{#var: to}} }} }}{{#vardefine: n | {{ #expr: {{#var: n }} + 1 }} }}{{#ifeq: {{#var: from }}||{{#vardefine: ok | 0 }} }} }}{{#vardefine: sortform | {{ucfirst:{{#var: sortform}}}} }}[[checklevel::{{{checklevel|}}}| ]]{{#vardefine: checklevel | {{{checklevel|}}} }}{{#ifeq: {{#var: checklevel}}||{{#vardefine: checklevel|0}} }}{{#vardefine: problem | {{#arraymap:{{{problem|}}}|,|x|[[problem::x]]}} }}{{#vardefine: sourcetype | {{#arraymap:{{{sourcetype|}}}|,|z|[[type_source::z]]}} }}
*[[Property:lexlep_sourcetype|Available as]]: {{#var: sourcetype }}
<div class="formedit">[[Special:EditData/reference/{{FULLPAGENAME}}|edit with form]]</div>
*Library Shelfmark: {{#var: shelfmark }}
{| class="table_data" width=100%
*[[Property:sortform|Sortform]]: {{#var: sortform }}{{#ifexpr: {{#var: checklevel }} != 0 |
! colspan="2" class="field_category" | [[:Category:Reference|Reference]]
*[[Lexicon_Leponticum:Checklist|Checklevel]]: {{#var: checklevel }}
|-
*[[Property:problem|Problems]]: {{#var: problem }}| }}{{#ifeq: {{#var: disambiguation }}|||
! width="100" | [[Property:author|Author/Editor]]:
*[[Property:disambiguation|Disambiguation pages]]: {{#var: disambiguation }} }}
| {{#vardefine: author_all|}}{{#vardefine: values | {{{author|}}} }}{{#vardefine: i | 0 }}{{#vardefine: ok | 1 }}{{#while:
</div></cshow>
{| class="table_data"
! [[Property:author|Author/Editor]]:
| {{#vardefine: values | {{{author|}}} }}{{#vardefine: i | 0 }}{{#vardefine: ok | 1 }}{{#while:
   | {{#ifexpr: {{#var: ok }} > 0 | true }}
   | {{#ifexpr: {{#var: ok }} > 0 | true }}
   |<nowiki/>{{#vardefine: entry | {{#explode: {{#var: values }}|,| {{#var: i }} }} }}{{#ifeq: {{#var: entry }}||{{#vardefine: ok | 0 }}|[[author::{{#var: entry }}| ]]{{#ifexpr: {{#var: i }} > 0 |,&#32;|}}{{#ask:[[Category:Reference]][[author::{{#var: entry }}]]|searchlabel={{#var: entry }}|?author=Author/Editor|limit=0}} }}{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }} }}
   |<nowiki/>{{#vardefine: entry | {{#explode: {{#var: values }}|,| {{#var: i }} }} }}{{#ifeq: {{#var: entry }}||{{#vardefine: ok | 0 }}|{{#vardefine: normname | {{#explode: {{#var: entry }}|!|0}} }}{{#vardefine: author | {{#explode: {{#var: entry }}|!|1}} }}{{#ifeq: {{#var: author }}||{{#vardefine: author | {{#var: normname }} }} }}[[author::{{#var: author }}| ]][[normname::{{#var: normname }}| ]]{{#ifexpr: {{#var: i }} > 0 |,&#32;{{#vardefine: author_all|{{#var: author_all }},&#32;}}|}}{{#vardefine: author_all|{{#var: author_all }}{{#var: author}}}}{{#ask:[[Category:Reference]][[normname::{{#var: normname }}]]|searchlabel={{#var: author }}|?author=Author/Editor|limit=0|sort=sortform}} }}{{#vardefine: i | {{#expr: {{#var: i }} + 1 }} }} }}
|-
! [[Property:text_plain|Full citation]]:
| {{#vardefine: full_citation |{{#var: author_all }}{{#ifeq: {{{author_info|}}}|||&#32;{{{author_info|}}}}}, {{#ifeq: {{{in_title|}}}||{{#ifeq: {{{journal|}}}||''{{#var: full_title}}''|"{{#var: full_title}}"}}|"{{#var: full_title}}"}}{{#ifeq: {{{review_of|}}}|||{{#vardefine: review |{{#show:{{{review_of|}}}|?text_plain}} }}{{#vardefine: review |{{#replace: {{#var: review }}|[|&#91;}} }}{{#vardefine: review |{{#replace: {{#var: review }}|]|&#93;}} }}{{#vardefine: len | {{#expr: {{#len: {{#var: review }} }} -1 }} }}{{#ifexpr: {{#rpos: {{#var: review}}|.}} = {{#var: len}} | {{#vardefine: review | {{#sub: {{#var: review }}|0|{{#var: len}} }} }} }}, review of: {{#var: review }} }}{{#ifeq: {{{edition|}}}|||, {{{edition|}}}}}{{#ifeq: {{{in_title|}}}|||{{#vardefine: in | {{#show:{{{in_title|}}}|?text_plain}} }}{{#vardefine: in |{{#replace: {{#var: in }}|[|&#91;}} }}{{#vardefine: in |{{#replace: {{#var: in }}|]|&#93;}} }}{{#vardefine: len | {{#expr: {{#len: {{#var: in }} }} -1 }} }}{{#ifexpr: {{#rpos: {{#var: in}}|.}} = {{#var: len}} | {{#vardefine: in | {{#sub: {{#var: in }}|0|{{#var: len}} }} }} }}, in: {{#var: in }} }}{{#ifeq: {{{journal|}}}|||, ''{{{journal|}}}'' {{{issue|}}}{{#ifeq: {{#var: year }}|||&#32;({{#var: year }})}} }}{{#ifeq:{{{series|}}}|||&#32;&#91;= {{{series|}}}{{#ifeq:{{{series_number|}}}|||&#32;{{{series_number|}}}}}&#93;}}{{#ifeq: {{{city|}}}|||, {{{city|}}}: {{{publisher|}}} {{#var: year }}}}{{#ifeq:{{{pages|}}}|||, {{{pages|}}}}}. {{{description|}}} }}[[text_plain::{{#var: full_citation}}]]
|-
|-
! [[Property:type_reference|Type]]:
! [[Property:type_reference|Type]]:
Line 29: Line 29:
| {{#arraymap:{{{language|}}}|,|x|[[language::x]]}}
| {{#arraymap:{{{language|}}}|,|x|[[language::x]]}}
|-
|-
{{#if: {{{link_title|}}} |
! Link to E-Read:
{{!}} {{{link_title|}}}
{{!}}- | }}
{{#if: {{{link_author|}}} |
{{#if: {{{link_author|}}} |
! Link to Author:  
! Link to author:  
{{!}} {{{link_author|}}}
{{!}} {{{link_author|}}}
{{!}}- | }}
{{!}}- | }}
{{#if: {{{link_series|}}} |
{{#if: {{{link_title|}}} |
! Link to {{#ifeq: {{{journal|}}}||Series|Journal}}:
! Link to e-read:  
{{!}} {{{link_series|}}}
{{!}} {{{link_title|}}}
{{!}}- | }}
{{#if: {{{link_publisher|}}} |
! Link to Publisher:  
{{!}} {{{link_publisher|}}}
{{!}}- | }}
{{!}}- | }}
{{#if: {{{in_title|}}} |
{{#if: {{{in_title|}}} |
Line 52: Line 44:
| {{#vardefine: n | {{#ask:[[index::{{FULLPAGENAME}}]]|format=count}} }}{{#ifexpr: {{#var: n }} != 1 | {{#var: n }} pages ({{#ask:[[index::{{FULLPAGENAME}}]]|format=table|?Category|limit=0|searchlabel=show list|default=nothing}})|{{#ask:[[index::{{FULLPAGENAME}}]]|format=list}} }}
| {{#vardefine: n | {{#ask:[[index::{{FULLPAGENAME}}]]|format=count}} }}{{#ifexpr: {{#var: n }} != 1 | {{#var: n }} pages ({{#ask:[[index::{{FULLPAGENAME}}]]|format=table|?Category|limit=0|searchlabel=show list|default=nothing}})|{{#ask:[[index::{{FULLPAGENAME}}]]|format=list}} }}
|}
|}
[[title::{{{title|}}}| ]][[date::{{#var: year }}| ]][[sortdate::{{#var: year }}| ]][[checklevel::{{#var: checklevel}}| ]][[index::{{{in_title|}}}| ]][[index::{{{review_of|}}}| ]][[sortform::{{#var: sortform}}| ]][[Category:Reference|{{#var: sortform}}]]
[[title::{{{title|}}}| ]][[date::{{#var: year }}| ]]{{#vardefine: year | {{#sub: {{#var: year }}|0|4}} }}[[sortdate::{{#var: year }}| ]][[index::{{{in_title|}}}| ]][[index::{{{review_of|}}}| ]][[sortform::{{#var: sortform}}| ]][[Category:Reference|{{#var: sortform}}]]
</includeonly>
</includeonly>

Latest revision as of 00:38, 22 April 2016

This template serves to display pages about referenced literature. These are best created or edited with the Form:reference.

See the Bibliography for a list of all 925 reference pages.