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 |
||
(9 intermediate revisions by the same user not shown) | |||
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 10: | Line 17: | ||
}, | }, | ||
"room": { | "room": { | ||
"description": " | "description": "which room at North Forge", | ||
"label": "Room", | |||
"type": "wiki-page-name", | "type": "wiki-page-name", | ||
"suggested": true | "suggested": true, | ||
"required": 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 36: | ||
"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> | |||
{{#invoke:String | splitAndLink | source={{{tools_driven_by|}}} }}</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> | |||
* {{#ifexist: {{{room}}} | [[{{{room}}}]] | No room assigned }}</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> |
Latest revision as of 23:44, 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 room at North Forge | Page name | required |
General info about this PC | other_details | no description | Unknown | optional |
Cargo Declaration
This template defines the table "pc". View table.