Difference between revisions of "Template:SimpleGraphModuleMarkup"

From BITPlan Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
__TOC__
 
__TOC__
This template is used in three modes:
+
This template is used in six modes:
 
# intro
 
# intro
 
# outro
 
# outro
# table row
+
# row
 +
# mintro
 +
# moutro
 +
# mrow
  
 
the mode is given as the userparam parameter for this template
 
the mode is given as the userparam parameter for this template
Line 10: Line 13:
 
<pre>
 
<pre>
 
{{SimpleGraphModuleMarkup|userparam=intro}}
 
{{SimpleGraphModuleMarkup|userparam=intro}}
 +
{{#ask: [[Concept:SimpleGraphModule]]
 +
|mainlabel=SimpleGraphModule
 +
| ?SimpleGraphModule name = name
 +
| ?SimpleGraphModule logo = logo
 +
| ?SimpleGraphModule url = url
 +
| ?SimpleGraphModule documentation = documentation
 +
|sort=SimpleGraphModule name
 +
|format=template
 +
|link=none
 +
|userparam=row
 +
|named args=yes
 +
|template=SimpleGraphModuleMarkup
 +
}}
 
{{SimpleGraphModuleMarkup|userparam=outro}}
 
{{SimpleGraphModuleMarkup|userparam=outro}}
 
</pre>
 
</pre>
 +
== Example ==
 +
{{SimpleGraphModuleMarkup|userparam=intro}}
 +
{{#ask: [[Concept:SimpleGraphModule]]
 +
|mainlabel=SimpleGraphModule
 +
| ?SimpleGraphModule name = name
 +
| ?SimpleGraphModule logo = logo
 +
| ?SimpleGraphModule url = url
 +
| ?SimpleGraphModule documentation = documentation
 +
|sort=SimpleGraphModule name
 +
|format=template
 +
|link=none
 +
|userparam=row
 +
|named args=yes
 +
|template=SimpleGraphModuleMarkup
 +
|limit=3
 +
}}
 +
{{SimpleGraphModuleMarkup|userparam=outro}}
 +
 
</noinclude><includeonly>{{#switch:{{{userparam|}}}|intro={{{!}} class="wikitable sortable"
 
</noinclude><includeonly>{{#switch:{{{userparam|}}}|intro={{{!}} class="wikitable sortable"
 
{{!}}-
 
{{!}}-
! Icon
 
 
! Name
 
! Name
| System wrapped
+
! System wrapped
| API exposed
 
 
{{!}}-
 
{{!}}-
 
|outro={{!}}}
 
|outro={{!}}}
 
|row={{!}}-
 
|row={{!}}-
{{!}}style="text-align: center; width: 150px" {{!}} [[{{{?logo|}}}|center|150px]]
+
{{!}}style="text-align: center; width: 120px" {{!}} [[{{{?logo|}}}|100px]]  
{{!}}style="text-align: left" {{!}} [[{{{?name|}}}]]
+
{{!}}style="text-align: left" {{!}} [{{{?url|}}} {{{?name|}}}]  
{{!}}style="text-align: left" {{!}} [[{{{?url|}}}]]  
 
 
{{!}}-
 
{{!}}-
 
}}</includeonly>
 
}}</includeonly>

Revision as of 07:52, 21 February 2018

This template is used in six modes:

  1. intro
  2. outro
  3. row
  4. mintro
  5. moutro
  6. mrow

the mode is given as the userparam parameter for this template

Usage

{{SimpleGraphModuleMarkup|userparam=intro}}
{{#ask: [[Concept:SimpleGraphModule]]
|mainlabel=SimpleGraphModule
| ?SimpleGraphModule name = name
| ?SimpleGraphModule logo = logo
| ?SimpleGraphModule url = url
| ?SimpleGraphModule documentation = documentation
|sort=SimpleGraphModule name
|format=template
|link=none
|userparam=row
|named args=yes
|template=SimpleGraphModuleMarkup
}}
{{SimpleGraphModuleMarkup|userparam=outro}}

Example

... further results
Name System wrapped