Template:Document: Difference between revisions
No edit summary |
No edit summary |
||
| Line 18: | Line 18: | ||
== {{#if:{{{title|}}}|{{{title}}}|{{PAGENAME}}}} == | == {{#if:{{{title|}}}|{{{title}}}|{{PAGENAME}}}} == | ||
<div style="margin-bottom: 1em; padding: 0.5em; border: 1px solid #a2a9b1; background: #f8f9fa;"> | |||
'''Type:''' {{{doc_type|}}} | '''Type:''' {{{doc_type|}}} | ||
{{#if:{{{title|}}}| | |||
'''Title:''' {{{title}}} | |||
}} | |||
{{#if:{{{file|}}}| | |||
'''File:''' [[:File:{{{file}}}|{{{file}}}]] | |||
}} | |||
{{#if:{{{url|}}}| | |||
'''URL:''' [{{{url}}}| {{{url}}}] | |||
}} | |||
{{#if:{{{crt_models|}}}| | {{#if:{{{crt_models|}}}| | ||
'''Related CRT Models:''' | '''Related CRT Models:''' | ||
{{#arraymap:{{{crt_models|}}}|,|@@@@| | {{#arraymap:{{{crt_models|}}}|,|@@@@|[[@@@@]] }} | ||
}} | |||
<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|}}}| | |||
[{{{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={{PAGENAME}}}} <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>] | |||
</div> | |||
</div> | |||
{{#if:{{{file|}}}| | {{#if:{{{file|}}}| | ||
| Line 32: | Line 56: | ||
[[File:{{{file}}}|800px]] | [[File:{{{file}}}|800px]] | ||
}} | }} | ||
| Line 41: | Line 63: | ||
[{{{url}}}| View document at external site] | [{{{url}}}| View document at external site] | ||
}} | }} | ||