Difference between revisions of "Template:Event"

From BITPlan cr Wiki
Jump to navigation Jump to search
m (created by WikiTask 2020-07-25T17:52:47Z)
(modified by py-yprinciple-gen 0.2.6)
 
(12 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=
 +
|ordinal=
 +
|description=
 +
|title=
 
|homepage=
 
|homepage=
 +
|wikidataid=
 +
|series=
 +
|colocated_with=
 
|city=
 
|city=
|state=
 
 
|country=
 
|country=
|storemode=subobject
+
|region=
 +
|storemode=property or subjobject or none"
 
}}
 
}}
</pre>
+
[[Category:Template]]
 
+
</noinclude><includeonly>{{#switch:{{{storemode|}}}
==== storemode property ====
 
<pre>{{Event
 
|acronym=
 
|homepage=
 
|city=
 
|state=
 
|country=
 
|storemode=property
 
}}
 
</pre>
 
 
 
==== storemode none ====
 
<pre>{{Event
 
|acronym=
 
|homepage=
 
|city=
 
|state=
 
|country=
 
|storemode=none
 
}}
 
</pre>
 
 
 
 
 
==== viewmode tableheader ====
 
<pre>{{Event
 
|acronym=
 
|homepage=
 
|city=
 
|state=
 
|country=
 
|viewmode=tableheader
 
}}
 
</pre>
 
 
 
==== viewmode tablerow ====
 
<pre>{{Event
 
|acronym=
 
|homepage=
 
|city=
 
|state=
 
|country=
 
|viewmode=tablerow
 
}}
 
</pre>
 
 
 
==== viewmode tablefooter ====
 
<pre>{{Event
 
|acronym=
 
|homepage=
 
|city=
 
|state=
 
|country=
 
|viewmode=tablefooter
 
}}
 
</pre>
 
 
 
==== viewmode labelfield ====
 
<pre>{{Event
 
|acronym=
 
|homepage=
 
|city=
 
|state=
 
|country=
 
|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>|}}
 
{{#if:{{{?homepage|}}}|"{{{?homepage}}}" is homepage of it <br>|}}
 
{{#if:{{{?city|}}}|"{{{?city}}}" is city of it <br>|}}
 
{{#if:{{{?state|}}}|"{{{?state}}}" is state of it <br>|}}
 
{{#if:{{{?country|}}}|"{{{?country}}}" is country 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 homepage={{{homepage|}}}
 +
|Event wikidataid={{{wikidataid|}}}
 +
|Event series={{{series|}}}
 +
|Event colocated_with={{{colocated_with|}}}
 
|Event city={{{city|}}}
 
|Event city={{{city|}}}
|Event state={{{state|}}}
 
 
|Event country={{{country|}}}
 
|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 homepage={{{homepage|}}}
 +
|Event wikidataid={{{wikidataid|}}}
 +
|Event series={{{series|}}}
 +
|Event colocated_with={{{colocated_with|}}}
 
|Event city={{{city|}}}
 
|Event city={{{city|}}}
|Event state={{{state|}}}
 
 
|Event country={{{country|}}}
 
|Event country={{{country|}}}
 +
|Event region={{{region|}}}
 
}}
 
}}
 
}}
 
}}
{{#switch: {{{viewmode|}}}
+
{{#switch:{{{viewmode|}}}|hidden=|masterdetail=
|hidden=
+
= colocated Events =
|masterdetail=
+
{{#ask:[[Concept:Event]][[Event colocated_with::{{FULLPAGENAME}}]]
|tableheader={{{!}} class='wikitable'
+
| ?Event acronym = acronym
!acronym!!homepage!!city!!state!!country
+
| ?Event ordinal = ordinal
{{!}}-
+
| ?Event description = description
|tablerow=
+
| ?Event title = title
{{!}}{{{acronym|}}}{{!}}{{!}}{{{homepage|}}}{{!}}{{!}}{{{city|}}}{{!}}{{!}}{{{state|}}}{{!}}{{!}}{{{country|}}}
+
| ?Event homepage = homepage
{{!}}-
+
| ?Event wikidataid = wikidataid
|tablefooter={{!}}}
+
| ?Event series = series
|labelfield=
+
| ?Event colocated_with = colocated_with
acronym={{#if:{{{acronym|}}}|{{{acronym|}}}|}}<br>homepage={{#if:{{{homepage|}}}|{{{homepage|}}}|}}<br>city={{#if:{{{city|}}}|[[{{{city|}}}]]|}}<br>state={{#if:{{{state|}}}|[[{{{state|}}}]]|}}<br>country={{#if:{{{country|}}}|[[{{{country|}}}]]|}}<br>|#default={{{!}} class='wikitable'
+
| ?Event city = city
 +
| ?Event country = country
 +
| ?Event region = region
 +
}}|#default={{{!}} class='wikitable'
 
! colspan='2' {{!}}Event
 
! colspan='2' {{!}}Event
 
{{!}}-
 
{{!}}-
Line 137: Line 89:
 
{{!}}-
 
{{!}}-
 
}}
 
}}
!acronym
+
![[Property:Event acronym|acronym]]
{{!}}&nbsp;{{#if:{{{acronym|}}}|{{{acronym|}}}|}}
+
{{!}}&nbsp;{{#if:{{{acronym|}}}|{{{acronym}}}|}}
 
{{!}}-
 
{{!}}-
!homepage
+
![[Property:Event ordinal|ordinal]]
{{!}}&nbsp;{{#if:{{{homepage|}}}|{{{homepage|}}}|}}
+
{{!}}&nbsp;{{#if:{{{ordinal|}}}|{{{ordinal}}}|}}
 
{{!}}-
 
{{!}}-
!city
+
![[Property:Event description|description]]
{{!}}&nbsp;{{#if:{{{city|}}}|[[{{{city|}}}]]|}}
+
{{!}}&nbsp;{{#if:{{{description|}}}|{{{description}}}|}}
 
{{!}}-
 
{{!}}-
!state
+
![[Property:Event title|title]]
{{!}}&nbsp;{{#if:{{{state|}}}|[[{{{state|}}}]]|}}
+
{{!}}&nbsp;{{#if:{{{title|}}}|{{{title}}}|}}
 
{{!}}-
 
{{!}}-
!country
+
![[Property:Event homepage|homepage]]
{{!}}&nbsp;{{#if:{{{country|}}}|[[{{{country|}}}]]|}}
+
{{!}}&nbsp;{{#if:{{{homepage|}}}|{{{homepage}}}|}}
 
{{!}}-
 
{{!}}-
{{!}}}
+
![[Property:Event wikidataid|wikidataid]]
}}
+
{{!}}&nbsp;{{#if:{{{wikidataid|}}}|{{{wikidataid}}}|}}{{#show: {{FULLPAGENAME}}|?Event wikidataid}}
}}
 
[[Category:Event]]{{#default_form:Event}}
 
</source>
 
=== Source ===
 
Click on "Edit" to edit the noinclude-part Source of this Template.
 
[[Category:Template]]
 
 
 
</noinclude><includeonly>{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Event<br>|}}
 
{{#if:{{{?acronym|}}}|"{{{?acronym}}}" is acronym of it <br>|}}
 
{{#if:{{{?homepage|}}}|"{{{?homepage}}}" is homepage of it <br>|}}
 
{{#if:{{{?city|}}}|"{{{?city}}}" is city of it <br>|}}
 
{{#if:{{{?state|}}}|"{{{?state}}}" is state of it <br>|}}
 
{{#if:{{{?country|}}}|"{{{?country}}}" is country of it <br>|}}
 
|#default={{#switch:{{{storemode|}}}
 
|none=
 
|subobject={{#subobject:-
 
|isA=Event
 
|Event acronym={{{acronym|}}}
 
|Event homepage={{{homepage|}}}
 
|Event city={{{city|}}}
 
|Event state={{{state|}}}
 
|Event country={{{country|}}}
 
}}
 
|#default={{#set:
 
|isA=Event
 
|Event acronym={{{acronym|}}}
 
|Event homepage={{{homepage|}}}
 
|Event city={{{city|}}}
 
|Event state={{{state|}}}
 
|Event country={{{country|}}}
 
}}
 
}}
 
{{#switch: {{{viewmode|}}}
 
|hidden=
 
|masterdetail=
 
|tableheader={{{!}} class='wikitable'
 
!acronym!!homepage!!city!!state!!country
 
 
{{!}}-
 
{{!}}-
|tablerow=
+
![[Property:Event series|series]]
{{!}}{{{acronym|}}}{{!}}{{!}}{{{homepage|}}}{{!}}{{!}}{{{city|}}}{{!}}{{!}}{{{state|}}}{{!}}{{!}}{{{country|}}}
+
{{!}}&nbsp;{{#if:{{{series|}}}|{{{series}}}|}}{{#show: {{FULLPAGENAME}}|?Event series}}
 
{{!}}-
 
{{!}}-
|tablefooter={{!}}}
+
![[Property:Event colocated_with|colocated_with]]
|labelfield=
+
{{!}}&nbsp;{{#if:{{{colocated_with|}}}|{{{colocated_with}}}|}}{{#show: {{FULLPAGENAME}}|?Event colocated_with}}
acronym={{#if:{{{acronym|}}}|{{{acronym|}}}|}}<br>homepage={{#if:{{{homepage|}}}|{{{homepage|}}}|}}<br>city={{#if:{{{city|}}}|[[{{{city|}}}]]|}}<br>state={{#if:{{{state|}}}|[[{{{state|}}}]]|}}<br>country={{#if:{{{country|}}}|[[{{{country|}}}]]|}}<br>|#default={{{!}} class='wikitable'
 
! colspan='2' {{!}}Event
 
 
{{!}}-
 
{{!}}-
{{#switch:{{{storemode|}}}|property=
+
![[Property:Event city|city]]
! colspan='2' style='text-align:left' {{!}} {{Icon|name=edit|size=24}}{{Link|target=Special:FormEdit/Event/{{FULLPAGENAME}}|title=edit}}
+
{{!}}&nbsp;{{#if:{{{city|}}}|{{{city}}}|}}{{#show: {{FULLPAGENAME}}|?Event city}}
 
{{!}}-
 
{{!}}-
}}
+
![[Property:Event country|country]]
!acronym
+
{{!}}&nbsp;{{#if:{{{country|}}}|{{{country}}}|}}→{{#show: {{FULLPAGENAME}}|?Event country}}
{{!}}&nbsp;{{#if:{{{acronym|}}}|{{{acronym|}}}|}}
 
 
{{!}}-
 
{{!}}-
!homepage
+
![[Property:Event region|region]]
{{!}}&nbsp;{{#if:{{{homepage|}}}|{{{homepage|}}}|}}
+
{{!}}&nbsp;{{#if:{{{region|}}}|{{{region}}}|}}{{#show: {{FULLPAGENAME}}|?Event region}}
{{!}}-
 
!city
 
{{!}}&nbsp;{{#if:{{{city|}}}|[[{{{city|}}}]]|}}
 
{{!}}-
 
!state
 
{{!}}&nbsp;{{#if:{{{state|}}}|[[{{{state|}}}]]|}}
 
{{!}}-
 
!country
 
{{!}}&nbsp;{{#if:{{{country|}}}|[[{{{country|}}}]]|}}
 
 
{{!}}-
 
{{!}}-
 
{{!}}}
 
{{!}}}
 
}}
 
}}
}}
+
[[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  →