Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:PC: Difference between revisions

Template page
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..."
 
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"


<noinclude>
See [[:Template:{{PAGENAME}}/Details]] for more info.
 
Edit pages with [[Form:PC]].
 
==Parameters==
<templatedata>
<templatedata>
{
{
Line 10: Line 17:
},
},
"room": {
"room": {
"description": "Which of the [[Rooms]] the PC is in",
"description": "which room at North Forge",
"label": "Room",
"type": "wiki-page-name",
"type": "wiki-page-name",
"suggested": true
"suggested": true,
"required": true
},
},
"coordinates": {
"other_details": {
"label": "Coordinates for image map",
"type": "string",
"suggested": true
},
"other details": {
"label": "General info about this PC"
"label": "General info about this PC"
},
},
"tools driven by": {
"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",
"tools_driven_by",
"room",
"room",
"coordinates",
"other_details"
"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).

Template parameters[Edit template data]

This template prefers block formatting of parameters.

ParameterDescriptionTypeStatus
softwaresoftware

Software installed on this PC

Page namesuggested
tools_driven_bytools_driven_by

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
Page namesuggested
Roomroom

which room at North Forge

Page namerequired
General info about this PCother_details

no description

Unknownoptional

Cargo Declaration

This template defines the table "pc". View table.