Template:Paper infobox: Difference between revisions

From AI Wiki
(Created page with "<includeonly><div class="model"> <div class="heading">[[{{PAGENAME}}]]</div> <div style="width: 500px; display: flex; flex-direction: column;"> <div class="model-infobox-row"> {{#if:{{{name|}}}| <div class="model-infobox-cell">'''Name'''</div> <div class="model-infobox-cell">[[Has paper name::{{{name}}}]]</div> }} </div> <div class="model-infobox-row"> {{#if:{{{type|}}}| <div class="model-infobox-cell">'''Type'''</div> <div class="model-infobox-cell">{{#arraymap:{{{ty...")
 
No edit summary
 
Line 1: Line 1:
<includeonly><div class="model">
{| class="infobox" style="font-size:89%; width:21em; -moz-border-radius: .2em; -webkit-border-radius: .2em;display:inline-table!important;"
<div class="heading">[[{{PAGENAME}}]]</div>
|-
! colspan="2" style="background-color: #BDBDBD; color: #000000; font-size:120%; padding:0.5em;" | {{{name|{{PAGENAME}}}}}
|-
! colspan="2" |{{#if:{{{image|}}}|[[File:{{{image}}}|300px]] }}
|-
! colspan="2" style="background-color: #BDBDBD; color: #000000; padding:0em;" | Information
|-
{{#if: {{{Name|}}}|
{{!}} '''Name'''
{{!}} {{{Name|}}} }}
|-
{{#if: {{{Platform|}}}|
{{!}} '''Platform'''
{{!}} {{#arraymap:{{{Platform|}}}|,|x|[[Has platform::x]]}} }}
|-
{{#if: {{{Model|}}}|
{{!}} '''Model'''
{{!}} {{#arraymap:{{{Model|}}}|,|x|[[Has model::x]]}} }}
|-
{{#if: {{{Category|}}}|
{{!}} '''Category'''
{{!}} {{#arraymap:{{{Category|}}}|,|x|[[Has category::x]]}} }}
|-
{{#if: {{{Description|}}}|
{{!}} '''Description'''
{{!}} {{{Description|}}} }}
|-
{{#if: {{{Third Party|}}}|
{{!}} '''Third Party'''
{{!}} {{{Third Party|}}} }}
|-
{{#if: {{{Developer|}}}|
{{!}} '''Developer'''
{{!}} {{{Developer|}}} }}
|-
{{#if: {{{Release Date|}}}|
{{!}} '''Release Date'''
{{!}} {{{Release Date|}}} }}
|-
{{#if: {{{Website|}}}|
{{!}} '''Website'''
{{!}} {{{Website|}}} }}
|-
{{#if: {{{Free|}}}|
{{!}} '''Free'''
{{!}} {{{Free|}}} }}
|-
{{#if: {{{Price|}}}|
{{!}} '''Price'''
{{!}} {{{Price|}}} }}
|-
{{#if: {{{Available|}}}|
{{!}} '''Available'''
{{!}} {{{Available|}}} }}
|-
{{#if: {{{Working|}}}|
{{!}} '''Working'''
{{!}} {{{Working|}}} }}
|-
|}
'''{{{Name|}}}''' is a [[Paper]].<includeonly>[[Category:Papers|{{PAGENAME}}]] {{#set:image=File:{{{image|}}} }} {{#set:Name={{{Name|}}} }} {{#set:Platform={{{Platform|}}} |+sep}} {{#set:Model={{{Model|}}} |+sep}} {{#set:Category={{{Category|}}} |+sep}} {{#set:Description={{{Description|}}} }} {{#set:Third Party={{{Third Party|}}} }} {{#set:Developer={{{Developer|}}} }} {{#set:Release Date={{{Release Date|}}} }} {{#set:Website={{{Website|}}} }} {{#set:Free={{{Free|}}} }} {{#set:Price={{{Price|}}} |+sep}} {{#set:Available={{{Available|}}} }} {{#set:Working={{{Working|}}} }}</includeonly>
<noinclude>
Designed for use on [[Paper]] pages.


<div style="width: 500px; display: flex; flex-direction: column;">
==Usage==
 
<pre>
<div class="model-infobox-row">
{{Paper infobox
{{#if:{{{name|}}}|
|image =
<div class="model-infobox-cell">'''Name'''</div>
|Name =
<div class="model-infobox-cell">[[Has paper name::{{{name}}}]]</div>
|Platform =  
}}
|Model =  
</div>
|Category =
 
|Description =
<div class="model-infobox-row">
|Third Party =
{{#if:{{{type|}}}|
|Developer =  
<div class="model-infobox-cell">'''Type'''</div>
|Release Date =
<div class="model-infobox-cell">{{#arraymap:{{{type|}}}|,|x|[[Has model type::x]]}}</div>
|Website =
}}
|Free =  
</div>
|Price =  
 
|Available =  
<div class="model-infobox-row">
|Working =  
{{#if:{{{organization|}}}|
<div class="model-infobox-cell">'''Organzation'''</div>
<div class="model-infobox-cell">{{#arraymap:{{{organization|}}}|,|x|[[Has organization::x]]}}</div>
}}
}}
</div>
</pre>


<div class="model-infobox-row">
==Parameters==
{{#if:{{{author|}}}|
<div class="model-infobox-cell">'''Author'''</div>
<div class="model-infobox-cell">{{#arraymap:{{{author|}}}|,|x|[[Has author::x]]}}</div>
}}
</div>


<div class="model-infobox-row">
<br><br>
{{#if:{{{hf-name|}}}|
[[Category:Templates]]
<div class="model-infobox-cell">'''HF Name'''</div>
</noinclude>
<div class="model-infobox-cell">[[Has hf model name::{{{hf-name}}}]]</div>
}}
</div>
 
<div class="model-infobox-row">
{{#if:{{{task|}}}|
<div class="model-infobox-cell">'''Task'''</div>
<div class="model-infobox-cell">{{#arraymap:{{{task|}}}|,|x|[[Has task::x]]}}</div>
}}
</div>
 
<div class="model-infobox-row">
{{#if:{{{library|}}}|
<div class="model-infobox-cell">'''Library'''</div>
<div class="model-infobox-cell">{{#arraymap:{{{library|}}}|,|x|[[Has library::x]]}}</div>
}}
</div>
 
<div class="model-infobox-row">
{{#if:{{{dataset|}}}|
<div class="model-infobox-cell">'''Dataset'''</div>
<div class="model-infobox-cell">{{#arraymap:{{{dataset|}}}|,|x|[[Has dataset::x]]}}</div>
}}
</div>
 
<div class="model-infobox-row">
{{#if:{{{language|}}}|
<div class="model-infobox-cell">'''Language'''</div>
<div class="model-infobox-cell">{{#arraymap:{{{language|}}}|,|x|[[Has language::x]]}}</div>
}}
</div>
 
<div class="model-infobox-row">
{{#if:{{{paper|}}}|
<div class="model-infobox-cell">'''Paper'''</div>
<div class="model-infobox-cell">{{#arraymap:{{{paper|}}}|,|x|[[Has paper::x]]}}</div>
}}
</div>
 
<div class="model-infobox-row">
{{#if:{{{related-to|}}}|
<div class="model-infobox-cell">'''Related to'''</div>
<div class="model-infobox-cell">{{#arraymap:{{{related-to|}}}|,|x|[[Has related-to::x]]}}</div>
}}
</div>
 
<div class="model-infobox-row">
{{#if:{{{license|}}}|
<div class="model-infobox-cell">'''License'''</div>
<div class="model-infobox-cell">{{#arraymap:{{{license|}}}|,|x|[[Has license::x]]}}</div>
}}
</div>
 
</div>
 
</div>
</includeonly><noinclude>
==Usage==
Use this infobox for defining [[models]].
 
<pre>
{{model infobox
| name =
| hf-name =
| creator =
| type =
| task = 
| library =
| dataset =
| language =
| paper =
| related-to =
| license =
}}
</pre></noinclude>

Latest revision as of 11:01, 12 November 2023

Paper infobox
Information

' is a Paper.

Designed for use on Paper pages.

Usage

{{Paper infobox
|image = 
|Name = 
|Platform = 
|Model = 
|Category = 
|Description = 
|Third Party = 
|Developer = 
|Release Date = 
|Website = 
|Free = 
|Price = 
|Available = 
|Working = 
}}

Parameters