Difference between revisions of "Template:Floruit/sandbox"
Jump to navigation
Jump to search
(show added error conditions.) |
(Tweak error msg.) |
||
| Line 1: | Line 1: | ||
| − | <!--Begin {{floruit}}.--><includeonly>{{#if:{{{pfx|}}}|{{#switch:{{{pfx|}}}|active|fl.=|{{error|message=<small>[error in template {{tl2|floruit}}: invalid prefix]</small>}} }}|}}{{#if:{{{wrap|}}}|{{#ifeq:{{{wrap|}}}|yes||{{error|message=<small>[error in template {{tl2|floruit}}: wrong value for the wrap option]</small>}} }}|<span style="white-space:nowrap;">}}{{#if:{{{b|}}}|{{#if:{{{1|{{{date|}}}}}}|{{#ifeq:{{{b|}}}|yes|(|{{error|message=<small>[error in template {{tl2|floruit}}: wrong value for the bracket option]</small>}} }}|{{error|message=<small>[error in template {{tl2|floruit}}: bracket option requires a date value]</small>}} }}|}}{{#if:{{{pre|}}}|{{{pre}}} }}{{#if:{{{pfx-style|}}}|{{#ifeq:|{{{pfx|}}}|active|{{error|message=<small>[error in template {{tl2|floruit}}: prefix style not applicable]</small>}} |{{#ifeq:{{{pfx-style|}}}|italics|<em>|{{error|message=<small>[error in template {{tl2|floruit}}: wrong value for the prefix-style option]</small>}} }}}}}}{{#if:{{{pfx-lk|{{{lk|}}}}}}|{{#switch:{{{pfx-lk|{{{lk|}}}}}}|no|off={{#if:{{{pfx|}}}|{{{pfx}}}|fl.}}|abbr={{#ifeq:{{{pfx}}}|active|{{error|message=<small>[error in template {{tl2|floruit}}: prefix link inconsistent with prefix]</small>}}|{{abbr|fl.|floruit}}}}|{{error|message=<small>[error in template {{tl2|floruit}}: wrong value for the prefix-link option]</small>}} }}|[[Floruit|{{#if:{{{pfx|}}}|{{{pfx}}}|fl.}}]]}}{{#if:{{{1|{{{date|}}}}}}|{{#ifeq:{{{pfx|}}}|active| | }}|}}{{#ifeq:{{{pfx-style|}}}|italics|</em>}}{{#if:{{{ca|}}}|{{#if:{{{2|{{{date2|}}}}}}|{{#switch:{{{ca|}}}|both|yes|date=c. |}}|{{#switch:{{{ca|}}}|yes|date={{#if:{{{1|{{{date|}}}}}}|{{#ifeq:{{{pfx|}}}|active| | }}|}}|{{#if:{{{1|{{{date|}}}}}}|| }}{{error|message=<small>[error in template {{tl2|floruit}}: wrong value for the circa option]</small>}} }}|}}}}{{#if:{{{sortable|}}}|{{#if:{{{1|{{{date|}}}}}}|{{#ifeq:{{{sortable|}}}|yes|{{#iferror:{{dts|{{{1|{{{date|}}}}}}}}|{{error|message=<small>[error in template {{tl2|floruit}}: wrong date format for the sortable option]</small>}}}}| {{error|message=<small>[error in template {{tl2|floruit}}: wrong value for the sortable option]</small>}}}}| {{error|message=<small>[error in template {{tl2|floruit}}: sortable option requires a date value]</small>}}}}|{{trim|{{{1|{{{date|}}}}}}}}}}{{#if:{{{unit|}}}|{{#if:{{{1|{{{date|}}}}}}|{{#if:{{{2|{{{date2|}}}}}}|{{#switch:{{{unit|}}}|c-c= century|m-m= millennium}}|{{#switch:{{{unit|}}}|c= century|m= millennium| {{error|message=<small>[error in template {{tl2|floruit}}: wrong value for the date-unit option]</small>}}}}}}|{{error|message=<small>[error in template {{tl2|floruit}}: date-unit option requires a date value]</small>}}}}}}{{#if:{{{sfx|}}}|{{#if:{{{1|{{{date|}}}}}}|{{#if:{{{2|{{{date2|}}}}}}|{{#switch:{{{sfx|}}}|b-a= {{#ifeq:{{{sfx-lk|}}}|yes|[[Anno Domini|BC]]|BC}}|bce|b-c= {{#ifeq:{{{sfx-lk|}}}|yes|[[Common Era|BCE]]|BCE}}}}|{{#switch:{{{sfx|}}}|ad= {{#ifeq:{{{sfx-lk|}}}|yes|[[Anno Domini|AD]]|AD}}|bc= {{#ifeq:{{{sfx-lk|}}}|yes|[[Anno Domini|BC]]|BC}}|bce= {{#ifeq:{{{sfx-lk|}}}|yes|[[Common Era|BCE]]|BCE}}|ce= {{#ifeq:{{{sfx-lk|}}}|yes|[[Common Era|CE]]|CE}}| {{error|message=<small>[error in template {{tl2|floruit}}: wrong or unsupported suffix]</small>}}}}}}|{{error|message=<small>[error in template {{tl2|floruit}}: suffix option requires a date value]</small>}}}}|{{#if:{{{sfx-lk|}}}| {{error|message=<small>[error in template {{tl2|floruit}}: suffix link requires suffix]</small>}}}}}}{{#if:{{{2|{{{date2|}}}}}}|{{#if:{{{1|{{{date|}}}}}}| – {{#if:{{{ca|}}}|{{#switch:{{{ca|}}}|date2|both=c. |yes|date=|{{error|message=<small>[error in template {{tl2|floruit}}: wrong value for the circa option]</small>}} }}|}}{{trim|{{{2|{{{date2|}}}}}}}}{{#if:{{{unit|}}}|{{#switch:{{{unit|}}}|c|c-c= century|m|m-m= millennium| {{error|message=<small>[error in template {{tl2|floruit}}: wrong value for the date-unit option]</small>}}}}}}{{#if:{{{sfx|}}}|{{#switch:{{{sfx|}}}|ad|b-a= {{#ifeq:{{{sfx-lk|}}}|yes|[[Anno Domini|AD]]|AD}}|bc= {{#ifeq:{{{sfx-lk|}}}|yes|[[Anno Domini|BC]]|BC}}|bce= {{#ifeq:{{{sfx-lk|}}}|yes|[[Common Era|BCE]]|BCE}}|ce|b-c= {{#ifeq:{{{sfx-lk|}}}|yes|[[Common Era|CE]]|CE}}|{{error|message= <small>[error in template {{tl2|floruit}}: wrong or unsupported suffix]</small>}}}}}}|{{error|message= <small>[error in template {{tl2|floruit}}: date range requires a start date]</small>}}}}}}{{#if:{{{1|{{{date|}}}}}}|{{#ifeq:{{{b|}}}|yes|)}}}}{{#ifeq:{{{wrap|}}}|yes||</span>}}</includeonly><!--End {{floruit}}.--><noinclude> | + | <!--Begin {{floruit}}.--><includeonly>{{#if:{{{pfx|}}}|{{#switch:{{{pfx|}}}|active|fl.=|{{error|message=<small>[error in template {{tl2|floruit}}: invalid prefix option]</small>}} }}|}}{{#if:{{{wrap|}}}|{{#ifeq:{{{wrap|}}}|yes||{{error|message=<small>[error in template {{tl2|floruit}}: wrong value for the wrap option]</small>}} }}|<span style="white-space:nowrap;">}}{{#if:{{{b|}}}|{{#if:{{{1|{{{date|}}}}}}|{{#ifeq:{{{b|}}}|yes|(|{{error|message=<small>[error in template {{tl2|floruit}}: wrong value for the bracket option]</small>}} }}|{{error|message=<small>[error in template {{tl2|floruit}}: bracket option requires a date value]</small>}} }}|}}{{#if:{{{pre|}}}|{{{pre}}} }}{{#if:{{{pfx-style|}}}|{{#ifeq:|{{{pfx|}}}|active|{{error|message=<small>[error in template {{tl2|floruit}}: prefix style option not applicable]</small>}} |{{#ifeq:{{{pfx-style|}}}|italics|<em>|{{error|message=<small>[error in template {{tl2|floruit}}: wrong value for the prefix-style option]</small>}} }}}}}}{{#if:{{{pfx-lk|{{{lk|}}}}}}|{{#switch:{{{pfx-lk|{{{lk|}}}}}}|no|off={{#if:{{{pfx|}}}|{{{pfx}}}|fl.}}|abbr={{#ifeq:{{{pfx}}}|active|{{error|message=<small>[error in template {{tl2|floruit}}: prefix link inconsistent with prefix option]</small>}}|{{abbr|fl.|floruit}}}}|{{error|message=<small>[error in template {{tl2|floruit}}: wrong value for the prefix-link option]</small>}} }}|[[Floruit|{{#if:{{{pfx|}}}|{{{pfx}}}|fl.}}]]}}{{#if:{{{1|{{{date|}}}}}}|{{#ifeq:{{{pfx|}}}|active| | }}|}}{{#ifeq:{{{pfx-style|}}}|italics|</em>}}{{#if:{{{ca|}}}|{{#if:{{{2|{{{date2|}}}}}}|{{#switch:{{{ca|}}}|both|yes|date=c. |}}|{{#switch:{{{ca|}}}|yes|date={{#if:{{{1|{{{date|}}}}}}|{{#ifeq:{{{pfx|}}}|active| | }}|}}|{{#if:{{{1|{{{date|}}}}}}|| }}{{error|message=<small>[error in template {{tl2|floruit}}: wrong value for the circa option]</small>}} }}|}}}}{{#if:{{{sortable|}}}|{{#if:{{{1|{{{date|}}}}}}|{{#ifeq:{{{sortable|}}}|yes|{{#iferror:{{dts|{{{1|{{{date|}}}}}}}}|{{error|message=<small>[error in template {{tl2|floruit}}: wrong date format for the sortable option]</small>}}}}| {{error|message=<small>[error in template {{tl2|floruit}}: wrong value for the sortable option]</small>}}}}| {{error|message=<small>[error in template {{tl2|floruit}}: sortable option requires a date value]</small>}}}}|{{trim|{{{1|{{{date|}}}}}}}}}}{{#if:{{{unit|}}}|{{#if:{{{1|{{{date|}}}}}}|{{#if:{{{2|{{{date2|}}}}}}|{{#switch:{{{unit|}}}|c-c= century|m-m= millennium}}|{{#switch:{{{unit|}}}|c= century|m= millennium| {{error|message=<small>[error in template {{tl2|floruit}}: wrong value for the date-unit option]</small>}}}}}}|{{error|message=<small>[error in template {{tl2|floruit}}: date-unit option requires a date value]</small>}}}}}}{{#if:{{{sfx|}}}|{{#if:{{{1|{{{date|}}}}}}|{{#if:{{{2|{{{date2|}}}}}}|{{#switch:{{{sfx|}}}|b-a= {{#ifeq:{{{sfx-lk|}}}|yes|[[Anno Domini|BC]]|BC}}|bce|b-c= {{#ifeq:{{{sfx-lk|}}}|yes|[[Common Era|BCE]]|BCE}}}}|{{#switch:{{{sfx|}}}|ad= {{#ifeq:{{{sfx-lk|}}}|yes|[[Anno Domini|AD]]|AD}}|bc= {{#ifeq:{{{sfx-lk|}}}|yes|[[Anno Domini|BC]]|BC}}|bce= {{#ifeq:{{{sfx-lk|}}}|yes|[[Common Era|BCE]]|BCE}}|ce= {{#ifeq:{{{sfx-lk|}}}|yes|[[Common Era|CE]]|CE}}| {{error|message=<small>[error in template {{tl2|floruit}}: wrong or unsupported suffix]</small>}}}}}}|{{error|message=<small>[error in template {{tl2|floruit}}: suffix option requires a date value]</small>}}}}|{{#if:{{{sfx-lk|}}}| {{error|message=<small>[error in template {{tl2|floruit}}: suffix link requires suffix]</small>}}}}}}{{#if:{{{2|{{{date2|}}}}}}|{{#if:{{{1|{{{date|}}}}}}| – {{#if:{{{ca|}}}|{{#switch:{{{ca|}}}|date2|both=c. |yes|date=|{{error|message=<small>[error in template {{tl2|floruit}}: wrong value for the circa option]</small>}} }}|}}{{trim|{{{2|{{{date2|}}}}}}}}{{#if:{{{unit|}}}|{{#switch:{{{unit|}}}|c|c-c= century|m|m-m= millennium| {{error|message=<small>[error in template {{tl2|floruit}}: wrong value for the date-unit option]</small>}}}}}}{{#if:{{{sfx|}}}|{{#switch:{{{sfx|}}}|ad|b-a= {{#ifeq:{{{sfx-lk|}}}|yes|[[Anno Domini|AD]]|AD}}|bc= {{#ifeq:{{{sfx-lk|}}}|yes|[[Anno Domini|BC]]|BC}}|bce= {{#ifeq:{{{sfx-lk|}}}|yes|[[Common Era|BCE]]|BCE}}|ce|b-c= {{#ifeq:{{{sfx-lk|}}}|yes|[[Common Era|CE]]|CE}}|{{error|message= <small>[error in template {{tl2|floruit}}: wrong or unsupported suffix]</small>}}}}}}|{{error|message= <small>[error in template {{tl2|floruit}}: date range requires a start date]</small>}}}}}}{{#if:{{{1|{{{date|}}}}}}|{{#ifeq:{{{b|}}}|yes|)}}}}{{#ifeq:{{{wrap|}}}|yes||</span>}}</includeonly><!--End {{floruit}}.--><noinclude> |
{{floruit/sandbox|2010s|pfx=flor}}<br/>{{floruit/sandbox|2010s|b=yes|pfx=active|pfx-lk=abbr}}<br/>{{floruit/sandbox|2010s|b=yes|pfx=active|pfx-style=italics|pfx-lk=no}}<br/> | {{floruit/sandbox|2010s|pfx=flor}}<br/>{{floruit/sandbox|2010s|b=yes|pfx=active|pfx-lk=abbr}}<br/>{{floruit/sandbox|2010s|b=yes|pfx=active|pfx-style=italics|pfx-lk=no}}<br/> | ||
</noinclude> | </noinclude> | ||