Difference between revisions of "Template:Event"

From BITPlan cr Wiki
Jump to navigation Jump to search
m (created by WikiTask 2020-07-22T12:41:58Z)
(modified by py-yprinciple-gen 0.2.6)
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
+
<noinclude><!--
<!--
+
   --     Copyright (C) 2015-2023 BITPlan GmbH
   -- Copyright (C) 2015-2020 BITPlan GmbH
 
 
   --  
 
   --  
   -- Pater-Delp-Str. -- 1
+
   --     Pater-Delp-Str. -- 1
   -- D-47877 -- Willich-Schiefbahn
+
   --     D-47877 -- Willich-Schiefbahn
 
   --  
 
   --  
   -- http://www.bitplan.com
+
   --     http://www.bitplan.com
 
   --
 
   --
 
   --  
 
   --  
 
-->
 
-->
This is the template {{Link|target=Template:Event|title=Event}}.
+
This is the [https://wiki.bitplan.com/index.php/ProfiWiki BITPlan Y-Prinzip ProfiWiki]-Template for "Event".
It belongs to the concept/topic {{Link|target=:Concept:Event}}<br>
+
=== see also ===
You may find examples for the use of this template via the {{Link|target=List of Events}}.
+
see also
 +
* [[List of Events]]
 +
* [[Help:Event]]
 +
* [[Concept:Event]]
 +
* [[:Category:Event]]
 +
* [[:Template:Event]]
 +
* [[:Form:Event]]
 +
topic links:
 +
* [[Concept:Event]]
 +
 
 
=== Usage ===
 
=== Usage ===
==== storemode subobject ====
 
 
<pre>{{Event
 
<pre>{{Event
 
|acronym=
 
|acronym=
|storemode=subobject
+
|ordinal=
 +
|description=
 +
|title=
 +
|homepage=
 +
|wikidataid=
 +
|series=
 +
|colocated_with=
 +
|city=
 +
|country=
 +
|region=
 +
|storemode=property or subjobject or none"
 
}}
 
}}
</pre>
+
[[Category:Template]]
 
+
</noinclude><includeonly>{{#switch:{{{storemode|}}}
==== storemode property ====
 
<pre>{{Event
 
|acronym=
 
|storemode=property
 
}}
 
</pre>
 
 
 
==== storemode none ====
 
<pre>{{Event
 
|acronym=
 
|storemode=none
 
}}
 
</pre>
 
 
 
 
 
==== viewmode tableheader ====
 
<pre>{{Event
 
|acronym=
 
|viewmode=tableheader
 
}}
 
</pre>
 
 
 
==== viewmode tablerow ====
 
<pre>{{Event
 
|acronym=
 
|viewmode=tablerow
 
}}
 
</pre>
 
 
 
==== viewmode tablefooter ====
 
<pre>{{Event
 
|acronym=
 
|viewmode=tablefooter
 
}}
 
</pre>
 
 
 
==== viewmode labelfield ====
 
<pre>{{Event
 
|acronym=
 
|viewmode=labelfield
 
}}
 
</pre>
 
 
 
=== Source (pretty printed) ===
 
<source lang='html4strict'>
 
{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Event<br>|}}
 
{{#if:{{{?acronym|}}}|"{{{?acronym}}}" is acronym of it <br>|}}
 
|#default={{#switch:{{{storemode|}}}
 
 
|none=
 
|none=
 
|subobject={{#subobject:-
 
|subobject={{#subobject:-
 
|isA=Event
 
|isA=Event
 
|Event acronym={{{acronym|}}}
 
|Event acronym={{{acronym|}}}
 +
|Event ordinal={{{ordinal|}}}
 +
|Event description={{{description|}}}
 +
|Event title={{{title|}}}
 +
|Event homepage={{{homepage|}}}
 +
|Event wikidataid={{{wikidataid|}}}
 +
|Event series={{{series|}}}
 +
|Event colocated_with={{{colocated_with|}}}
 +
|Event city={{{city|}}}
 +
|Event country={{{country|}}}
 +
|Event region={{{region|}}}
 
}}
 
}}
 
|#default={{#set:
 
|#default={{#set:
 
|isA=Event
 
|isA=Event
 
|Event acronym={{{acronym|}}}
 
|Event acronym={{{acronym|}}}
 +
|Event ordinal={{{ordinal|}}}
 +
|Event description={{{description|}}}
 +
|Event title={{{title|}}}
 +
|Event homepage={{{homepage|}}}
 +
|Event wikidataid={{{wikidataid|}}}
 +
|Event series={{{series|}}}
 +
|Event colocated_with={{{colocated_with|}}}
 +
|Event city={{{city|}}}
 +
|Event country={{{country|}}}
 +
|Event region={{{region|}}}
 
}}
 
}}
 
}}
 
}}
{{#switch: {{{viewmode|}}}
+
{{#switch:{{{viewmode|}}}|hidden=|masterdetail=
|hidden=
+
= colocated Events =
|masterdetail=
+
{{#ask:[[Concept:Event]][[Event colocated_with::{{FULLPAGENAME}}]]
= city =
+
| ?Event acronym = acronym
{{#ask:[[Concept:City]][[City event::{{FULLPAGENAME}}]]
+
| ?Event ordinal = ordinal
| ?City name = name
+
| ?Event description = description
| ?City wikidataid = wikidataid
+
| ?Event title = title
| ?City event = event
+
| ?Event homepage = homepage
 
+
| ?Event wikidataid = wikidataid
|sort=City name
+
| ?Event series = series
|order=ascending
+
| ?Event colocated_with = colocated_with
}}
+
| ?Event city = city
= state =
+
| ?Event country = country
{{#ask:[[Concept:State]][[State event::{{FULLPAGENAME}}]]
+
| ?Event region = region
| ?State name = name
+
}}|#default={{{!}} class='wikitable'
| ?State wikidataid = wikidataid
 
| ?State event = event
 
 
 
|sort=State name
 
|order=ascending
 
}}
 
= country =
 
{{#ask:[[Concept:Country]][[Country event::{{FULLPAGENAME}}]]
 
| ?Country name = name
 
| ?Country wikidataid = wikidataid
 
| ?Country event = event
 
 
 
|sort=Country name
 
|order=ascending
 
}}
 
|tableheader={{{!}} class='wikitable'
 
!acronym
 
{{!}}-
 
|tablerow=
 
{{!}}{{{acronym|}}}
 
{{!}}-
 
|tablefooter={{!}}}
 
|labelfield=
 
acronym={{#if:{{{acronym|}}}|{{{acronym|}}}|}}<br>|#default={{{!}} class='wikitable'
 
 
! colspan='2' {{!}}Event
 
! colspan='2' {{!}}Event
 
{{!}}-
 
{{!}}-
Line 124: Line 89:
 
{{!}}-
 
{{!}}-
 
}}
 
}}
!acronym
+
![[Property:Event acronym|acronym]]
{{!}}&nbsp;{{#if:{{{acronym|}}}|{{{acronym|}}}|}}
+
{{!}}&nbsp;{{#if:{{{acronym|}}}|{{{acronym}}}|}}
 
{{!}}-
 
{{!}}-
{{!}}}
+
![[Property:Event ordinal|ordinal]]
}}
+
{{!}}&nbsp;{{#if:{{{ordinal|}}}|{{{ordinal}}}|}}
}}
+
{{!}}-
[[Category:Event]]{{#default_form:Event}}
+
![[Property:Event description|description]]
</source>
+
{{!}}&nbsp;{{#if:{{{description|}}}|{{{description}}}|}}
=== Source ===
+
{{!}}-
Click on "Edit" to edit the noinclude-part Source of this Template.
+
![[Property:Event title|title]]
[[Category:Template]]
+
{{!}}&nbsp;{{#if:{{{title|}}}|{{{title}}}|}}
 
+
{{!}}-
</noinclude><includeonly>{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Event<br>|}}
+
![[Property:Event homepage|homepage]]
{{#if:{{{?acronym|}}}|"{{{?acronym}}}" is acronym of it <br>|}}
+
{{!}}&nbsp;{{#if:{{{homepage|}}}|{{{homepage}}}|}}
|#default={{#switch:{{{storemode|}}}
+
{{!}}-
|none=
+
![[Property:Event wikidataid|wikidataid]]
|subobject={{#subobject:-
+
{{!}}&nbsp;{{#if:{{{wikidataid|}}}|{{{wikidataid}}}|}}→{{#show: {{FULLPAGENAME}}|?Event wikidataid}}
|isA=Event
+
{{!}}-
|Event acronym={{{acronym|}}}
+
![[Property:Event series|series]]
}}
+
{{!}}&nbsp;{{#if:{{{series|}}}|{{{series}}}|}}{{#show: {{FULLPAGENAME}}|?Event series}}
|#default={{#set:
 
|isA=Event
 
|Event acronym={{{acronym|}}}
 
}}
 
}}
 
{{#switch: {{{viewmode|}}}
 
|hidden=
 
|masterdetail=
 
= city =
 
{{#ask:[[Concept:City]][[City event::{{FULLPAGENAME}}]]
 
| ?City name = name
 
| ?City wikidataid = wikidataid
 
| ?City event = event
 
 
 
|sort=City name
 
|order=ascending
 
}}
 
= state =
 
{{#ask:[[Concept:State]][[State event::{{FULLPAGENAME}}]]
 
| ?State name = name
 
| ?State wikidataid = wikidataid
 
| ?State event = event
 
 
 
|sort=State name
 
|order=ascending
 
}}
 
= country =
 
{{#ask:[[Concept:Country]][[Country event::{{FULLPAGENAME}}]]
 
| ?Country name = name
 
| ?Country wikidataid = wikidataid
 
| ?Country event = event
 
 
 
|sort=Country name
 
|order=ascending
 
}}
 
|tableheader={{{!}} class='wikitable'
 
!acronym
 
 
{{!}}-
 
{{!}}-
|tablerow=
+
![[Property:Event colocated_with|colocated_with]]
{{!}}{{{acronym|}}}
+
{{!}}&nbsp;{{#if:{{{colocated_with|}}}|{{{colocated_with}}}|}}→{{#show: {{FULLPAGENAME}}|?Event colocated_with}}
 
{{!}}-
 
{{!}}-
|tablefooter={{!}}}
+
![[Property:Event city|city]]
|labelfield=
+
{{!}}&nbsp;{{#if:{{{city|}}}|{{{city}}}|}}→{{#show: {{FULLPAGENAME}}|?Event city}}
acronym={{#if:{{{acronym|}}}|{{{acronym|}}}|}}<br>|#default={{{!}} class='wikitable'
 
! colspan='2' {{!}}Event
 
 
{{!}}-
 
{{!}}-
{{#switch:{{{storemode|}}}|property=
+
![[Property:Event country|country]]
! colspan='2' style='text-align:left' {{!}} {{Icon|name=edit|size=24}}{{Link|target=Special:FormEdit/Event/{{FULLPAGENAME}}|title=edit}}
+
{{!}}&nbsp;{{#if:{{{country|}}}|{{{country}}}|}}{{#show: {{FULLPAGENAME}}|?Event country}}
 
{{!}}-
 
{{!}}-
}}
+
![[Property:Event region|region]]
!acronym
+
{{!}}&nbsp;{{#if:{{{region|}}}|{{{region}}}|}}→{{#show: {{FULLPAGENAME}}|?Event region}}
{{!}}&nbsp;{{#if:{{{acronym|}}}|{{{acronym|}}}|}}
 
 
{{!}}-
 
{{!}}-
 
{{!}}}
 
{{!}}}
 
}}
 
}}
}}
+
[[Category:Event]]{{#default_form:Event}}
[[Category:Event]]{{#default_form:Event}}</includeonly>
+
</includeonly>

Latest revision as of 08:16, 8 April 2023

This is the BITPlan Y-Prinzip ProfiWiki-Template for "Event".

see also

see also

topic links:

Usage

Event
acronym  
ordinal  
description  
title  
homepage  
wikidataid  →
series  →
colocated_with  →
city  →
country  →
region  →