Template:Document: Difference between revisions
No edit summary |
Add AV device support to Document template (via update-page on MediaWiki MCP Server) |
||
| Line 13: | Line 13: | ||
}} | }} | ||
{{#arraymap:{{{crt_models|}}}|,|@@@@|{{#set:Has related CRT model=@@@@}}}} | {{#arraymap:{{{crt_models|}}}|,|@@@@|{{#set:Has related CRT model=@@@@}}}} | ||
{{#arraymap:{{{av_devices|}}}|,|@@@@|{{#set:Has related AV device=@@@@}}}} | |||
[[Category:Documents]] | [[Category:Documents]] | ||
</includeonly> | </includeonly> | ||
| Line 33: | Line 34: | ||
|class=wikitable sortable | |class=wikitable sortable | ||
|mainlabel=CRT model | |mainlabel=CRT model | ||
}}|}}{{#if:{{{av_devices|}}}| | |||
<div style="margin-top: 0.5em;"><strong>Related AV Devices:</strong></div> | |||
{{#ask: | |||
[[Category:AV devices]] | |||
{{#arraymap:{{{av_devices|}}}|,|@@@@|[[@@@@]]|OR}} | |||
|?Has image#100px;x100px=Photo | |||
|?Has model code=Model | |||
|?Has device type=Type | |||
|?Has signal standard=Standard | |||
|format=table | |||
|class=wikitable sortable | |||
|mainlabel=AV device | |||
}}|}}<div style="text-align: center; margin-top: 0.5em;"> | }}|}}<div style="text-align: center; margin-top: 0.5em;"> | ||
{{#if:{{{file|}}}|[{{fullurl:Special:Redirect/file/{{{file}}}}} <span style="display:inline-block;padding:0.5rem 1rem;background-color:#2563eb;color:#ffffff;border:1px solid #2563eb;border-radius:0.375rem;font-size:0.875rem;font-weight:500;text-decoration:none;cursor:pointer;">Download</span>]}}{{#if:{{{url|}}}|{{#if:{{{file|}}}||[{{{url}}} <span style="display:inline-block;padding:0.5rem 1rem;background-color:#2563eb;color:#ffffff;border:1px solid #2563eb;border-radius:0.375rem;font-size:0.875rem;font-weight:500;text-decoration:none;cursor:pointer;">Download</span>]}}}} [{{fullurl:Special:FormStart|form=Document&page_name={{PAGENAMEE}}}} <span style="display:inline-block;padding:0.5rem 1rem;background-color:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe;border-radius:0.375rem;font-size:0.875rem;font-weight:500;text-decoration:none;">Edit this data</span>] | {{#if:{{{file|}}}|[{{fullurl:Special:Redirect/file/{{{file}}}}} <span style="display:inline-block;padding:0.5rem 1rem;background-color:#2563eb;color:#ffffff;border:1px solid #2563eb;border-radius:0.375rem;font-size:0.875rem;font-weight:500;text-decoration:none;cursor:pointer;">Download</span>]}}{{#if:{{{url|}}}|{{#if:{{{file|}}}||[{{{url}}} <span style="display:inline-block;padding:0.5rem 1rem;background-color:#2563eb;color:#ffffff;border:1px solid #2563eb;border-radius:0.375rem;font-size:0.875rem;font-weight:500;text-decoration:none;cursor:pointer;">Download</span>]}}}} [{{fullurl:Special:FormStart|form=Document&page_name={{PAGENAMEE}}}} <span style="display:inline-block;padding:0.5rem 1rem;background-color:#eff6ff;color:#1d4ed8;border:1px solid #bfdbfe;border-radius:0.375rem;font-size:0.875rem;font-weight:500;text-decoration:none;">Edit this data</span>] | ||