Template:Model infobox: Difference between revisions

From AI Wiki
No edit summary
No edit summary
 
(40 intermediate revisions by 2 users not shown)
Line 2: Line 2:
<div class="heading">[[{{PAGENAME}}]]</div>
<div class="heading">[[{{PAGENAME}}]]</div>


<div style="width: 500px; 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:{{{hugging-face-uri|}}}|
{{#if:{{{hugging-face-uri|}}}|
<div class="model-infobox-cell">'''Hugging Face'''</div>
<div class="model-infobox-cell">'''Hugging Face'''</div>
<div class="model-infobox-cell">[[Has hf model name::{{{hugging-face-uri}}}]]]</div>
<div class="model-infobox-cell">[[Has hf model url::https://huggingface.co/{{{hugging-face-uri}}}|{{{hugging-face-uri}}}]]</div>
}}
}}
</div>
</div>


<div class="model-infobox-row">
<div class="model-infobox-row">
{{#if:{{{name|}}}|
{{#if:{{{hugging-face-uri|}}}|
<div class="model-infobox-cell">'''Name'''</div>
<div class="model-infobox-cell">'''Name'''</div>
<div class="model-infobox-cell">[[Has model name::{{{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>


<div class="model-infobox-row">
<div class="model-infobox-row">
{{#if:{{{user-organization|}}}|
{{#if:{{#explode:{{{hugging-face-uri|}}}|/|1}}|
<div class="model-infobox-cell">'''User / Organization'''</div>
<div class="model-infobox-cell">'''User / Organization'''</div>
<div class="model-infobox-cell">[[Has model user-organization::{{{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 71: Line 71:
<div class="model-infobox-cell">'''Paper'''</div>
<div class="model-infobox-cell">'''Paper'''</div>
<div class="model-infobox-cell">{{#arraymap:{{{paper|}}}|,|x|[[Has paper::x]]}}</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>
Line 88: Line 81:
</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>
</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]].
Line 98: Line 100:
{{Model infobox
{{Model infobox
| hugging-face-uri =  
| hugging-face-uri =  
| user-organization =
| name =
| creator =  
| creator =  
| type =  
| type =  
Line 107: 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 = 
}}