Template:Commit

From BITPlan cr Wiki
Revision as of 12:20, 31 October 2020 by Wf (talk | contribs) (pushed from http://media.bitplan.com)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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
}}

viewmode tablefooter

{{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|}}}
|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
{{!}}&nbsp;{{#if:{{{host|}}}|{{{host|}}}|}}
{{!}}-
!path
{{!}}&nbsp;{{#if:{{{path|}}}|{{{path|}}}|}}
{{!}}-
!project
{{!}}&nbsp;{{#if:{{{project|}}}|{{{project|}}}|}}
{{!}}-
!subject
{{!}}&nbsp;{{#if:{{{subject|}}}|{{{subject|}}}|}}
{{!}}-
!name
{{!}}&nbsp;{{#if:{{{name|}}}|{{{name|}}}|}}
{{!}}-
!date
{{!}}&nbsp;{{#if:{{{date|}}}|{{{date|}}}|}}
{{!}}-
!hash
{{!}}&nbsp;{{#if:{{{hash|}}}|{{{hash|}}}|}}
{{!}}-
{{!}}}
}}
}}

Source

Click on "Edit" to edit the noinclude-part Source of this Template.