Шаблон:Marriage-lat/док
{{#ifeq:dok |dok
|
{{#ifeq:show |show
|
| Ovo je dokumentaciona podstranica za Шаблон:Marriage-lat. Sadrži informacije o korišćenju, kategorijama i drugom sadržaju koji nije deo originalne stranice. |
}}{{#if: |
| {{#ifexist:Шаблон:Marriage-lat
| [[Kategorija:Документација {{#switch:Шаблон |Шаблон=шаблона |Модул=модула |Корисник=корисничких страница |#default=Википедије}}]]
|
}}
}}
|
}}{{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|Шаблон
| template
| other
}}
}}
| template | шаблон
| šablon =
| {{#if:{{#ifeq:Marriage-lat|Marriage-lat|1|}} |{{#ifeq:var|вар|Ћирилица и латиница су равноправна писма у српском језику. Ако постављате овај шаблон у изворно латинички текст, користите {{Marriage-lat-lat}}.|Latinica i ćirilica su ravnopravna pisma u srpskom jeziku. Ako postavljate ovaj šablon u izvorno ćirilički tekst, koristite {{[[Šablon:{{PAGENAME{{#ifeq:var|var||CYRILLICIZED}}}}|{{PAGENAME{{#ifeq:var|var||CYRILLICIZED}}}}]]}}.}} |{{#if:{{#ifeq:var|var|1|}} |{{#ifeq:var|вар|Ћирилица и латиница су равноправна писма у српском језику. Ако постављате овај шаблон у изворно латинички текст, користите {{Marriage-lat-lat}}.|Latinica i ćirilica su ravnopravna pisma u srpskom jeziku. Ako postavljate ovaj šablon u izvorno ćirilički tekst, koristite {{[[Šablon:{{PAGENAME{{#ifeq:var|var||CYRILLICIZED}}}}|{{PAGENAME{{#ifeq:var|var||CYRILLICIZED}}}}]]}}.}} |Ћирилица и латиница су равноправна писма у српском језику. Ако постављате овај шаблон у изворно латинички текст, користите {{Marriage-lat-lat}}. }} }} |
| other | #default = }}
Usage
{{Marriage-lat}} takes up to three unnamed parameters – plus either, both or neither of the named parameters |{{SAFESUBST:#if:()|()=}} and |{{SAFESUBST:#if:end|end=}} – to produce output such as the following:
- {{#if: | | {{#if:Jane Doe |{{ safesubst:#if:1|Jane Doe }}}}{{#if:1 January 1895 December 31, 1905 |{{#ifeq:{{safesubst:#switch:
|no |n |false |не |ne |н |нетачно |ne |netačno |0 = no | = |¬ = |yes |y |true |да |д |тачно |da |d |tačno |1 = yes |#default = yes
}}|no| | }}{{#switch:mini|small|smaller|bigger=|norm|normal=|mini|tiny=|=}}({{#if:1 January 1895 | {{#ifeq:| |{{#ifeq:December 31, 1905| |{{#switch:|i|IPA=v.|v.}} }}|{{#switch:|i|IPA=v.|v.}} }}{{#ifeq:1 January 1895 |{{#ifeq:"1 january 1895"|"{{#expr:1 January 1895 }}"|1 January 1895 |{{#time:Y|1 January 1895 }}}} |1 January 1895 | {{#switch:|i|IPA="{{#expr:1 January 1895 }}"|1 January 1895 |{{#time:Y|1 January 1895 }}}}|{{#ifeq:"1 january 1895"|"{{#expr:1 January 1895 }}"|1 January 1895 |{{#time:Y|1 January 1895 }}}}}}}} | }}{{#if:December 31, 1905 | {{#ifeq:December 31, 1905| || {{#ifeq:| |—|{{#if:1 January 1895 | — ||}}}} {{#switch:
| d | d. | died | s | s. | smrt = {{#switch:|i|IPA=s.|s.}}
| div | div. | divorced | raz | raz. | razvod = {{#switch:|i|IPA=r.|r.}}
| w | w. | wid | wid. | widow | widowed | u | u. | udov | udov. | udovac | udovica = {{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|
| main
| other
}}
}}
| main = | other | #default = }}{{#switch:|i|IPA=u.|u.}}
| =
| #default =
}} }}{{#ifeq:|
| {{#ifexpr:(floor({{#time:Y|December 31, 1905}}/100))-(floor({{#time:Y|1 January 1895}}/100))=0
| {{#ifeq:December 31, 1905|{{#ifeq:"december 31, 1905"|"{{#expr:December 31, 1905}}"|December 31, 1905|{{#time:Y|December 31, 1905 }}}}
| December 31, 1905
| {{#switch:|i|IPA=December 31, 1905|December 31, 1905}}
}}
| {{#ifeq:December 31, 1905|{{#ifeq:"december 31, 1905"|"{{#expr:December 31, 1905}}"|December 31, 1905|{{#time:Y|December 31, 1905 }}}} |December 31, 1905
| {{#switch:|i|IPA="{{#expr:December 31, 1905}}"|December 31, 1905|{{#time:Y|December 31, 1905 }}}}|{{#ifeq:"december 31, 1905"|"{{#expr:December 31, 1905}}"|December 31, 1905|{{#time:Y|December 31, 1905 }}}}}}
}} }}
| {{#ifeq:December 31, 1905|{{#ifeq:"december 31, 1905"|"{{#expr:December 31, 1905}}"|December 31, 1905|{{#time:Y|December 31, 1905 }}}} |December 31, 1905
| {{#switch:|i|IPA="{{#expr:December 31, 1905}}"|December 31, 1905|{{#time:Y|December 31, 1905 }}}}|{{#ifeq:"december 31, 1905"|"{{#expr:December 31, 1905}}"|December 31, 1905|{{#time:Y|December 31, 1905 }}}}}}
}} }}
|
}}){{#switch:mini |small|smaller|bigger|mini|tiny=}} }}}}
- {{#if: | | {{#if:Fred Smith |{{ safesubst:#if:1|Fred Smith }}}}{{#if:2010 |{{#ifeq:{{safesubst:#switch:
|no |n |false |не |ne |н |нетачно |ne |netačno |0 = no | = |¬ = |yes |y |true |да |д |тачно |da |d |tačno |1 = yes |#default = yes
}}|no| | }}{{#switch:smaller|small|smaller|bigger=|norm|normal=|mini|tiny=|=}}({{#if:2010 | {{#ifeq:| |{{#ifeq:| |{{#switch:|i|IPA=v.|v.}} }}|{{#switch:|i|IPA=v.|v.}} }}{{#ifeq:2010|{{#ifeq:"2010"|"{{#expr:2010}}"|2010|{{#time:Y|2010 }}}} |2010| {{#switch:|i|IPA="{{#expr:2010}}"|2010|{{#time:Y|2010 }}}}|{{#ifeq:"2010"|"{{#expr:2010}}"|2010|{{#time:Y|2010 }}}}}}}} | }}{{#if: | {{#ifeq:| || {{#ifeq:| |—|{{#if:2010| — ||}}}} {{#switch:
| d | d. | died | s | s. | smrt = {{#switch:|i|IPA=s.|s.}}
| div | div. | divorced | raz | raz. | razvod = {{#switch:|i|IPA=r.|r.}}
| w | w. | wid | wid. | widow | widowed | u | u. | udov | udov. | udovac | udovica = {{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|
| main
| other
}}
}}
| main = | other | #default = }}{{#switch:|i|IPA=u.|u.}}
| =
| #default =
}} }}{{#ifeq:|
| {{#ifexpr:(floor({{#time:Y|}}/100))-(floor({{#time:Y|2010}}/100))=0
| {{#ifeq:|{{#ifeq:""|"{{#expr:}}"||{{#time:Y| }}}}
|
| {{#switch:|i|IPA=|}}
}}
| {{#ifeq:|{{#ifeq:""|"{{#expr:}}"||{{#time:Y| }}}} |
| {{#switch:|i|IPA="{{#expr:}}"||{{#time:Y| }}}}|{{#ifeq:""|"{{#expr:}}"||{{#time:Y| }}}}}}
}} }}
| {{#ifeq:|{{#ifeq:""|"{{#expr:}}"||{{#time:Y| }}}} |
| {{#switch:|i|IPA="{{#expr:}}"||{{#time:Y| }}}}|{{#ifeq:""|"{{#expr:}}"||{{#time:Y| }}}}}}
}} }}
|
}}){{#switch:smaller |small|smaller|bigger|mini|tiny=}} }}}}
- {{#if: | | {{#if:Jack Ripper |{{ safesubst:#if:1|Jack Ripper }}}}{{#if:1885 July 27, 1888 |{{#ifeq:{{safesubst:#switch:
|no |n |false |не |ne |н |нетачно |ne |netačno |0 = no | = |¬ = |yes |y |true |да |д |тачно |da |d |tačno |1 = yes |#default = yes
}}|no| | }}{{#switch:mini|small|smaller|bigger=|norm|normal=|mini|tiny=|=}}({{#if:1885 | {{#ifeq:d.| |{{#ifeq:July 27, 1888 | |{{#switch:|i|IPA=v.|v.}} }}|{{#switch:|i|IPA=v.|v.}} }}{{#ifeq:1885 |{{#ifeq:"1885"|"{{#expr:1885 }}"|1885 |{{#time:Y|1885 }}}} |1885 | {{#switch:|i|IPA="{{#expr:1885 }}"|1885 |{{#time:Y|1885 }}}}|{{#ifeq:"1885"|"{{#expr:1885 }}"|1885 |{{#time:Y|1885 }}}}}}}} | }}{{#if:July 27, 1888 | {{#ifeq:July 27, 1888 | || {{#ifeq:d.| |—|{{#if:1885 | — ||}}}} {{#switch:d.
| d | d. | died | s | s. | smrt = {{#switch:|i|IPA=s.|s.}}
| div | div. | divorced | raz | raz. | razvod = {{#switch:|i|IPA=r.|r.}}
| w | w. | wid | wid. | widow | widowed | u | u. | udov | udov. | udovac | udovica = {{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|
| main
| other
}}
}}
| main = | other | #default = }}{{#switch:|i|IPA=u.|u.}}
| =
| #default = d.
}} }}{{#ifeq:d.|
| {{#ifexpr:(floor({{#time:Y|July 27, 1888}}/100))-(floor({{#time:Y|1885}}/100))=0
| {{#ifeq:July 27, 1888 |{{#ifeq:"july 27, 1888"|"{{#expr:July 27, 1888 }}"|July 27, 1888 |{{#time:Y|July 27, 1888 }}}}
| July 27, 1888
| {{#switch:|i|IPA=July 27, 1888|July 27, 1888}}
}}
| {{#ifeq:July 27, 1888 |{{#ifeq:"july 27, 1888"|"{{#expr:July 27, 1888 }}"|July 27, 1888 |{{#time:Y|July 27, 1888 }}}} |July 27, 1888
| {{#switch:|i|IPA="{{#expr:July 27, 1888 }}"|July 27, 1888 |{{#time:Y|July 27, 1888 }}}}|{{#ifeq:"july 27, 1888"|"{{#expr:July 27, 1888 }}"|July 27, 1888 |{{#time:Y|July 27, 1888 }}}}}}
}} }}
| {{#ifeq:July 27, 1888 |{{#ifeq:"july 27, 1888"|"{{#expr:July 27, 1888 }}"|July 27, 1888 |{{#time:Y|July 27, 1888 }}}} |July 27, 1888
| {{#switch:|i|IPA="{{#expr:July 27, 1888 }}"|July 27, 1888 |{{#time:Y|July 27, 1888 }}}}|{{#ifeq:"july 27, 1888"|"{{#expr:July 27, 1888 }}"|July 27, 1888 |{{#time:Y|July 27, 1888 }}}}}}
}} }}
|
}}){{#switch:mini |small|smaller|bigger|mini|tiny=}} }}}}
- {{#if: | | {{#if:Frank Lee & Aynee Text |{{ safesubst:#if:1|Frank Lee & Aynee Text }}}}{{#if:2002 2013 |{{#ifeq:{{safesubst:#switch:
|no |n |false |не |ne |н |нетачно |ne |netačno |0 = no | = |¬ = |yes |y |true |да |д |тачно |da |d |tačno |1 = yes |#default = yes
}}|no| | }}{{#switch:small|small|smaller|bigger=|norm|normal=|mini|tiny=|=}}({{#if:2002 | {{#ifeq:| |{{#ifeq:2013| |{{#switch:|i|IPA=v.|v.}} }}|{{#switch:|i|IPA=v.|v.}} }}{{#ifeq:2002 |{{#ifeq:"2002"|"{{#expr:2002 }}"|2002 |{{#time:Y|2002 }}}} |2002 | {{#switch:|i|IPA="{{#expr:2002 }}"|2002 |{{#time:Y|2002 }}}}|{{#ifeq:"2002"|"{{#expr:2002 }}"|2002 |{{#time:Y|2002 }}}}}}}} | }}{{#if:2013 | {{#ifeq:2013| || {{#ifeq:| |—|{{#if:2002 | — ||}}}} {{#switch:
| d | d. | died | s | s. | smrt = {{#switch:|i|IPA=s.|s.}}
| div | div. | divorced | raz | raz. | razvod = {{#switch:|i|IPA=r.|r.}}
| w | w. | wid | wid. | widow | widowed | u | u. | udov | udov. | udovac | udovica = {{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|
| main
| other
}}
}}
| main = | other | #default = }}{{#switch:|i|IPA=u.|u.}}
| =
| #default =
}} }}{{#ifeq:|
| {{#ifexpr:(floor({{#time:Y|2013}}/100))-(floor({{#time:Y|2002}}/100))=0
| {{#ifeq:2013|{{#ifeq:"2013"|"{{#expr:2013}}"|2013|{{#time:Y|2013 }}}}
| 2013
| {{#switch:|i|IPA=2013|2013}}
}}
| {{#ifeq:2013|{{#ifeq:"2013"|"{{#expr:2013}}"|2013|{{#time:Y|2013 }}}} |2013
| {{#switch:|i|IPA="{{#expr:2013}}"|2013|{{#time:Y|2013 }}}}|{{#ifeq:"2013"|"{{#expr:2013}}"|2013|{{#time:Y|2013 }}}}}}
}} }}
| {{#ifeq:2013|{{#ifeq:"2013"|"{{#expr:2013}}"|2013|{{#time:Y|2013 }}}} |2013
| {{#switch:|i|IPA="{{#expr:2013}}"|2013|{{#time:Y|2013 }}}}|{{#ifeq:"2013"|"{{#expr:2013}}"|2013|{{#time:Y|2013 }}}}}}
}} }}
|
}}){{#switch:small |small|smaller|bigger|mini|tiny=}} }}}}
The above were produced by:
{{marriage-lat |[[John Doe|Jane Doe]] |1 January 1895 |December 31, 1905}}{{marriage-lat |Fred Smith |()=smaller |2010}}{{marriage-lat |Jack Ripper |1885 |July 27, 1888 |end=d.}}{{marriage-lat|()=small |Frank Lee & Aynee Text |2002 |2013}}
Syntax and parameters
{{marriage-lat [| {{
- if: ()=
| ()=
}}]| {{
- if: <text>
| <text>
}}| {{
- if: <start date>
| <start date>
}}| {{
- if: <end date>
| <end date>
}}[| {{
- if: end=
| end=
}}]}}
Parameter Description
()
Set |{{SAFESUBST:#if:()|()=}}small or |{{SAFESUBST:#if:()|()=}}smaller to reduce the font-size used for the parenthesis. (See second and fourth examples above.)
<text>
Some text – usually a spouse's name – preceding the parenthesis carrying the marriage date/s, etc.
{{#if:
- <start date>
- <end date>
|
- <start date>
- <end date>
}}
Only the year within each of these will be displayed. If either has more information (e.g., month, day), it is given via a tooltip; i.e., {{#if: |}}{{#if: | |{{#if:|}} }}{{#if: |}}{{#if: |}}{{#if: | |{{}}{{#if: |subst:}}{{#if: |}}{{#if: || {{#if: |{}}[[:{{#ifeq:A|: |Abbr |{{#switch:
| = Шаблон:{{#if:Abbr|Abbr|Marriage-lat/док}}
| #default = {{#if:Abbr|Abbr|Шаблон:Marriage-lat/док}}
}}}}|}}{{#if: |{{}}{{#if: |{}}{{#if:Abbr|Abbr|{{#ifeq:Шаблон|Шаблон|Marriage-lat/док|Шаблон:Marriage-lat/док}}}}{{#if: |}}}}{{#if: |}}}{{#if: | |]]{{#if: |}}}}}{{#if: |}}{{#if: |}}{{#if: |}}{{#ifeq:¬|¬ | ||{{{2}}}}}{{#ifeq:¬|¬ | ||{{{3}}}}}{{#ifeq:¬|¬ | ||{{{4}}}}}{{#ifeq:¬|¬ | ||{{{5}}}}}{{#ifeq:¬|¬ | ||{{{6}}}}}{{#ifeq:¬|¬ | ||{{{7}}}}}{{#ifeq:¬|¬ | ||{{{8}}}}}{{#ifeq:¬|¬ | ||{{{9}}}}}{{#ifeq:¬|¬ | ||{{{10}}}}}{{#ifeq:¬|¬ | ||{{{11}}}}}{{#if: ||…}}{{#if: |}}{{#if: | |}}}}{{#if: |}}{{#if: |}}{{#if: |}}. (See first and third examples above.)
end
Reason for marriage's end.
d, d., or died includes {{#switch:|i|IPA=d.|d.}} within the parentheses if the marriage ended on the death of the spouse.
div, div., or divorced includes {{#switch:|i|IPA=div.|div.}} within the parentheses.
Otherwise, |{{SAFESUBST:#if:end|end=}}item includes customised text. For example:
{{marriage-lat |Miss Doe |January 1, 1882 |December 31, 1905 |end=annulled}} which produces: {{#if: | | {{#if:Miss Doe |{{ safesubst:#if:1|Miss Doe }}}}{{#if:January 1, 1882 December 31, 1905 |{{#ifeq:{{safesubst:#switch:
|no
|n
|false
|не
|ne
|н
|нетачно
|ne
|netačno
|0 = no
| =
|¬ =
|yes
|y
|true
|да
|д
|тачно
|da
|d
|tačno
|1 = yes
|#default = yes
}}|no| | }}{{#switch:mini|small|smaller|bigger=|norm|normal=|mini|tiny=|=}}({{#if:January 1, 1882 | {{#ifeq:annulled| |{{#ifeq:December 31, 1905 | |{{#switch:|i|IPA=v.|v.}} }}|{{#switch:|i|IPA=v.|v.}} }}{{#ifeq:January 1, 1882 |{{#ifeq:"january 1, 1882"|"{{#expr:January 1, 1882 }}"|January 1, 1882 |{{#time:Y|January 1, 1882 }}}} |January 1, 1882 | {{#switch:|i|IPA="{{#expr:January 1, 1882 }}"|January 1, 1882 |{{#time:Y|January 1, 1882 }}}}|{{#ifeq:"january 1, 1882"|"{{#expr:January 1, 1882 }}"|January 1, 1882 |{{#time:Y|January 1, 1882 }}}}}}}} | }}{{#if:December 31, 1905 | {{#ifeq:December 31, 1905 | || {{#ifeq:annulled| |—|{{#if:January 1, 1882 | — ||}}}} {{#switch:annulled
| d | d. | died | s | s. | smrt = {{#switch:|i|IPA=s.|s.}}
| div | div. | divorced | raz | raz. | razvod = {{#switch:|i|IPA=r.|r.}}
| w | w. | wid | wid. | widow | widowed | u | u. | udov | udov. | udovac | udovica = {{#switch:
{{#if:
| {{{demospace}}}
| {{#ifeq:Шаблон|
| main
| other
}}
}}
| main =
| other
| #default =
}}{{#switch:|i|IPA=u.|u.}}
| =
| #default = annulled
}} }}{{#ifeq:annulled|
| {{#ifexpr:(floor({{#time:Y|December 31, 1905}}/100))-(floor({{#time:Y|January 1, 1882}}/100))=0
| {{#ifeq:December 31, 1905 |{{#ifeq:"december 31, 1905"|"{{#expr:December 31, 1905 }}"|December 31, 1905 |{{#time:Y|December 31, 1905 }}}}
| December 31, 1905
| {{#switch:|i|IPA=December 31, 1905|December 31, 1905}}
}}
| {{#ifeq:December 31, 1905 |{{#ifeq:"december 31, 1905"|"{{#expr:December 31, 1905 }}"|December 31, 1905 |{{#time:Y|December 31, 1905 }}}} |December 31, 1905
| {{#switch:|i|IPA="{{#expr:December 31, 1905 }}"|December 31, 1905 |{{#time:Y|December 31, 1905 }}}}|{{#ifeq:"december 31, 1905"|"{{#expr:December 31, 1905 }}"|December 31, 1905 |{{#time:Y|December 31, 1905 }}}}}}
}} }}
| {{#ifeq:December 31, 1905 |{{#ifeq:"december 31, 1905"|"{{#expr:December 31, 1905 }}"|December 31, 1905 |{{#time:Y|December 31, 1905 }}}} |December 31, 1905
| {{#switch:|i|IPA="{{#expr:December 31, 1905 }}"|December 31, 1905 |{{#time:Y|December 31, 1905 }}}}|{{#ifeq:"december 31, 1905"|"{{#expr:December 31, 1905 }}"|December 31, 1905 |{{#time:Y|December 31, 1905 }}}}}}
}} }}
|
}}){{#switch:mini |small|smaller|bigger|mini|tiny=}} }}}}
nowrapbeforedate(s)
Option for making date after name fall after name.
TemplateData
{{#if:|погледајте месечни извештај о грешкама за овај шаблон.|Ovo je {{#if:|TemplateData|TemplateData}} dokumentacija za ovaj šablon, korišćena u Vizuelnom uređivaču i u drugim alatkama; pogledajte mesečni izveštaj o greškama za ovaj šablon.}}
TemplateData za Marriage-lat
{{#ifeq:док|sandbox||
}}
<templatedata>{
"description": "insert description here",
"params": {
"1": {
"label": "Spouse's name",
"description": "Name of the person to whom the subject is married.",
"type": "string",
"default": "",
"required": true,
"aliases": [ "spouse" ]
},
"2": {
"label": "Date married",
"description": "Date the marriage began.",
"type": "string",
"default": "",
"required": true,
"aliases": [ "date" ]
},
"3": {
"label": "Date ended",
"description": "Date the marriage was dissolved or the spouse of the article's subject died.",
"type": "string",
"default": "",
"required": false,
"aliases": [ "end" ]
}
}
}</templatedata>