More actions
Ttenbergen (talk | contribs) Created page with " <noinclude> <templatedata> { "params": { "software": { "description": "Software installed on this PC", "type": "wiki-page-name", "suggested": true }, "room": { "description": "Which of the Rooms the PC is in", "type": "wiki-page-name", "suggested": true }, "coordinates": { "label": "Coordinates for image map", "type": "string", "suggested": true }, "other details": { "label": "General info about this PC" }, "tools dri..." |
Ttenbergen (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<noinclude>== Usage == | |||
<nowiki>{{</nowiki>{{PAGENAME}}<nowiki>}}</nowiki> | |||
and then "edit with form" | |||
See [[:Template:{{PAGENAME}}/Details]] for more info. | |||
Edit pages with [[Form:PC]]. | |||
==Parameters== | |||
<templatedata> | <templatedata> | ||
{ | { | ||
Line 14: | Line 21: | ||
"suggested": true | "suggested": true | ||
}, | }, | ||
" | "other_details": { | ||
"label": "General info about this PC" | "label": "General info about this PC" | ||
}, | }, | ||
" | "tools_driven_by": { | ||
"description": "Tools directly driven by this PC.", | "description": "Tools directly driven by this PC.", | ||
"example": "the [[ShopBot 3-Axis CNC Mill]] is directly driven by its PC, the [[Prusa i3 MK3S+ FFF 3D printer]] is not", | "example": "the [[ShopBot 3-Axis CNC Mill]] is directly driven by its PC, the [[Prusa i3 MK3S+ FFF 3D printer]] is not", | ||
Line 32: | Line 34: | ||
"paramOrder": [ | "paramOrder": [ | ||
"software", | "software", | ||
" | "tools_driven_by", | ||
"room", | "room", | ||
" | "other_details" | ||
], | ], | ||
"format": "block" | "format": "block" | ||
} | } | ||
</templatedata> | </templatedata> | ||
==Cargo Declaration== | |||
{{#cargo_declare: | |||
_table=pc | |||
|software=List (;) of page | |||
|tools_driven_by=List (;) of page | |||
|room=page | |||
}} | |||
</noinclude> | </noinclude> | ||
<includeonly> | |||
<table class="infobox"> | |||
<tr class="infobox-header"> | |||
<th colspan="2">[[PC]]</th> | |||
</tr> | |||
<tr> | |||
<th class="infobox-label">[[Tools]] driven by</th> | |||
<td>{{#cargo_query: | |||
|tables=PC | |||
|fields=tools_driven_by | |||
|where=_pageName = "{{PAGENAME}}" | |||
|order by=tools_driven_by | |||
|default=no tools listed as driven by this PC | |||
|format=ul | |||
}}</td> | |||
</tr> | |||
<tr> | |||
<th class="infobox-label">[[Software]]</th> | |||
<td>{{#cargo_query: | |||
|tables=PC | |||
|fields=software | |||
|where=_pageName = "{{PAGENAME}}" | |||
|order by=software | |||
|default=no software listed for this PC | |||
|format=ul | |||
}}</td> | |||
</tr><tr> | |||
<th class="infobox-label">[[Room]]</th> | |||
<td>room</td> | |||
</tr> | |||
</table> | |||
The {{PAGENAME}} is one of the [[Computers for member use]]. | |||
{{{other_details|}} | |||
</includeonly><!-- | |||
-->__NOCACHE__<!-- | |||
-->{{#cargo_store:}}<!-- | |||
-->[[Category:PC]]<!-- | |||
-->{{#default_form:PC}}<!-- | |||
--></includeonly> |
Revision as of 22:58, 2024 August 16
Usage
{{PC}}
and then "edit with form"
See Template:PC/Details for more info.
Edit pages with Form:PC.
Parameters
This template encodes information about [[Computers for member use]] at North Forge, such as what software is on them, which tools they are associated with, and where they are (room and coordinates for map).
Parameter | Description | Type | Status | |
---|---|---|---|---|
software | software | Software installed on this PC | Page name | suggested |
tools_driven_by | tools_driven_by | Tools directly driven by this PC.
| Page name | suggested |
room | room | Which of the [[Rooms]] the PC is in | Page name | suggested |
General info about this PC | other_details | no description | Unknown | optional |
Cargo Declaration
This template defines the table "pc". View table.</includeonly>