Template:Tool

From BITPlan profiwiki Wiki
Jump to navigation Jump to search

This is the template Tool. It belongs to the concept/topic Concept:Tool
You may find examples for the use of this template via the List of Tools.

Usage

storemode subobject

{{Tool
|name=
|logo=
|logourl=
|website=
|wikipediaurl=
|stackoverflow=
|stackoverflowQuestionCount=
|category=
|pollResult=
|storemode=subobject
}}

storemode property

{{Tool
|name=
|logo=
|logourl=
|website=
|wikipediaurl=
|stackoverflow=
|stackoverflowQuestionCount=
|category=
|pollResult=
|storemode=property
}}

storemode none

{{Tool
|name=
|logo=
|logourl=
|website=
|wikipediaurl=
|stackoverflow=
|stackoverflowQuestionCount=
|category=
|pollResult=
|storemode=none
}}


viewmode tableheader

{{Tool
|name=
|logo=
|logourl=
|website=
|wikipediaurl=
|stackoverflow=
|stackoverflowQuestionCount=
|category=
|pollResult=
|viewmode=tableheader
}}

viewmode tablerow

{{Tool
|name=
|logo=
|logourl=
|website=
|wikipediaurl=
|stackoverflow=
|stackoverflowQuestionCount=
|category=
|pollResult=
|viewmode=tablerow
}}

viewmode tablefooter

{{Tool
|name=
|logo=
|logourl=
|website=
|wikipediaurl=
|stackoverflow=
|stackoverflowQuestionCount=
|category=
|pollResult=
|viewmode=tablefooter
}}

viewmode labelfield

{{Tool
|name=
|logo=
|logourl=
|website=
|wikipediaurl=
|stackoverflow=
|stackoverflowQuestionCount=
|category=
|pollResult=
|viewmode=labelfield
}}

Source

{{#switch:{{{userparam|}}}|sidif={{#if:{{{?pageid|}}}|{{#replace:{{#replace:{{{?pageid}}}|#|}}|-|_}} isA Tool<br>|}}
{{#if:{{{?name|}}}|"{{{?name}}}" is name of it <br>|}}
{{#if:{{{?logo|}}}|"{{{?logo}}}" is logo of it <br>|}}
{{#if:{{{?logourl|}}}|"{{{?logourl}}}" is logourl of it <br>|}}
{{#if:{{{?website|}}}|"{{{?website}}}" is website of it <br>|}}
{{#if:{{{?wikipediaurl|}}}|"{{{?wikipediaurl}}}" is wikipediaurl of it <br>|}}
{{#if:{{{?stackoverflow|}}}|"{{{?stackoverflow}}}" is stackoverflow of it <br>|}}
{{#if:{{{?stackoverflowQuestionCount|}}}|"{{{?stackoverflowQuestionCount}}}" is stackoverflowQuestionCount of it <br>|}}
{{#if:{{{?category|}}}|"{{{?category}}}" is category of it <br>|}}
{{#if:{{{?pollResult|}}}|"{{{?pollResult}}}" is pollResult of it <br>|}}
|#default={{#switch:{{{storemode|}}}
|none=

|{{#set:
|isA=Tool
|Tool name={{{name|}}}
|Tool logo={{{logo|}}}
|Tool logourl={{{logourl|}}}
|Tool website={{{website|}}}
|Tool wikipediaurl={{{wikipediaurl|}}}
|Tool stackoverflow={{{stackoverflow|}}}
|Tool stackoverflowQuestionCount={{{stackoverflowQuestionCount|}}}
|Tool category={{{category|}}}
|Tool pollResult={{{pollResult|}}}
}}
}}
{{#switch: {{{viewmode|}}}
|masterdetail=
|tableheader={{{!}} class='wikitable'
!name!!logo!!logourl!!website!!wikipediaurl!!stackoverflow!!stackoverflowQuestionCount!!category!!pollResult
{{!}}-
|tablerow=
{{!}}{{{name|}}}{{!}}{{!}}{{{logo|}}}{{!}}{{!}}{{{logourl|}}}{{!}}{{!}}{{{website|}}}{{!}}{{!}}{{{wikipediaurl|}}}{{!}}{{!}}{{{stackoverflow|}}}{{!}}{{!}}{{{stackoverflowQuestionCount|}}}{{!}}{{!}}{{{category|}}}{{!}}{{!}}{{{pollResult|}}}
{{!}}-
|tablefooter={{!}}}
|labelfield=
name={{#if:{{{name|}}}|{{{name|}}}|}}<br>logo={{#if:{{{logo|}}}|[[{{{logo|}}}]]|}}<br>logourl={{#if:{{{logourl|}}}|{{{logourl|}}}|}}<br>website={{#if:{{{website|}}}|{{{website|}}}|}}<br>wikipediaurl={{#if:{{{wikipediaurl|}}}|{{{wikipediaurl|}}}|}}<br>stackoverflow={{#if:{{{stackoverflow|}}}|{{{stackoverflow|}}}|}}<br>stackoverflowQuestionCount={{#if:{{{stackoverflowQuestionCount|}}}|{{{stackoverflowQuestionCount|}}}|}}<br>category={{#if:{{{category|}}}|{{{category|}}}|}}<br>pollResult={{#if:{{{pollResult|}}}|{{{pollResult|}}}|}}<br>|#default={{{!}} class='wikitable'
! colspan='2' {{!}}Tool
{{!}}-
!name
{{!}}&nbsp;{{#if:{{{name|}}}|{{{name|}}}|}}
{{!}}-
!logo
{{!}}&nbsp;{{#if:{{{logo|}}}|[[{{{logo|}}}]]|}}
{{!}}-
!logourl
{{!}}&nbsp;{{#if:{{{logourl|}}}|{{{logourl|}}}|}}
{{!}}-
!website
{{!}}&nbsp;{{#if:{{{website|}}}|{{{website|}}}|}}
{{!}}-
!wikipediaurl
{{!}}&nbsp;{{#if:{{{wikipediaurl|}}}|{{{wikipediaurl|}}}|}}
{{!}}-
!stackoverflow link
{{!}}&nbsp;{{#if:{{{stackoverflow|}}}|{{{stackoverflow|}}}|}}
{{!}}-
!no of stackoverflow questions
{{!}}&nbsp;{{#if:{{{stackoverflowQuestionCount|}}}|{{{stackoverflowQuestionCount|}}}|}}
{{!}}-
!Category
{{!}}&nbsp;{{#if:{{{category|}}}|{{{category|}}}|}}
{{!}}-
!pollResult
{{!}}&nbsp;{{#if:{{{pollResult|}}}|{{{pollResult|}}}|}}
{{!}}-
{{!}}}
}}
}}
[[Category:Tool]]

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