Difference between revisions of "Template:Commit"
Jump to navigation
Jump to search
m (created by WikiTask 2020-02-07T14:28:01Z) |
|||
Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
<!-- | <!-- | ||
− | -- Copyright (C) 2015- | + | -- Copyright (C) 2015-2018 BITPlan GmbH |
-- | -- | ||
-- Pater-Delp-Str. -- 1 | -- Pater-Delp-Str. -- 1 | ||
Line 140: | Line 140: | ||
}} | }} | ||
{{#switch: {{{viewmode|}}} | {{#switch: {{{viewmode|}}} | ||
+ | |hidden= | ||
|masterdetail= | |masterdetail= | ||
|tableheader={{{!}} class='wikitable' | |tableheader={{{!}} class='wikitable' | ||
Line 186: | Line 187: | ||
[[Category:Template]] | [[Category:Template]] | ||
− | </noinclude><includeonly> | + | </noinclude><includeonly>{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Commit<br>|}} |
{{#if:{{{?host|}}}|"{{{?host}}}" is host of it <br>|}} | {{#if:{{{?host|}}}|"{{{?host}}}" is host of it <br>|}} | ||
{{#if:{{{?path|}}}|"{{{?path}}}" is path of it <br>|}} | {{#if:{{{?path|}}}|"{{{?path}}}" is path of it <br>|}} | ||
Line 198: | Line 199: | ||
|subobject={{#subobject:- | |subobject={{#subobject:- | ||
|isA=Commit | |isA=Commit | ||
− | |Commit host={{{host| | + | |Commit host={{{host|}}} |
− | |Commit path={{{path| | + | |Commit path={{{path|}}} |
|Commit project={{{project|}}} | |Commit project={{{project|}}} | ||
|Commit subject={{{subject|}}} | |Commit subject={{{subject|}}} | ||
Line 218: | Line 219: | ||
}} | }} | ||
{{#switch: {{{viewmode|}}} | {{#switch: {{{viewmode|}}} | ||
− | | | + | |hidden= |
|masterdetail= | |masterdetail= | ||
|tableheader={{{!}} class='wikitable' | |tableheader={{{!}} class='wikitable' | ||
Line 258: | Line 259: | ||
{{!}}} | {{!}}} | ||
}} | }} | ||
− | }}</includeonly> | + | }} |
+ | </includeonly> |
Revision as of 15:28, 7 February 2020
This is the template Commit.
It belongs to the concept/topic Concept:Commit
You may find examples for the use of this template via the List of Commits.
Usage
storemode subobject
{{Commit |host= |path= |project= |subject= |name= |date= |hash= |storemode=subobject }}
storemode property
{{Commit |host= |path= |project= |subject= |name= |date= |hash= |storemode=property }}
storemode none
{{Commit |host= |path= |project= |subject= |name= |date= |hash= |storemode=none }}
viewmode tableheader
{{Commit |host= |path= |project= |subject= |name= |date= |hash= |viewmode=tableheader }}
viewmode tablerow
{{Commit |host= |path= |project= |subject= |name= |date= |hash= |viewmode=tablerow }}
{{Commit |host= |path= |project= |subject= |name= |date= |hash= |viewmode=tablefooter }}
viewmode labelfield
{{Commit |host= |path= |project= |subject= |name= |date= |hash= |viewmode=labelfield }}
Source (pretty printed)
{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Commit<br>|}}
{{#if:{{{?host|}}}|"{{{?host}}}" is host of it <br>|}}
{{#if:{{{?path|}}}|"{{{?path}}}" is path of it <br>|}}
{{#if:{{{?project|}}}|"{{{?project}}}" is project of it <br>|}}
{{#if:{{{?subject|}}}|"{{{?subject}}}" is subject of it <br>|}}
{{#if:{{{?name|}}}|"{{{?name}}}" is name of it <br>|}}
{{#if:{{{?date|}}}|"{{{?date}}}" is date of it <br>|}}
{{#if:{{{?hash|}}}|"{{{?hash}}}" is hash of it <br>|}}
|#default={{#switch:{{{storemode|}}}
|none=
|subobject={{#subobject:-
|isA=Commit
|Commit host={{{host|}}}
|Commit path={{{path|}}}
|Commit project={{{project|}}}
|Commit subject={{{subject|}}}
|Commit name={{{name|}}}
|Commit date={{{date|}}}
|Commit hash={{{hash|}}}
}}
|#default={{#set:
|isA=Commit
|Commit host={{{host|}}}
|Commit path={{{path|}}}
|Commit project={{{project|}}}
|Commit subject={{{subject|}}}
|Commit name={{{name|}}}
|Commit date={{{date|}}}
|Commit hash={{{hash|}}}
}}
}}
{{#switch: {{{viewmode|}}}
|hidden=
|masterdetail=
|tableheader={{{!}} class='wikitable'
!host!!path!!project!!subject!!name!!date!!hash
{{!}}-
|tablerow=
{{!}}{{{host|}}}{{!}}{{!}}{{{path|}}}{{!}}{{!}}{{{project|}}}{{!}}{{!}}{{{subject|}}}{{!}}{{!}}{{{name|}}}{{!}}{{!}}{{{date|}}}{{!}}{{!}}{{{hash|}}}
{{!}}-
|tablefooter={{!}}}
|labelfield=
host={{#if:{{{host|}}}|{{{host|}}}|}}<br>path={{#if:{{{path|}}}|{{{path|}}}|}}<br>project={{#if:{{{project|}}}|{{{project|}}}|}}<br>subject={{#if:{{{subject|}}}|{{{subject|}}}|}}<br>name={{#if:{{{name|}}}|{{{name|}}}|}}<br>date={{#if:{{{date|}}}|{{{date|}}}|}}<br>hash={{#if:{{{hash|}}}|{{{hash|}}}|}}<br>|#default={{{!}} class='wikitable'
! colspan='2' {{!}}Commit
{{!}}-
{{#switch:{{{storemode|}}}|property=
! colspan='2' style='text-align:left' {{!}} {{Icon|name=edit|size=24}}{{Link|target=Special:FormEdit/Commit/{{FULLPAGENAME}}|title=edit}}
{{!}}-
}}
!host
{{!}} {{#if:{{{host|}}}|{{{host|}}}|}}
{{!}}-
!path
{{!}} {{#if:{{{path|}}}|{{{path|}}}|}}
{{!}}-
!project
{{!}} {{#if:{{{project|}}}|{{{project|}}}|}}
{{!}}-
!subject
{{!}} {{#if:{{{subject|}}}|{{{subject|}}}|}}
{{!}}-
!name
{{!}} {{#if:{{{name|}}}|{{{name|}}}|}}
{{!}}-
!date
{{!}} {{#if:{{{date|}}}|{{{date|}}}|}}
{{!}}-
!hash
{{!}} {{#if:{{{hash|}}}|{{{hash|}}}|}}
{{!}}-
{{!}}}
}}
}}
Source
Click on "Edit" to edit the noinclude-part Source of this Template.