Template:Model infobox: Difference between revisions

From AI Wiki
No edit summary
No edit summary
 
(82 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="display: flex; flex-direction: column; width: 400px">
<div style="width: 300px; display: flex; flex-direction: column;">


<div style="width: 100%; display: flex; flex-direction: row; justify-content: flex-start">
<div class="model-infobox-row">
{{#if:{{{name|}}}|
{{#if:{{{hugging-face-uri|}}}|
<div>'''Name'''</div>
<div class="model-infobox-cell">'''Hugging Face'''</div>
<div style="padding-left: 10px; padding-right: 10px;"></div>
<div class="model-infobox-cell">[[Has hf model url::https://huggingface.co/{{{hugging-face-uri}}}|{{{hugging-face-uri}}}]]</div>
<div>{{{name}}}</div>
}}
}}
</div>
</div>


<div style="width: 100%; display: flex; flex-direction: row; justify-content: flex-start">
<div class="model-infobox-row">
{{#if:{{{name|}}}|
{{#if:{{{hugging-face-uri|}}}|
<div>'''Name'''</div>
<div class="model-infobox-cell">'''Name'''</div>
<div style="padding-left: 10px; padding-right: 10px;"></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>{{{name}}}</div>
}}
}}
</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 class="model-infobox-row">
{{#if:{{{creator|}}}|
<div class="model-infobox-cell">'''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 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>


<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:{{{license|}}}|
<div class="model-infobox-cell">'''License'''</div>
<div class="model-infobox-cell">{{#arraymap:{{{license|}}}|,|x|[[Has license::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><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>
</includeonly><noinclude>
[[{{PAGENAME}}]] is a {{#arraymap:{{{type|}}}|,|x|[[x]]}} [[model]] used for {{#arraymap:{{{task|}}}|,|x|[[x]]}}.
[[Category:Models]]</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 =  
| tasks =   
| type =
| libraries =  
| task =   
| datasets =  
| library =
| languages =  
| dataset =
| language =  
| paper =  
| license =  
| related-to =  
| related-to =  
| licenses =  
| 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 = 
}}