Template:Model infobox: Difference between revisions

From AI Wiki
No edit summary
No edit summary
 
(72 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><div class="model">
<includeonly><div class="model-infobox">
<div class="heading">[[Has canonical name::{{{name|{{#titleparts:{{PAGENAME}}}}}}}]]</div>
<div class="heading">[[{{PAGENAME}}]]</div>


<div style="width: 400px; display: flex; flex-direction: column;">
<div style="width: 300px; display: flex; flex-direction: column;">


<div class="model-infobox-row">
<div class="model-infobox-row">
{{#if:{{{name|}}}|
{{#if:{{{hugging-face-uri|}}}|
<div style="align-self: flex-start">'''Name'''</div>
<div class="model-infobox-cell">'''Hugging Face'''</div>
<div style="align-self: flex-start">{{{name}}}<br>{{{hf-name}}}</div>
<div class="model-infobox-cell">[[Has hf model url::https://huggingface.co/{{{hugging-face-uri}}}|{{{hugging-face-uri}}}]]</div>
}}
</div>
 
<div class="model-infobox-row">
{{#if:{{{hugging-face-uri|}}}|
<div class="model-infobox-cell">'''Name'''</div>
<div class="model-infobox-cell">{{#if:{{#explode:{{{hugging-face-uri|}}}|/|1}}|[[Has model name::{{#explode:{{{hugging-face-uri|}}}|/|1}}]]|[[Has model name::{{#explode:{{{hugging-face-uri|}}}|/|0}}]]}}</div>
}}
</div>
 
<div class="model-infobox-row">
{{#if:{{#explode:{{{hugging-face-uri|}}}|/|1}}|
<div class="model-infobox-cell">'''User / Organization'''</div>
<div class="model-infobox-cell">{{#if:{{#explode:{{{hugging-face-uri|}}}|/|1}}|[[Has model user-organization url::https://huggingface.co/{{#explode:{{{hugging-face-uri|}}}|/|0}}|{{#explode:{{{hugging-face-uri|}}}|/|0}}]]|}}</div>
}}
}}
</div>
</div>
Line 13: Line 27:
<div class="model-infobox-row">
<div class="model-infobox-row">
{{#if:{{{creator|}}}|
{{#if:{{{creator|}}}|
<div style="align-self: flex-start">'''Creator'''</div>
<div class="model-infobox-cell">'''Creator'''</div>
<div style="align-self: flex-start">{{{creator}}}</div>
<div class="model-infobox-cell">{{#arraymap:{{{creator|}}}|,|x|[[Has creator::x]]}}</div>
}}
</div>
 
<div class="model-infobox-row">
{{#if:{{{type|}}}|
<div class="model-infobox-cell">'''Type'''</div>
<div class="model-infobox-cell">{{#arraymap:{{{type|}}}|,|x|[[Has model type::x]]}}</div>
}}
}}
</div>
</div>
Line 20: Line 41:
<div class="model-infobox-row">
<div class="model-infobox-row">
{{#if:{{{task|}}}|
{{#if:{{{task|}}}|
<div style="align-self: start">'''Task'''</div>
<div class="model-infobox-cell">'''Task'''</div>
<div style="padding-left: 10px; padding-right: 10px;"></div>
<div class="model-infobox-cell">{{#arraymap:{{{task|}}}|,|x|[[Has task::x]]}}</div>
<div style="align-self: start">{{{task}}}</div>
}}
}}
</div>
</div>
Line 28: Line 48:
<div class="model-infobox-row">
<div class="model-infobox-row">
{{#if:{{{library|}}}|
{{#if:{{{library|}}}|
<div>'''Library'''</div>
<div class="model-infobox-cell">'''Library'''</div>
<div style="padding-left: 10px; padding-right: 10px;"></div>
<div class="model-infobox-cell">{{#arraymap:{{{library|}}}|,|x|[[Has library::x]]}}</div>
<div>{{{library}}}</div>
}}
}}
</div>
</div>
Line 36: Line 55:
<div class="model-infobox-row">
<div class="model-infobox-row">
{{#if:{{{dataset|}}}|
{{#if:{{{dataset|}}}|
<div>'''Dataset'''</div>
<div class="model-infobox-cell">'''Dataset'''</div>
<div style="padding-left: 10px; padding-right: 10px;"></div>
<div class="model-infobox-cell">{{#arraymap:{{{dataset|}}}|,|x|[[Has dataset::x]]}}</div>
<div>{{{dataset}}}</div>
}}
}}
</div>
</div>
Line 44: Line 62:
<div class="model-infobox-row">
<div class="model-infobox-row">
{{#if:{{{language|}}}|
{{#if:{{{language|}}}|
<div>'''Language'''</div>
<div class="model-infobox-cell">'''Language'''</div>
<div style="padding-left: 10px; padding-right: 10px;"></div>
<div class="model-infobox-cell">{{#arraymap:{{{language|}}}|,|x|[[Has language::x]]}}</div>
<div>{{{language}}}</div>
}}
}}
</div>
</div>
Line 52: Line 69:
<div class="model-infobox-row">
<div class="model-infobox-row">
{{#if:{{{paper|}}}|
{{#if:{{{paper|}}}|
<div>'''Paper'''</div>
<div class="model-infobox-cell">'''Paper'''</div>
<div style="padding-left: 10px; padding-right: 10px;"></div>
<div class="model-infobox-cell">{{#arraymap:{{{paper|}}}|,|x|[[Has paper::x]]}}</div>
<div>{{{paper}}}</div>
}}
}}
</div>
</div>


<div class="model-infobox-row">
<div class="model-infobox-row">
{{#if:{{{related-to|}}}|
{{#if:{{{license|}}}|
<div>'''Related to'''</div>
<div class="model-infobox-cell">'''License'''</div>
<div style="padding-left: 10px; padding-right: 10px;"></div>
<div class="model-infobox-cell">{{#arraymap:{{{license|}}}|,|x|[[Has license::x]]}}</div>
<div>{{{related-to}}}</div>
}}
}}
</div>
</div>


<div class="model-infobox-row">
<div class="model-infobox-row">
{{#if:{{{license|}}}|
{{#if:{{{related-to|}}}|
<div>'''License'''</div>
<div class="model-infobox-cell">'''Related to'''</div>
<div style="padding-left: 10px; padding-right: 10px;"></div>
<div class="model-infobox-cell">{{#arraymap:{{{related-to|}}}|,|x|[[Has related-to::x]]}}</div>
<div>{{{license}}}</div>
}}
}}
</div><span style="display:none!important;">
{{#if:{{#explode:{{{hugging-face-uri|}}}|/|1}}|[[Has model user-organization::{{#explode:{{{hugging-face-uri|}}}|/|0}}|{{#explode:{{{hugging-face-uri|}}}|/|0}}]]|}}
{{#arraymap:{{{all-tags|}}}|,|x|[[Has all-tags::x]]}}
{{#arraymap:{{{all-lang-tags|}}}|,|x|[[Has all-lang-tags::x]]}}</span>
</div>
</div>
</div>
</div>
 
[[{{PAGENAME}}]] is a {{#arraymap:{{{type|}}}|,|x|[[x]]}} [[model]] used for {{#arraymap:{{{task|}}}|,|x|[[x]]}}.
</div>
[[Category:Models]]</includeonly><noinclude>
</includeonly><noinclude>
==Usage==
==Usage==
Use this infobox for defining [[models]].
Use this infobox for defining [[models]].


<pre>
<pre>
{{model infobox
{{Model infobox
| name =
| hugging-face-uri =  
| hf-name =  
| creator =  
| creator =  
| type =
| task =   
| task =   
| library =  
| library =  
Line 91: Line 107:
| language =  
| language =  
| paper =  
| paper =  
| license =
| related-to =  
| related-to =  
| license =  
| all-tags =
| all-lang-tags =  
}}
}}
</pre></noinclude>
</pre></noinclude>

Latest revision as of 10:43, 18 May 2023

Usage

Use this infobox for defining models.

{{Model infobox
| hugging-face-uri = 
| creator = 
| type = 
| task =  
| library = 
| dataset = 
| language = 
| paper = 
| license = 
| related-to = 
| all-tags = 
| all-lang-tags = 
}}